Hi, I am developing an application which has a connection screen with some connection details then a button to continue which starts most of the rest of the application. On the two Samsung phones I have tried this on it works fine but on the three HTCs I've tried (One S, One X and Sensation) it crashes with a null reference exception when you proceed to the second screen.
I enabled the armebi-v7a architecture and it now works in release mode but still crashes in debug. The exception doesn't seem to be in my code and I wondered if anyone had any hints where to look? I get two traces this Thread started: Asynchronous Queue Thread 10-29 12:01:12.149 D/dalvikvm( 6363): GC_EXPLICIT freed 63K, 26% free 2897K/3871K, paused 2ms+2ms 10-29 12:01:15.593 D/dalvikvm( 6363): GC_EXPLICIT freed 19K, 24% free 2971K/3871K, paused 3ms+2ms 10-29 12:01:15.673 D/memalloc( 6363): ion: Mapped buffer base:0x57e20000 size:1949696 offset:0 fd:62 10-29 12:01:51.592 D/memalloc( 6363): ion: Mapped buffer base:0x57ffc000 size:1949696 offset:0 fd:66 Starting loading show 10-29 12:01:52.182 I/mono-stdout( 6363): Starting loading show 10-29 12:01:52.823 I/mono ( 6363): Stacktrace: 10-29 12:01:52.823 I/mono ( 6363): 10-29 12:01:52.823 I/mono ( 6363): at (wrapper delegate-invoke) <Module>.invoke_int__this___intptr_intptr_intptr_intptr (intptr,intptr,intptr,intptr) <IL 0x00063, 0xffffffff> 10-29 12:01:52.823 I/mono ( 6363): at Android.Runtime.JNIEnv.CallNonvirtualIntMethod (intptr,intptr,intptr) [0x00000] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:500 10-29 12:01:52.823 I/mono ( 6363): at Java.Lang.Object.GetHashCode () [0x0004f] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Java.Lang.Object.cs:144 10-29 12:01:52.823 I/mono ( 6363): at System.Delegate.GetHashCode () <IL 0x00022, 0x0008b> 10-29 12:01:52.823 I/mono ( 6363): at System.MulticastDelegate.GetHashCode () <IL 0x00001, 0x00047> 10-29 12:01:52.823 I/mono ( 6363): at System.Collections.Generic.EqualityComparer`1/DefaultComparer.GetHashCode (T) <IL 0x00015, 0x000d3> 10-29 12:01:52.823 I/mono ( 6363): at System.Collections.Generic.Dictionary`2.Remove (TKey) <IL 0x0001d, 0x0011b> 10-29 12:01:52.823 I/mono ( 6363): at Java.Lang.Thread/RunnableImplementor.Run () [0x00031] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:35 10-29 12:01:52.823 I/mono ( 6363): at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) [0x00008] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Java.Lang.IRunnable.cs:69 10-29 12:01:52.823 I/mono ( 6363): at (wrapper dynamic-method) object.5dbbe376-ca28-40cb-b63e-615a02014d70 (intptr,intptr) <IL 0x0000c, 0x0002b> 10-29 12:01:52.823 I/mono ( 6363): at (wrapper native-to-managed) object.5dbbe376-ca28-40cb-b63e-615a02014d70 (intptr,intptr) <IL 0x0001e, 0xffffffff> Thread started: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object Then this Thread started: 10-29 12:27:31.705 I/MonoDroid( 6363): UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object 10-29 12:27:31.705 I/MonoDroid( 6363): at (wrapper delegate-invoke) <Module>.invoke_int__this___intptr_intptr_intptr_intptr (intptr,intptr,intptr,intptr) <IL 0x0005d, 0x00117> 10-29 12:27:31.705 I/MonoDroid( 6363): at Android.Runtime.JNIEnv.CallNonvirtualIntMethod (intptr,intptr,intptr) [0x00000] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:500 10-29 12:27:31.705 I/MonoDroid( 6363): at Java.Lang.Object.GetHashCode () [0x0004f] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Java.Lang.Object.cs:144 10-29 12:27:31.705 I/MonoDroid( 6363): at System.Delegate.GetHashCode () <IL 0x00022, 0x0008b> 10-29 12:27:31.705 I/MonoDroid( 6363): at System.MulticastDelegate.GetHashCode () <IL 0x00001, 0x00047> 10-29 12:27:31.705 I/MonoDroid( 6363): at System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Action>.GetHashCode (System.Action) <0x000d3> 10-29 12:27:31.705 I/MonoDroid( 6363): at System.Collections.Generic.Dictionary`2<System.Action, Java.Lang.Thread/RunnableImplementor>.Remove (System.Action) <0x0011b> 10-29 12:27:31.705 I/MonoDroid( 6363): at Java.Lang.Thread/RunnableImplementor.Run () [0x00031] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:35 10-29 12:27:31.705 I/MonoDroid( 6363): at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) [0x00008] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Java.Lang.IRunnable.cs:69 10-29 12:27:31.705 I/MonoDroid( 6363): at (wrapper dynamic-method) object.5dbbe376-ca28-40cb-b63e-615a02014d70 (intptr,intptr) <IL 0x0000c, 0x0002b> Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object at (wrapper delegate-invoke) <Module>:invoke_int__this___intptr_intptr_intptr_intptr (intptr,intptr,intptr,intptr) at Android.Runtime.JNIEnv.CallNonvirtualIntMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod) [0x00000] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:500 at Java.Lang.Object.GetHashCode () [0x0004f] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Java.Lang.Object.cs:144 at System.Delegate.GetHashCode () [0x00000] in <filename unknown>:0 at System.MulticastDelegate.GetHashCode () [0x00000] in <filename unknown>:0 at System.Collections.Generic.EqualityComparer`1+DefaultComparer[System.Action].GetHashCode (System.Action obj) [0x00000] in <filename unknown>:0 at System.Collections.G 10-29 12:29:09.409 E/mono ( 6363): 10-29 12:29:09.409 E/mono ( 6363): Unhandled Exception: 10-29 12:29:09.409 E/mono ( 6363): System.NullReferenceException: Object reference not set to an instance of an object 10-29 12:29:09.409 E/mono ( 6363): at (wrapper delegate-invoke) <Module>:invoke_int__this___intptr_intptr_intptr_intptr (intptr,intptr,intptr,intptr) 10-29 12:29:09.409 E/mono ( 6363): at Android.Runtime.JNIEnv.CallNonvirtualIntMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod) [0x00000] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:500 10-29 12:29:09.409 E/mono ( 6363): at Java.Lang.Object.GetHashCode () [0x0004f] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Java.Lang.Object.cs:144 10-29 12:29:09.409 E/mono ( 6363): at System.Delegate.GetHashCode () [0x00000] in <filename unknown>:0 10-29 12:29:09.409 E/mono ( 6363): at System.MulticastDelegate.GetHashCode () [0x00000] in <filename unknown>:0 10-29 12:29:09.409 E/mono ( 6363): at System.Collections.Generic.EqualityComparer`1+DefaultComparer[System.Action].GetHashCode (System.Action obj) [0x00000] in <filename unknown>:0 10-29 12:29:09.409 E/mono ( 6363): at System.Collections.Generic.Dicti eneric.Dictionary`2[System.Action,Java.Lang.Thread+RunnableImplementor].Remove (System.Action key) [0x00000] in <filename unknown>:0 at Java.Lang.Thread+RunnableImplementor.Run () [0x00031] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:35 at Java.Lang.IRunnableInvoker.n_Run (IntPtr jnienv, IntPtr native__this) [0x00008] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Java.Lang.IRunnable.cs:69 at (wrapper dynamic-method) object:5dbbe376-ca28-40cb-b63e-615a02014d70 (intptr,intptr) 10-29 12:29:09.459 W/ ( 6363): _wapi_handle_ref: Attempting to ref unused handle 0x443 10-29 12:29:09.459 F/ ( 6363): * Assertion at /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/mono/mono/io-layer/wthreads.c:1365, condition `ok' not met 10-29 12:29:09.469 I/mono-stdout( 6363): Object reference not set to an instance of an object The program 'Mono' has exited with code 255 (0xff). Any clues would be much appreciated, Thanks, Mark Daniel. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/HTC-crash-in-debug-tp5712268.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid