Bug 30910 - mtouch crashes
Summary: mtouch crashes
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: master
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2015-06-08 12:06 UTC by Jeffrey Stedfast
Modified: 2015-11-12 07:55 UTC (History)
3 users (show)

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

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:
RESOLVED ANSWERED

Description Jeffrey Stedfast 2015-06-08 12:06:47 UTC
Task "MTouch"
		Using task MTouch from Xamarin.iOS.Tasks.MTouch, Xamarin.iOS.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
		MTouch Task
		  AppBundleDir: bin/iPhone/Debug/WatchKitCatalog.app
		  AppExtensionReferences:
		    /Users/fejj/src/monotouch-samples/WatchKit/WatchKitCatalog/WatchkitExtension/bin/iPhone/Debug/com.xamarin.WatchKitCatalogDemo.watchkitextension.appex
		  AppManifest: bin/iPhone/Debug/WatchKitCatalog.app/Info.plist
		  Architectures: ARMv7, ARM64
		  CompiledEntitlements: obj/iPhone/Debug/Entitlements.xcent
		  Debug: True
		  EnableGenericValueTypeSharing: True
		  Entitlements: Entitlements.plist
		  ExecutableName: WatchKitCatalog
		  ExtraArgs: <null>
		  FastDev: False
		  I18n: <null>
		  IntermediateOutputPath: obj/iPhone/Debug/mtouch-cache
		  IsAppExtension: False
		  LinkMode: SdkOnly
		  MainAssembly: /Users/fejj/src/monotouch-samples/WatchKit/WatchKitCatalog/WatchKitCatalog/bin/iPhone/Debug//WatchKitCatalog.exe
		  NativeReferences: <null>
		  OutputPath: bin/iPhone/Debug/
		  Platform: iPhone
		  Profiling: True
		  ProjectDir: /Users/fejj/src/monotouch-samples/WatchKit/WatchKitCatalog/WatchKitCatalog
		  References:
		    /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll
		    /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Xml.dll
		    /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
		    /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll
		    /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll
		  SdkRoot: /Applications/Xcode.app/Contents/Developer
		  SdkVersion: 8.3
		  SymbolsList: obj/iPhone/Debug/mtouch-symbols.list
		  TargetFrameworkIdentifier: Xamarin.iOS
		  UseLlvm: False
		  UseRefCounting: False
		  UseSGen: True
		  UseThumb: False
		Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch execution started with arguments: --cache /Users/fejj/src/monotouch-samples/WatchKit/WatchKitCatalog/WatchKitCatalog/obj/iPhone/Debug/mtouch-cache --dev /Users/fejj/src/monotouch-samples/WatchKit/WatchKitCatalog/WatchKitCatalog/bin/iPhone/Debug/WatchKitCatalog.app --executable WatchKitCatalog --debug --profiling --linksdkonly --sdkroot /Applications/Xcode.app/Contents/Developer --sdk 8.3 --targetver 8.0 --abi=armv7,arm64 --symbollist /Users/fejj/src/monotouch-samples/WatchKit/WatchKitCatalog/WatchKitCatalog/obj/iPhone/Debug/mtouch-symbols.list --dsym=no -r /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll -r /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Xml.dll -r /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll -r /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll -r /Users/fejj/src/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll --app-extension /Users/fejj/src/monotouch-samples/WatchKit/WatchKitCatalog/WatchkitExtension/bin/iPhone/Debug/com.xamarin.WatchKitCatalogDemo.watchkitextension.appex /Users/fejj/src/monotouch-samples/WatchKit/WatchKitCatalog/WatchKitCatalog/bin/iPhone/Debug//WatchKitCatalog.exe 
		Environment variables being passed to the tool:
		Xamarin.iOS 8.11.0 Business Edition using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk
MTOUCH: error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
		System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
		  at System.IO.BinaryReader.FillBuffer (Int32 numBytes) <0x1037eccf0 + 0x0015e> in <filename unknown>:0 
		  at System.IO.BinaryReader.ReadUInt32 () <0x107997a40 + 0x00015> in <filename unknown>:0 
		  at Xamarin.MachOFile.Read (System.IO.BinaryReader reader) <0x10d2cdb10 + 0x00113> in <filename unknown>:0 
		  at Xamarin.FatEntry.ReadEntry (System.IO.BinaryReader reader) <0x10d2cda50 + 0x000a3> in <filename unknown>:0 
		  at Xamarin.FatFile.Read (System.IO.BinaryReader reader) <0x10d2cd5f0 + 0x001a4> in <filename unknown>:0 
		  at Xamarin.MachO.ReadFile (System.IO.BinaryReader reader, System.String filename) <0x10d2cd1b0 + 0x000f6> in <filename unknown>:0 
		  at Xamarin.MachO.ReadFile (System.String filename) <0x10d2cd000 + 0x000bf> in <filename unknown>:0 
		  at Xamarin.MachO.SelectArchitectures (System.String filename, ICollection`1 abis) <0x10d2caa30 + 0x0017e> in <filename unknown>:0 
		  at MonoTouch.Application.BuildFinalExecutable () <0x10d2c6280 + 0x00520> in <filename unknown>:0 
		  at MonoTouch.Application.Build () <0x106ef8880 + 0x00110> in <filename unknown>:0 
		  at MTouch.Main2 (System.String[] args) <0x1027d4720 + 0x06d77> in <filename unknown>:0 
		  at MTouch.Main (System.String[] args) <0x1027cfe60 + 0x00024> in <filename unknown>:0 
		Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch execution finished.
	Task "MTouch" execution -- FAILED
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-06-17 06:15:06 UTC
This builds fine for me.

Can you attach the full version information from XS?
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-11-12 07:55:03 UTC
This should be working now.