Bug 17506 - MT0000 error when building project
Summary: MT0000 error when building project
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 7.0.6.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: 7.2.1
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2014-01-30 05:14 UTC by Tom Gilder
Modified: 2014-03-20 08:48 UTC (History)
4 users (show)

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


Attachments
Example project (1.25 MB, application/zip)
2014-01-30 05:14 UTC, Tom Gilder
Details
Log of failed build (33.34 KB, text/plain)
2014-01-30 06:17 UTC, Tom Gilder
Details


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:
Status:
VERIFIED FIXED

Description Tom Gilder 2014-01-30 05:14:33 UTC
Created attachment 5942 [details]
Example project

Unexpected build error MT0000 when building attached project. Mono 3.2.6 / X.iOS 7.0.6.168.


To reproduce:

1. Open attached project in Xamarin Studio on OS X
2. Set to build in Release for iOS Device
3. Build project: it'll build with warnings
4. Build project again: it'll fail with an error

Rebuilding always works.


Error:

error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.NullReferenceException: Object reference not set to an instance of an object
  at MonoTouch.Tuner.InternalPInvoke.GetEntryPoints (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0 
  at MonoTouch.Application.StripNativeCode () [0x00000] in <filename unknown>:0 
  at MonoTouch.Application.Build () [0x00000] in <filename unknown>:0 
  at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0 
  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
Comment 1 narayanp 2014-01-30 05:47:37 UTC
I have checked this issue with following builds:

All Mac
X.S 4.3.1(build 5)
Mono 3.2.6
X.iOS 7.0.6.168

I have build attached sample. I am not able to reproduce this issue. This is the screencast for the same: http://screencast.com/t/mqRNHCdA

@Tom, Could you please try it again?
Comment 2 Tom Gilder 2014-01-30 06:17:32 UTC
Created attachment 5943 [details]
Log of failed build

Always fails for me. Here's a build log.
Comment 3 Rolf Bjarne Kvinge [MSFT] 2014-01-30 08:32:08 UTC
I can reproduce it.
Comment 4 Rolf Bjarne Kvinge [MSFT] 2014-01-30 09:15:23 UTC
Fixed.

This fix will be included in the 7.0.7 release. In the meantime you can either just rebuild when this occurs, or add '-f' to the additional mtouch arguments in the project's iOS Build options (which will force a full rebuild every time).

monotouch/master: cfa39272cf772d27c6153fd58085e4f720ade2ae

QA: unit tests have been added as well.
Comment 5 Tom Gilder 2014-02-01 07:47:07 UTC
Thank you! Amazingly quick :-)

Does this fix the MT3005+MT3006 warnings too?
Comment 6 Rolf Bjarne Kvinge [MSFT] 2014-02-20 20:39:28 UTC
No, but those have been fixed in another bug report.
Comment 7 narayanp 2014-03-20 08:48:21 UTC
Unit test have been added for this as mentioned in comment#4. Hence changing the status of this issue to Verified.