Hi

Here is the stack trace. There seems to be a lot of null reference
exceptions in some wrapper constructor.

What happens is the app flashes open and then it crashes. It happens most
of the time, but with enough restarts of all devices/pcs it works for a
short while.
Is it a result of mono for android creating the package wrong? As the exact
code works a few mins later.

I had to snip the stack a bit as there were 8K lines of null refs.

It also happens far more times with VS than with MD.


05-01 21:37:16.489 I/ActivityThread( 6163): Pub
com.jam.apks.sample.__mono_init__: mono.MonoRuntimeProvider
05-01 21:37:16.539 W/MonoDroid-Debugger( 6163): Trying to initialize the
debugger with options:
--debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8919
,server=y,embedding=1
05-01 21:37:16.549 W/MonoDroid-Debugger( 6163): Accepted stdout connection:
36
05-01 21:37:17.359 E/mono    ( 6163): WARNING: The runtime version
supported by this application is unavailable.
05-01 21:37:17.359 E/mono    ( 6163): Using default runtime: v2.0.50727
05-01 21:37:17.639 I/mono    ( 6163): [0xafd4d460: 0.00000 0]
05-01 21:37:17.639 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
<Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)(
05-01 21:37:17.639 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.639 I/mono    ( 6163): [0xafd4d460: 0.00014 1]
05-01 21:37:17.639 I/mono    ( 6163): ENTER:
System.OutOfMemoryException:.ctor (string)(
05-01 21:37:17.639 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.639 I/mono    ( 6163): [0xafd4d460: 0.00076 2]
Loaded assembly:
/mnt/sdcard/Android/data/com.jam.apks.sample/files/.__override__/ExpansionDownloader.Sample.dll
05-01 21:37:17.639 I/mono    ( 6163): ENTER: System.SystemException:.ctor
(string)(
05-01 21:37:17.639 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.639 I/mono    ( 6163): [0xafd4d460: 0.00139 3]
05-01 21:37:17.639 I/mono    ( 6163): ENTER: System.Exception:.ctor
(string)(
05-01 21:37:17.639 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.639 I/mono    ( 6163): [0xafd4d460: 0.00149 3]
05-01 21:37:17.639 I/mono    ( 6163): LEAVE: System.Exception:.ctor (string)
05-01 21:37:17.639 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): ENTER: System.Exception:set_HResult
(int)(
05-01 21:37:17.679 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03446 3]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE: System.Exception:set_HResult
(int)
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03453 2]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE: System.SystemException:.ctor
(string)
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03463 2]
05-01 21:37:17.679 I/mono    ( 6163): ENTER: System.Exception:set_HResult
(int)(
05-01 21:37:17.679 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03470 2]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE: System.Exception:set_HResult
(int)
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03476 1]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE:
System.OutOfMemoryException:.ctor (string)
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03483 0]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE: (wrapper runtime-invoke)
<Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)
05-01 21:37:17.679 I/mono    ( 6163): [OBJECT:0x0]
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03586 0]
05-01 21:37:17.679 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
<Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)(
05-01 21:37:17.679 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03596 1]
05-01 21:37:17.679 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor (string)(
05-01 21:37:17.679 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03606 2]
05-01 21:37:17.679 I/mono    ( 6163): ENTER: System.SystemException:.ctor
(string)(
05-01 21:37:17.679 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03613 3]
05-01 21:37:17.679 I/mono    ( 6163): ENTER: System.Exception:.ctor
(string)(
05-01 21:37:17.679 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03619 3]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE: System.Exception:.ctor (string)
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03627 3]
05-01 21:37:17.679 I/mono    ( 6163): ENTER: System.Exception:set_HResult
(int)(
05-01 21:37:17.679 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03633 3]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE: System.Exception:set_HResult
(int)
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03639 2]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE: System.SystemException:.ctor
(string)
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03648 2]
05-01 21:37:17.679 I/mono    ( 6163): ENTER: System.Exception:set_HResult
(int)(
05-01 21:37:17.679 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03655 2]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE: System.Exception:set_HResult
(int)
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03661 1]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE:
System.NullReferenceException:.ctor (string)
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.679 I/mono    ( 6163): [0xafd4d460: 0.03668 0]
05-01 21:37:17.679 I/mono    ( 6163): LEAVE: (wrapper runtime-invoke)
<Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)
05-01 21:37:17.679 I/mono    ( 6163): [OBJECT:0x0]
05-01 21:37:17.679 I/mono    ( 6163):
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04541 0]
05-01 21:37:17.689 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
<Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)(
05-01 21:37:17.689 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04553 1]
05-01 21:37:17.689 I/mono    ( 6163): ENTER:
System.StackOverflowException:.ctor (string)(
05-01 21:37:17.689 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04564 2]
05-01 21:37:17.689 I/mono    ( 6163): ENTER: System.SystemException:.ctor
(string)(
05-01 21:37:17.689 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04573 3]
05-01 21:37:17.689 I/mono    ( 6163): ENTER: System.Exception:.ctor
(string)(
05-01 21:37:17.689 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04580 3]
05-01 21:37:17.689 I/mono    ( 6163): LEAVE: System.Exception:.ctor (string)
05-01 21:37:17.689 I/mono    ( 6163):
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04586 3]
05-01 21:37:17.689 I/mono    ( 6163): ENTER: System.Exception:set_HResult
(int)(
05-01 21:37:17.689 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04593 3]
05-01 21:37:17.689 I/mono    ( 6163): LEAVE: System.Exception:set_HResult
(int)
05-01 21:37:17.689 I/mono    ( 6163):
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04599 2]
05-01 21:37:17.689 I/mono    ( 6163): LEAVE: System.SystemException:.ctor
(string)
05-01 21:37:17.689 I/mono    ( 6163):
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04605 1]
05-01 21:37:17.689 I/mono    ( 6163): LEAVE:
System.StackOverflowException:.ctor (string)
05-01 21:37:17.689 I/mono    ( 6163):
05-01 21:37:17.689 I/mono    ( 6163): [0xafd4d460: 0.04612 0]
05-01 21:37:17.689 I/mono    ( 6163): LEAVE: (wrapper runtime-invoke)
<Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)
05-01 21:37:17.689 I/mono    ( 6163): [OBJECT:0x0]
05-01 21:37:17.689 I/mono    ( 6163):
05-01 21:37:29.789 I/monodroid-gc( 6163): environment supports jni
NewWeakGlobalRef
05-01 21:37:29.799 I/mono    ( 6163): Stacktrace:
05-01 21:37:29.799 I/mono    ( 6163):
05-01 21:37:29.799 I/mono    ( 6163): [0xafd4d460: 12.16194 0]
05-01 21:37:29.799 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:29.799 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:29.799 I/mono    ( 6163): [0xafd4d460: 12.16252 1]
05-01 21:37:29.799 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:29.799 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:29.809 I/mono    ( 6163): [0xafd4d460: 12.16404 2]
05-01 21:37:29.809 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:30.829 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.829 I/mono    ( 6163): [0xafd4d460: 13.19008 7561]
05-01 21:37:30.829 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:30.829 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.829 I/mono    ( 6163): [0xafd4d460: 13.19022 7562]
05-01 21:37:30.829 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:30.829 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.829 I/mono    ( 6163): [0xafd4d460: 13.19030 7563]
05-01 21:37:30.829 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:30.829 I/mono    ( 6163): ) ip: 0x0
 - - - - SNIP - - - -
05-01 21:37:30.829 I/mono    ( 6163): [0xafd4d460: 13.19045 7564]
05-01 21:37:30.829 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:30.829 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.829 I/mono    ( 6163): [0xafd4d460: 13.19259 7565]
05-01 21:37:30.829 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:30.829 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.829 I/mono    ( 6163): [0xafd4d460: 13.19284 7566]
05-01 21:37:30.829 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:30.829 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.829 I/mono    ( 6163): [0xafd4d460: 13.19293 7567]
05-01 21:37:30.829 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:30.829 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.749 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,05-01 21:37:30.839 I/mono
   ( 6163): [0xafd4d460: 13.19321 7568]
05-01 21:37:30.839 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:30.839 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.839 I/mono    ( 6163): [0xafd4d460: 13.19335 7569]
05-01 21:37:30.749 I/mono    ( 6163): [0xafd05-01 21:37:30.839 I/mono    (
6163): ENTER: System.NullReferenceException:.ctor ()(
05-01 21:37:30.839 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.839 I/mono    ( 6163): [0xafd4d460: 13.19350 7570]
05-01 21:37:30.749 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(05-01 21:37:30.839 I/mono    (
6163): ENTER: (wrapper runtime-invoke) object:runtime_invoke_void__this__
(object,intptr,intptr,intptr)(
05-01 21:37:30.839 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.839 I/mono    ( 6163): [0xafd4d460: 13.19359 7571]
05-01 21:37:30.839 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:30.839 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.839 I/mono    ( 6163): [0xafd4d460: 13.19373 7572]
05-01 21:37:30.839 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:30.839 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.839 I/mono    ( 6163): [0xafd4d460: 13.19381 7573]
05-01 21:37:30.839 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:30.839 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:30.839 I/mono    ( 6163): [0xafd4d460: 13.19397 7574]
05-01 21:37:30.839 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42452 9311]
05-01 21:37:31.069 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42466 9312]
05-01 21:37:31.069 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42475 9313]
05-01 21:37:31.069 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42490 9314]
05-01 21:37:31.069 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
 - - - - SNIP - - - -
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42592 9323]
05-01 21:37:31.069 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42607 9324]
05-01 21:37:31.069 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42615 9325]
05-01 21:37:31.069 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42629 9326]
05-01 21:37:31.069 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42638 9327]
05-01 21:37:31.069 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42652 9328]
05-01 21:37:31.069 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42662 9329]
05-01 21:37:31.069 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42676 9330]
05-01 21:37:31.069 I/mono    ( 6163): ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)(
 - - - - SNIP - - - -
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42887 9349]
05-01 21:37:31.069 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42902 9350]
05-01 21:37:31.019 I/mono05-01 21:37:31.069 I/mono    ( 6163): ENTER:
(wrapper runtime-invoke) object:runtime_invoke_void__this__
(object,intptr,intptr,intptr)(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
05-01 21:37:31.069 I/mono    ( 6163): [0xafd4d460: 13.42910 9351]
05-01 21:37:31.069 I/mono    ( 6163): ENTER:
System.NullReferenceException:.ctor ()(
05-01 21:37:31.069 I/mono    ( 6163): ) ip: 0x0
Mono.Debugger.Soft.VMDisconnectedException: Exception of type
'Mono.Debugger.Soft.VMDisconnectedException' was thrown.
   at Mono.Debugger.Soft.Connection.SendReceive(CommandSet command_set,
Int32 command, PacketWriter packet)
   at Mono.Debugger.Soft.VirtualMachine.Resume()
   at Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)
   at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler()
The program 'Mono' has exited with code 255 (0xff).


Matthew


On Tue, May 1, 2012 at 9:01 PM, Jonathan Pryor <[email protected]> wrote:

> On May 1, 2012, at 6:36 AM, Matthew Leibowitz wrote:
> > I just installed the latest Mono for Android 4.1.1 and I am struggling
> to get the IDEs to deploy/debug.
> ...
> > As this code was working a few moments go (before the restart), I am not
> sure what this error means:
> >
> > E/mono    ( 4171): WARNING: The runtime version supported by this
> application is unavailable.
> > E/mono    ( 4171): Using default runtime: v2.0.50727
>
> This is ignorable. (I really should figure out how to silence it...)
>
> The lack of a stack trace is bad. You could enable tracing [0] to see
> where it dies:
>
>        adb shell setprop debug.mono.trace all
>
>  - Jon
>
> [0] Tracing is problematic as it's not fully stable on ARM, and thus not
> entirely dependable, e.g. I've seen OverflowExceptions generated strictly
> because tracing is enabled.
>
> Ideally you should minimize what gets traced; see the --trace docs at:
>
>        http://docs.go-mono.com/?link=man%3amono(1)
>
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to