Bug 8182 - OpenTK app + Intent.CreateChooser() crashes
Summary: OpenTK app + Intent.CreateChooser() crashes
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.3.x
Hardware: PC Mac OS
: High normal
Target Milestone: 4.16.0
Assignee: dean.ellis
Depends on:
Reported: 2012-11-02 11:35 UTC by Jonathan Pryor
Modified: 2014-08-07 16:21 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

GLCube-1.0.zip (56.85 KB, application/zip)
2012-11-02 11:35 UTC, Jonathan Pryor

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jonathan Pryor 2012-11-02 11:35:33 UTC
Created attachment 2842 [details]

Mixing OpenGLES with Intent.CreateChooser() results in a crash.

Repro: Build + install + run attached project.

Expected behavior: no crash.

Actual behavior:

> I/mono    (11121): [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
> I/mono    (11121):   at OpenTK.Graphics.ES10.GL.DrawElements[Byte] (All mode, Int32 count, All type, System.Byte[] indices) [0x00000] in <filename unknown>:0 
> I/mono    (11121):   at Mono.Samples.GLCube.PaintingView.RenderCube () [0x00000] in <filename unknown>:0 
> I/mono    (11121):   at Mono.Samples.GLCube.PaintingView.<OnLoad>m__1 (System.Object , OpenTK.FrameEventArgs ) [0x00000] in <filename unknown>:0 
> I/mono    (11121):   at OpenTK.GameViewBase.OnRenderFrame (OpenTK.FrameEventArgs e) [0x00000] in <filename unknown>:0 
> I/mono    (11121):   at OpenTK.Platform.Android.AndroidGameView.RenderFrameInternal (OpenTK.FrameEventArgs e) [0x00000] in <filename unknown>:0 
> I/mono    (11121):   at OpenTK.Platform.Android.AndroidGameView.RunIteration (CancellationToken token) [0x00000] in <filename unknown>:0 
> I/mono    (11121):   at OpenTK.Platform.Android.AndroidGameView+<StartThread>c__AnonStorey1.<>m__B (System.Object _) [0x00000] in <filename unknown>:0 
> I/mono    (11121):   at Android.App.SyncContext+<Send>c__AnonStorey29.<>m__14 () [0x00000]
Comment 4 Dominique Louis 2012-11-28 17:30:26 UTC
@Jonathan : I sent Dean the project file I used to re-create this issue. I'm hoping that has helped him repro it.
Comment 6 dean.ellis 2014-06-06 11:44:28 UTC
Finally Fixed!! in mono/opentk/master/868b6a7d26
Comment 7 Danish Akhtar 2014-08-05 08:59:28 UTC
Today, I have checked this issue with:
XS 5.3(build 412)- 77e042831804079a649ee83092ed36c7c10773a2
X.Android 4.16.0-3
Device info: LG Nexus 4
ML 10.8.5

Now, this issue is not exists, attached sample is run successfully on device without any crash.

Hence closing this issue.