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.
Description of Problem:
Using mono trunk version and running from MonoDevelop the XWT projects, the runtime crashes with the following error:
* Assertion at mini.c:3615, condition `l' not met
at <unknown> <0xffffffff>
at GLib.Marshaller.ListToArray (GLib.ListBase,System.Type) <IL 0x0001c, 0x000c3>
at GLib.Marshaller.ListPtrToArray (intptr,System.Type,bool,bool,System.Type) <IL 0x00030, 0x0017b>
at Gtk.Container.get_Children () <IL 0x00023, 0x0009b>
at Xwt.GtkBackend.MenuBackend.get_MenuBar () <IL 0x00035, 0x0018b>
at Xwt.GtkBackend.WindowBackend.SetMainMenu (Xwt.Backends.IMenuBackend) <IL 0x0002b, 0x000f3>
at Xwt.Window.set_MainMenu (Xwt.Menu) <IL 0x0001d, 0x00141>
at Samples.MainWindow..ctor () <IL 0x0019e, 0x0098b>
at (wrapper remoting-invoke-with-check) Samples.MainWindow..ctor () <IL 0x0001f, 0xffffffff>
at Samples.App.Run (string) <IL 0x00006, 0x00063>
at GtkTest.MainClass.Main (string) <IL 0x00005, 0x0003b>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
Steps to reproduce the problem:
1. Download the xwt project from https://github.com/mono/xwt.git
2. Compile and run it from MonoDevelop with debugger (the GtkTest project, remove unrelated wpf and mac projects)
How often does this happen?
Always when run with debugging; never without debugging
It did not happen with older versions.
Oh, I see, this is related to sequence points, so no wonder it only appears with debugging. Therefore it probably may be the compiler bug as well, but can't tell.
I can't reproduce this. Which mono/md version are you using, did you compile it from source ?
Yes, both the mono and MD are compiled from source. The versions should be:
ed4bdae26aee6fb70c3292e132dd42951cedf6ce for MonoDevelop
1113782115f43dae2d4a3bb705a30cf3e8e0cbdb for Mono
I may check tomorrow for sure (this is PC at work), but you should be able to reproduce with these.
Could you run it with setting the env variable MONO_ENV_OPTIONS to '-v -v -v -v' in the project options, and attaching the last 10000 lines of output ?
Created attachment 2450 [details]
Last 10000 line of output with -v -v -v -v
Sure, here you are.
Created attachment 2451 [details]
Produced and ran binaries
I've also attached the build output (that is, binaries), maybe you'll find them useful for checking things like IL offsets without compiling by yourself.
What version of gtk-sharp are you using ? Could you attach your glib-sharp.dll ?
Created attachment 2470 [details]
Fixed in master. Thanks for the help.
You're welcome, works indeed.