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
GitHub or Developer Community 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.
I tried to run a .NET program from
Unhandled Exception: System.InvalidOperationException: WinForms_SeeInnerException ---> System.InvalidProgramException: Method
SR4CG.Form1:InitializeComponent () is too complex.
Mono JIT compiler version 184.108.40.206 (Debian 220.127.116.11-3)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
openSUSE 13.2, mono 4.0.1, I still see this bug. After googling it seems it has something go heavy methods, in my case it is around of 30K _lines_ of code (around 10K statements).
It is possible to run the program applying "-O=-inline" option.
On Windows the same program runs without any problem.
Update: "inline" hack was good when it worked, not anymore. I have constructor (auto-generated) with around 34K lines now, and even with "inline" option mono refuses to run the program "constructor is too complex".
We no longer have that restriction.