[Mono-bugs] [Bug 669960] New: Runtime crash "Invalid IL code" when compiling via cmd
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Feb 7 08:27:00 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=669960
https://bugzilla.novell.com/show_bug.cgi?id=669960#c0
Summary: Runtime crash "Invalid IL code" when compiling via cmd
Classification: Mono
Product: MonoDroid
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Runtime
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: marcel at exdream.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=412565)
--> (http://bugzilla.novell.com/attachment.cgi?id=412565)
Sample project and build batch file showing the crash.
We're creating types dynamically via Activator.CreateInstance with several try,
catches around it.
When compiling it inside visual studio everything works fine.
But we wan't to build everything via command line, so i built a sample batch
file which is doing the whole process for a project. Badly this compiled sample
crashes then on the device with an "Invalid IL code" exception at the
CreateInstance position.
Attached there is a 7z file containing the sample project and the batch file of
our own build process.
I hope you could help us!
The ddms log is as follows:
01-01 03:06:24.579: INFO/ActivityManager(890): Starting activity: Intent {
act=android.intent.action.MAIN flg=0x10000000
cmp=de.mobilebits.test/monodroidapplication1.Activity1 }
01-01 03:06:24.609: DEBUG/AndroidRuntime(2990): Shutting down VM
01-01 03:06:24.609: INFO/ActivityManager(890): Start proc de.mobilebits.test
for activity de.mobilebits.test/monodroidapplication1.Activity1: pid=2997
uid=10033 gids={1015, 3003}
01-01 03:06:24.619: INFO/AndroidRuntime(2990): NOTE: attach of thread 'Binder
Thread #3' failed
01-01 03:06:25.216: INFO/ActivityThread(2997): Publishing provider
de.mobilebits.test.__mono_init__: mono.MonoRuntimeProvider
01-01 03:06:27.026: ERROR/mono(2997): [0xafd4a82c:] EXCEPTION handling:
System.InvalidProgramException: Invalid IL code in
MonoDroidApplication1.Activity1:OnCreate (Android.OS.Bundle): IL_00c7: stloc.s
4
01-01 03:06:27.056: INFO/MonoDroid(2997): UNHANDLED EXCEPTION:
System.InvalidProgramException: Invalid IL code in
MonoDroidApplication1.Activity1:OnCreate (Android.OS.Bundle): IL_00c7: stloc.s
4
01-01 03:06:27.056: INFO/MonoDroid(2997): at
Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr)
<0x00057>
01-01 03:06:27.056: INFO/MonoDroid(2997): at (wrapper dynamic-method)
object.ee06d8a3-2e12-4306-9128-b994be7cba96 (intptr,intptr,intptr) <0x00033>
01-01 03:06:27.096: ERROR/mono(2997): [0xafd4a82c:] EXCEPTION handling:
System.InvalidProgramException: Invalid IL code in
MonoDroidApplication1.Activity1:OnCreate (Android.OS.Bundle): IL_00c7: stloc.s
4
01-01 03:06:27.116: ERROR/mono(2997): Unhandled Exception:
System.InvalidProgramException: Invalid IL code in
MonoDroidApplication1.Activity1:OnCreate (Android.OS.Bundle): IL_00c7: stloc.s
4
01-01 03:06:27.116: ERROR/mono(2997): at
Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr
native__this, IntPtr native_savedInstanceState) [0x00000] in <filename
unknown>:0
01-01 03:06:27.116: ERROR/mono(2997): at (wrapper dynamic-method)
object:ee06d8a3-2e12-4306-9128-b994be7cba96 (intptr,intptr,intptr)
01-01 03:06:27.126: DEBUG/Zygote(822): Process 2997 exited cleanly (1)
01-01 03:06:27.126: INFO/ActivityManager(890): Process de.mobilebits.test (pid
2997) has died.
01-01 03:06:27.376: INFO/UsageStats(890): Unexpected resume of
com.android.launcher while already resumed in de.mobilebits.test
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list