Created attachment 8120 [details]
Try/Catch was added around the line causing error to produce this more detailed result
A customer sent in a project that was throwing an error as follows:
2014-09-18 15:36:43.865 AgriData[633:6107] An exception was thrown by the type initializer for Adm.Core.ViewModel.ViewModelBag
An exception was thrown by the type initializer for Adm.Core.ViewModel.ViewModelBag
The project must be run on device to produce this error. Upon further investigation with a try / catch, we were able to produce a more detailed error as shown by the provided attachment.
We are seeing a SIGILL error.
Project sample from customer will be attached privately.
## Version Information
=== Xamarin Studio ===
Version 5.4 (build 239)
Installation UUID: ee07b9c8-41e3-496f-a1ab-e8a3ed3db20f
Mono 3.8.0 ((no/45d0ba1)
GTK+ 2.24.23 (Raleigh theme)
Package version: 308000009
=== Apple Developer Tools ===
Xcode 6.0.1 (6528)
=== Xamarin.Mac ===
Version: 126.96.36.199 (Business Edition)
=== Xamarin.Android ===
Version: 4.17.0 (Business Edition)
Android SDK: /Users/dominicnahous/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0 (API level 14)
4.0.3 (API level 15)
4.2 (API level 17)
4.4 (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
=== Xamarin.iOS ===
Version: 188.8.131.52 (Business Edition)
Build date: 2014-09-16 12:47:14-0400
=== Build Information ===
Release ID: 504000239
Git revision: 338110385bb89c5774e89ffcb15d8f2039e7fbcd
Build date: 2014-09-16 12:25:53-04
Xamarin addins: 05241f5ab70cf79388a0f113bc6877780ed1024a
=== Operating System ===
Mac OS X 10.9.4
Darwin Dominics-MacBook-Pro.local 13.3.0 Darwin Kernel Version 13.3.0
Tue Jun 3 21:27:35 PDT 2014
@Dominic have you tried to build the attached project ? I'm getting 70 errors due to missing files (resources).
@Sebastien - my apologies. I attached the file sent directly from the customer. I forgot I had to delete some references to get it running. Just cleaned it up and will be attaching it privately. Thanks!
Zoltan, the SIGILL still occurs using monotouch/master (dda2612fc43c4585ed1731b40b47c9f456db4bae)
Happens only on device/AOT, simulator/JIT is fine.
This is the usual 'code is too large error', the Adm.Core.dll assembly is compiled to native code which is over 16mb of length in debug mode due to some huge methods in
We should probably detect this in the AOT compiler and error out.
A large part of those issue are failing at build time (and we error out, even if it's not always clear why).
*** This bug has been marked as a duplicate of bug 1102 ***