Bug 1955 - Unhandled exception error occurs in application output tab and open app getting closed.
Summary: Unhandled exception error occurs in application output tab and open app getti...
Status: CLOSED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 1.9.2
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-09 04:26 UTC by narayanp
Modified: 2011-12-22 10:22 UTC (History)
3 users (show)

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

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:
Status:
CLOSED INVALID

Description narayanp 2011-11-09 04:26:15 UTC
Step to Reproduce:

1. Launch MonoDevelop.
2. Click on "Open the existing Solution" link.
3. Browse the "GLTriangle20" application.
4. Build the application and select "Debug/Release" option under Active
Configuration.
5. Click on Run from the top menu bar and select API 10 from select device
window.
6. Application launches on emulator.

Actual Result:
Error "UNHANDLED EXCEPTION: System.InvalidOperationException: Unable to find a framebuffer for OpenGL ES 2.0" display and application getting closed from the emulator.

Expected Result:
Error should not occur in running the application and application should deploy
on the emulator successfully.

Environment:
MonoForAndroid 1.9.2
MonoDevelop 2.8.2
Comment 1 narayanp 2011-11-09 04:48:11 UTC
Error "Error: Could not access the Package Manager.  Is the system running?" occurs when user run the application on API 14 in release/Debug mode.
Comment 2 narayanp 2011-11-09 04:54:33 UTC
Error "Unhandled exception error occurs in application output tab and open app getting closed." occurs when user run the application on API 7 on Debug/Release.
Comment 3 Jonathan Pryor 2011-11-09 20:34:01 UTC
The GLTriangle20 application requires OpenGLES 2.0 support, which is not provided on the emulator.

You need to run this test on an actual hardware device.
Comment 4 narayanp 2011-11-10 09:59:33 UTC
On MAC system:

API 14:(Debug/release): "UNHANDLED EXCEPTION: System.InvalidOperationException: Unable to find a framebuffer for OpenGL ES 2.0" error occurs when user run the app in Debug/release mode.

API 7:(Debug/release): "UNHANDLED EXCEPTION: System.InvalidOperationException: Unable to find a framebuffer for OpenGL ES 2.0" error occurs when user run the app in Debug/release mode.

API 10:(Debug/Release): "Failure [INSTALL_FAILED_OLDER_SDK]" error occurs in run the app in debug mode and "Error: Could not access the Package Manager.  Is the system running?" to run in Release mode.
Comment 5 narayanp 2011-11-14 03:03:09 UTC
Environment:
Windows 7
MonoDevelop 3.0 Beta1
MonoForAndroid 1.9.3

API 10:(Debug/release): "UNHANDLED EXCEPTION: System.InvalidOperationException:
Unable to find a framebuffer for OpenGL ES 2.0" error occurs when user run the
app in Debug/release mode.

API 7:(Debug/release): "UNHANDLED EXCEPTION: System.InvalidOperationException:
Unable to find a framebuffer for OpenGL ES 2.0" error occurs when user run the
app in Debug/release mode.

API 10:(Debug/Release): "UNHANDLED EXCEPTION: System.InvalidOperationException:
Unable to find a framebuffer for OpenGL ES 2.0" error occurs when user run the
app in Debug/release mode.

error details:
I/monodroid-gc(  247): environment does not support jni NewWeakGlobalRef

I/MonoDroid(  247): UNHANDLED EXCEPTION: System.InvalidCastException: Value is not a convertible object: Mono.Samples.GLTriangle20.GLTriangle20Activity to Android.Content.Context

I/MonoDroid(  247): at System.Convert.ToType (object,System.Type,System.IFormatProvider,bool) <0x008e8>

I/MonoDroid(  247): at System.Convert.ChangeType (object,System.Type) <0x00083>

I/MonoDroid(  247): at Android.Runtime.JNIEnv.GetObjectArray (intptr,System.Type[]) <0x0015f>

I/MonoDroid(  247): at Android.Runtime.TypeManager.n_Activate (intptr,intptr,intptr,intptr,intptr,intptr) <0x00077>

I/MonoDroid(  247): at (wrapper native-to-managed) Android.Runtime.TypeManager.n_Activate (intptr,intptr,intptr,intptr,intptr,intptr) <0x0007b>

I/MonoDroid(  247): at (wrapper delegate-invoke) <Module>.invoke_void__this___intptr_intptr_intptr_intptr_JValue[] (intptr,intptr,intptr,intptr,Android.Runtime.JValue[]) <0x000d3>

I/MonoDroid(  247): at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue[]) <0x00067>

I/MonoDroid(  247): at Android.App.Activity.SetContentView (int) <0x0020b>

I/MonoDroid(  247): at Mono.Samples.GLTriangle20.GLTriangle20Activity.OnCreate (Android.OS.Bundle) <0x00033>

I/MonoDroid(  247): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x0005f>

I/MonoDroid(  247): at (wrapper dynamic-method) object.4d49b2f7-cf8d-45d1-a843-7093fd2ddb83 (intptr,intptr,intptr) <0x00033>

E/mono    (  247): 

E/mono    (  247): Unhandled Exception: System.InvalidCastException: Value is not a convertible object: Mono.Samples.GLTriangle20.GLTriangle20Activity to Android.Content.Context

E/mono    (  247):   at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0 

E/mono    (  247):   at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in <filename unknown>:0 

E/mono    (  247):   at Android.Runtime.JNIEnv.GetObjectArray (IntPtr array_ptr, System.Type[] element_types) [0x00000] in <filename unknown>:0 

E/mono    (  247):   at Android.Runtime.TypeManager.n_Activate (IntPtr jnienv, IntPtr jclass, IntPtr typename_ptr, IntPtr signature_ptr, IntPtr jobject, IntPtr parameters_ptr) [0x00000] in <filename unknown>:0 

E/mono    (  247):   at (wrapper native-to-managed) Android.Runtime.TypeManager:n_Activate (intptr,intptr,intptr,intptr,intptr,intptr)

E/mono    (  247):   at (wrapper delegate-invoke) <Module>:invoke_void__this___intptr_intptr_intptr_intptr_JValue[] (intptr,intptr,intptr,intptr,Android.Runtime.JValu
Comment 6 Jatin 2011-12-22 10:21:26 UTC
This application RUns successfully on the actual hardware device. So as per the comments by Johnathan, closing this issue.