[mono-android] Mono_UnhandledException in emulator
Jonathan Pryor
jonp at xamarin.com
Mon Jan 2 22:27:25 EST 2012
On Dec 30, 2011, at 10:46 PM, Steven Pack wrote:
> I regularly get an unhandled exception in the emulator when I instantiate a custom ArrayAdaptor. The top level of the call stack shows: "Mono_UnhandledException":
...
> The stacktrace is:
>
> I/mono ( 8244): Stacktrace:
> I/mono ( 8244):
> I/mono ( 8244): at Android.Runtime.JNIEnv.NewGlobalRef (intptr) [0x00000] in /Users/jon/Development/xamarin/monodroid/Mono.Android/src/Runtime/JNIEnv.cs:336
Which Android version? Is there any other output?
I suspect it's due to GREF overflow, in which case there should be additional output:
http://docs.xamarin.com/android/troubleshooting?highlight=GREF#Unexpected_NullReferenceExceptions
D/dalvikvm( 602): GREF has increased to 2001
W/dalvikvm( 602): Last 10 entries in JNI global reference table:
...
- Jon
More information about the Monodroid
mailing list