Bug 4809 - Mdtool building ios project has gtk critical error
Summary: Mdtool building ios project has gtk critical error
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.9.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-05-01 17:08 UTC by lindsey.driscoll
Modified: 2012-05-02 00:16 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Sample iOS project (7.58 MB, application/zip)
2012-05-01 17:08 UTC, lindsey.driscoll

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description lindsey.driscoll 2012-05-01 17:08:04 UTC
In the latest master builds of MD, mdtool is giving an error message of the following:

(mdtool:57672): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed

The project was still built and the applications .app was generated but the above error message was listed so I'm reporting it

Command executed:

mdtool build --configuration:"Release|iPhone" /Users/ldriscoll/Projects/iOSUIAutomationDemo/iOSUIAutomationDemo.csproj

Project is attached


MD: 2.9.6 (revision-9aa93c81b3b2d17472f28ab2ade843963817dd76)
Mono: 2.10.9
MacOSX: Lion
Comment 1 lindsey.driscoll 2012-05-01 17:08:51 UTC
Created attachment 1787 [details]
Sample iOS project
Comment 2 Mikayla Hutchinson [MSFT] 2012-05-01 17:52:33 UTC
Looks like a bug in https://github.com/mono/monodevelop/commit/fee338171683b783e2dfb7140fab4168714b5a5c
Comment 3 Mikayla Hutchinson [MSFT] 2012-05-01 18:19:13 UTC
Note also that calling Gtk.Application.Init could break mdtool on headless servers. Does it really need to be called?
Comment 4 Mike Krüger 2012-05-02 00:16:11 UTC
We need it to be called because of the regex scanner in the gettext addin that uses mime types.

I've taken it out now is the mime type generation broken - but who cares, we can do it from inside the IDE. 

Why do anyone need mdtool anyways - it should be replaced by xbuild asap.