Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
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: 184.108.40.206 (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: 220.127.116.11 (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 ***