Bug 4088 - Deploy of monotouch application to iphone running iOS 3.1.3 failed
Summary: Deploy of monotouch application to iphone running iOS 3.1.3 failed
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-03-25 21:22 UTC by Omri Gazitt
Modified: 2012-03-27 20:01 UTC (History)
2 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 INVALID

Description Omri Gazitt 2012-03-25 21:22:32 UTC
I've been able to deploy the app to an iPad running iOS 5.1 as well as iOS 4.3, but this is a first-gen iPhone running 3.1.3 and the deployment fails with the exception below.

I'm using MonoDevelop 2.8.6.5 (latest).

Connected to: Omri's iPhone
error MT0000: Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com
System.Xml.XmlException: unexpected end of file. Current depth is 3  Line 475, position 2.
at Mono.Xml2.XmlTextReader.ReadContent () <0x0024f>
at Mono.Xml2.XmlTextReader.ReadContent () <0x001af>
at Mono.Xml2.XmlTextReader.Read () <0x0019b>
at System.Xml.XmlTextReader.Read () <0x000b7>
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader) <0x00737>
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader) <0x002d3>
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader) <0x002d3>
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader) <0x002d3>
at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader) <0x0009f>
at System.Xml.XmlDocument.Load (System.Xml.XmlReader) <0x0004f>
at System.Xml.XmlDocument.LoadXml (string) <0x000be>
at MonoTouch.Installation.Installer.KillApplication (MonoTouch.Installation.Device,string) <0x000b8>
at MonoTouch.Installation.Installer/<KillApplication>c__AnonStorey6.<>m__7 (MonoTouch.Installation.Device) <0x00017>
at MonoTouch.Installation.Installer/<ExecuteWithSession>c__AnonStorey3.<>m__2 (object,System.EventArgs) <0x000ef>
at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0x0006e>
at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0x0003f>
at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () <0x00003>
at MonoTouch.CoreFoundation.CFRunLoop.Run () <0x0000b>
at MonoTouch.Installation.Installer.ExecuteWithSession (MonoTouch.Installation.Installer/Executor) <0x000cf>
at MonoTouch.Installation.Installer.KillApplication (string) <0x0005f>
at MTouch.Main2 (string[]) <0x03c1f>
at MTouch.Main (string[]) <0x0001f>
Comment 1 Omri Gazitt 2012-03-25 21:34:34 UTC
forgot to mention... at the end of the process, the app appears to be deployed to the iPhone, but it crashes upon invocation.

does MT / MD support first-gen iphones (running iOS 3.1.3?)
Comment 2 Rolf Bjarne Kvinge [MSFT] 2012-03-26 18:56:27 UTC
Can you try with the latest beta? It will fail in the same way, but the error(s) should be reported better, so it'd be easier to find out what's going wrong.
Comment 3 Rolf Bjarne Kvinge [MSFT] 2012-03-27 09:39:07 UTC
Sorry, the latest alpha, not beta. The current beta is the same release as stable.
Comment 4 Omri Gazitt 2012-03-27 13:43:56 UTC
Thanks Rolf - do you mean latest alpha of MT or MD?

Is there a way to install side by side or do I need to find an isolated system?
Comment 5 Rolf Bjarne Kvinge [MSFT] 2012-03-27 14:06:34 UTC
I meant the latest alpha of MT (5.3.2).

There is no way to install side-by-side, but if you want to downgrade you can just reinstall the old version again (on top of the newer version).
Comment 6 Omri Gazitt 2012-03-27 14:44:49 UTC
error MT0000: Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com
System.Xml.XmlException: Expected >, but found EOF [-1]  Line 474, position 21.
at Mono.Xml2.XmlTextReader.ExpectAfterWhitespace (char) <0x00153>
at Mono.Xml2.XmlTextReader.ReadEndTag () <0x000af>
at Mono.Xml2.XmlTextReader.ReadContent () <0x0013f>
at Mono.Xml2.XmlTextReader.Read () <0x0019b>
at System.Xml.XmlTextReader.Read () <0x000b7>
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader) <0x00737>
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader) <0x002d3>
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader) <0x002d3>
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader) <0x002d3>
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader) <0x002d3>
at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader) <0x0009f>
at System.Xml.XmlDocument.Load (System.Xml.XmlReader) <0x0004f>
at System.Xml.XmlDocument.LoadXml (string) <0x000be>
at MonoTouch.Installation.Installer.KillApplication (MonoTouch.Installation.Device,string) <0x000b8>
at MonoTouch.Installation.Installer/<KillApplication>c__AnonStorey6.<>m__7 (MonoTouch.Installation.Device) <0x00017>
at MonoTouch.Installation.Installer/<ExecuteWithSession>c__AnonStorey3.<>m__2 (object,System.EventArgs) <0x000ef>
at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0x0006e>
at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0x0003f>
at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () <0x00003>
at MonoTouch.CoreFoundation.CFRunLoop.Run () <0x0000b>
at MonoTouch.Installation.Installer.ExecuteWithSession (MonoTouch.Installation.Installer/Executor) <0x000cf>
at MonoTouch.Installation.Installer.KillApplication (string) <0x0005f>
at MTouch.Main2 (string[]) <0x03c1f>
at MTouch.Main (string[]) <0x0001f>
Comment 7 Omri Gazitt 2012-03-27 15:00:55 UTC
I realized that MD 2.9.2 still only has MT 5.2.10.  I've been spending the last 15 min on the xamarin website and can't find how to download 5.3.2 (I can only find release notes / docs).  Is there a link you can supply?  

Thanks,

Omri.
Comment 8 Omri Gazitt 2012-03-27 15:45:32 UTC
OK, figured out how to switch to the alpha channel in MD... and installed MT 5.3.2.

The exception goes away when I build / deploy to the device (yay!)

But my app still only gets to the launch screen and then crashes without hitting my breakpoint in Main.cs (on the line that calls UIApplication.Main()).

The debug version takes a while to load on this hardware (it's about 29MB!) so it's possible that iOS is just killing it because it hasn't finished loading in the time quota.  But the Release version (about 8.5MB) loads the launch screen and dies in less than a second... so that can't be the problem (or at least not the only problem).

Given all of this, it's hard for me to diagnose the problem, given that the app works fine on the simulator and on newer hardware.

Any advice would be greatly appreciated!
Comment 9 Rolf Bjarne Kvinge [MSFT] 2012-03-27 17:46:44 UTC
Are there any crash reports in Xcode's Organizer? And is anything printed to the Device Console?
Comment 10 Omri Gazitt 2012-03-27 18:46:21 UTC
Yes to both...

I get two kinds of crash logs: one for not launching in time (below as [1]), and another (presumably the Release build) which seems to crash on [NSObject doesNotRecognizeSelector:] (below as [2]).

Here's what I get from the console... but I believe I'm compiling for ARM6... does the MT codegen support the original iphone CPU (i.e. - this isn't an iPhone 3G or 3GS - it's an Edge-based original iPhone).

Thanks!

Tue Mar 27 15:43:40 unknown com.apple.launchd[1] <Error>: (UIKitApplication:iphone[0xc4e0]) posix_spawn("/var/mobile/Applications/7B47EBC0-6F8D-4082-BCC8-605496A613DC/iphone.app/zaplifyiphone", ...): Bad CPU type in executable
Tue Mar 27 15:43:40 unknown SpringBoard[25] <Warning>: Failed to spawn Zaplify. Unable to obtain a task name port right for pid 886: (os/kern) failure
Tue Mar 27 15:43:40 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:iphone[0xc4e0]) Exited with exit code: 1
Tue Mar 27 15:43:40 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:iphone[0xc4e0]) Throttling respawn: Will start in 2147483647 seconds
Tue Mar 27 15:43:40 unknown SpringBoard[25] <Warning>: Application 'Zaplify' exited abnormally with exit status 1
Tue Mar 27 15:43:44 unknown com.apple.mobile.lockdown[16] <Notice>: Could not receive size of message
Tue Mar 27 15:43:44 unknown lockdownd[16] <Error>: (0x835600) handle_connection: Could not receive USB message #7 from iTunes. Killing connection

[1]

Incident Identifier: 1B485E6B-3B78-4045-9A03-40231C49BCC2
CrashReporter Key:   e6181620434a18129e833b3175129a1790a899d0
Process:         zaplifyiphone [641]
Path:            /var/mobile/Applications/37CAD671-CC43-4490-9C08-EA034CD66BD9/iphone.app/zaplifyiphone
Identifier:      zaplifyiphone
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2012-03-27 12:39:00.328 -0700
OS Version:      iPhone OS 3.1.3 (7E18)
Report Version:  104

Exception Type:  00000020
Exception Codes: 0x8badf00d
Highlighted Thread:  0

Application Specific Information:
iphone failed to launch in time 
elapsed total CPU time (seconds): 1.000 (user 0.210, system 0.790), 5% CPU 
elapsed application CPU time (seconds): 0.190, 1% CPU

Thread 0:
0   libSystem.B.dylib             	0x33ad3308 recvfrom + 20
1   libSystem.B.dylib             	0x33ad32ea recv + 10
2   zaplifyiphone                 	0x00bf2468 0x1000 + 12522600
3   zaplifyiphone                 	0x00bf2570 0x1000 + 12522864
4   zaplifyiphone                 	0x00b0b414 0x1000 + 11576340
5   zaplifyiphone                 	0x00b0b5d0 0x1000 + 11576784
6   zaplifyiphone                 	0x00bf22c4 0x1000 + 12522180
7   zaplifyiphone                 	0x00b02ab4 0x1000 + 11541172
8   zaplifyiphone                 	0x00b0bab8 0x1000 + 11578040
9   zaplifyiphone                 	0x00ad22e4 0x1000 + 11342564
10  zaplifyiphone                 	0x00ad828c 0x1000 + 11367052
11  zaplifyiphone                 	0x00bf0cb8 0x1000 + 12516536
12  zaplifyiphone                 	0x00002bb8 0x1000 + 7096

Unknown thread crashed with unknown flavor: 5, state_count: 1

Binary Images:
    0x1000 -   0xce6fff +zaplifyiphone armv6  <e26ea37b44893317a115a5b3edc32c1d> /var/mobile/Applications/37CAD671-CC43-4490-9C08-EA034CD66BD9/iphone.app/zaplifyiphone
 0x1cf2000 -  0x1cf3fff  dns.so armv6  <957f94410f77a351749ac39d2b4b4abe> /usr/lib/info/dns.so
0x2fe00000 - 0x2fe26fff  dyld armv6  <544395a4b5546114b878d5131a84fd7f> /usr/lib/dyld
0x30010000 - 0x30104fff  libiconv.2.dylib armv6  <f3c5cdf74fe386e4169664a48028bb85> /usr/lib/libiconv.2.dylib
0x30108000 - 0x3085bfff  WebCore armv6  <65181be01889192c1252e2535531c99c> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x3087d000 - 0x30881fff  IOSurface armv6  <f19a15d8311b851caeba68c1fef33e11> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x30882000 - 0x308effff  CFNetwork armv6  <58e56341b7a2a491c727a385b871f7b8> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x308f0000 - 0x3092efff  CoreText armv6  <fe5639949094efc4d973a1f6457a4e5c> /System/Library/PrivateFrameworks/CoreText.framework/CoreText
0x3092f000 - 0x309dcfff  ImageIO armv6  <572f72dbfb19a2fd37666bb1d58b13cb> /System/Library/PrivateFrameworks/ImageIO.framework/ImageIO
0x309f9000 - 0x30a03fff  libkxld.dylib armv6  <33215da7e582cbc93ad25bf1cdb8ea62> /usr/lib/system/libkxld.dylib
0x30a05000 - 0x30a40fff  CoreTelephony armv6  <98b8ac66b4615a56958655929505c985> /System/Library/PrivateFrameworks/CoreTelephony.framework/CoreTelephony
0x30a66000 - 0x30a76fff  libbsm.0.dylib armv6  <722065615a92c5d0c57395f0aa624b8d> /usr/lib/libbsm.0.dylib
0x30e1a000 - 0x30e20fff  MBX2D armv6  <5246c74334f4daf6c0b876605134baa1> /System/Library/PrivateFrameworks/MBX2D.framework/MBX2D
0x30f72000 - 0x31073fff  libicucore.A.dylib armv6  <a99c2e5d034344c7447a7420db2b36b1> /usr/lib/libicucore.A.dylib
0x3107e000 - 0x3109cfff  libresolv.9.dylib armv6  <c25b840bd418c833ab6c31a29389445a> /usr/lib/libresolv.9.dylib
0x3110c000 - 0x3110dfff  IOMobileFramebuffer armv6  <89abbd5846018f4b74250e8cb09eaf4c> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x3110e000 - 0x311bbfff  WebKit armv6  <2bf8152a62e6cbc8a219d80489acb0e7> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x311bd000 - 0x31267fff  QuartzCore armv6  <5cab4e700e90abef71c1b2b695bd897a> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x31389000 - 0x3142cfff  libobjc.A.dylib armv6  <54f0ebeeb9747bf5075f93e2a5043b5e> /usr/lib/libobjc.A.dylib
0x3142f000 - 0x31463fff  Security armv6  <fb2124d1711c8931a7df711d126193d0> /System/Library/Frameworks/Security.framework/Security
0x31464000 - 0x314b1fff  IOKit armv6  <521cb10d7c6fb9ce21936db07a2587bb> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x316c0000 - 0x316c8fff  AVFoundation armv6  <9626256280a896e5a1101dc0b8cb21ac> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x318d5000 - 0x318f3fff  AddressBook armv6  <80bdcada8d61624b2bb0796b7155f570> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x318f4000 - 0x3192efff  libvDSP.dylib armv6  <cf9cc6079374718dce29cba9de48b993> /System/Library/PrivateFrameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x31fb6000 - 0x31fddfff  AppSupport armv6  <db69446acd77981f1d9c968846e4c868> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x3209f000 - 0x320a5fff  liblockdown.dylib armv6  <f18aa1ca3cc98cda954fd821ff88a3ac> /usr/lib/liblockdown.dylib
0x320eb000 - 0x320ebfff  vecLib armv6  <c8a08b45effd5eb35a476a969628e52d> /System/Library/PrivateFrameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x322e7000 - 0x3231bfff  SystemConfiguration armv6  <4b1e9c323f8c973bac2737cdccec8de3> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x3234d000 - 0x32364fff  OpenGLES armv6  <8d075dd39e978efae59c70eeedfd858a> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x3239e000 - 0x3244afff  CoreFoundation armv6  <26d25c2c53c05db6e9adc24d5befaa2c> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x3244b000 - 0x3244bfff  Accelerate armv6  <21e1dc9fad96f0d51afbeb7f7e006aaf> /System/Library/PrivateFrameworks/Accelerate.framework/Accelerate
0x324a3000 - 0x33294fff  UIKit armv6  <4e881f8351712fd798c335af748b5b5f> /System/Library/Frameworks/UIKit.framework/UIKit
0x332bb000 - 0x333b8fff  JavaScriptCore armv6  <41bc769b8c046770bac84eed2b08ff42> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x333e6000 - 0x334dcfff  libxml2.2.dylib armv6  <a2f276df14b4ded9650dea857293b4e9> /usr/lib/libxml2.2.dylib
0x33501000 - 0x3350cfff  GraphicsServices armv6  <3a4ec1bf23242cddae5f606f0ed38930> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x3350d000 - 0x33661fff  AudioToolbox armv6  <31bb7db82eece25ac6742672e3afbe02> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x336a9000 - 0x336b5fff  CoreVideo armv6  <63d65206a8853262b597f97b3d949f31> /System/Library/PrivateFrameworks/CoreVideo.framework/CoreVideo
0x336de000 - 0x337d6fff  Foundation armv6  <a3612d56db60ccfc998caee19d9805d7> /System/Library/Frameworks/Foundation.framework/Foundation
0x338d0000 - 0x33a8afff  CoreGraphics armv6  <41796502b08a751095dcd2b105d1931c> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x33a92000 - 0x33a9afff  libgcc_s.1.dylib armv6  <6673f222acee5f3a208169712387862a> /usr/lib/libgcc_s.1.dylib
0x33aa2000 - 0x33aacfff  MobileCoreServices armv6  <805d82b950722ad728d87e0c24089c4b> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x33aad000 - 0x33bd3fff  libSystem.B.dylib armv6  <0373fd64e915a17160732b29d343f95f> /usr/lib/libSystem.B.dylib
0x33bf6000 - 0x33c60fff  libstdc++.6.dylib armv6  <a35cfd59eee09893fbab57794ad7cbaf> /usr/lib/libstdc++.6.dylib
0x33da7000 - 0x33e01fff  libsqlite3.dylib armv6  <61513660cb3e21b47ccbf5407e0efae5> /usr/lib/libsqlite3.dylib
0x340e2000 - 0x3413dfff  CoreAudio armv6  <71fb4de4976308c0a3f86d127e46472b> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x3430e000 - 0x3431cfff  libz.1.dylib armv6  <7a06dbf4af39c5b548306c7fb8ffcf0b> /usr/lib/libz.1.dylib
0x3439e000 - 0x343a7fff  SpringBoardServices armv6  <f13747f4598b0f4b1442877adc75de5a> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x343ab000 - 0x343acfff  CoreSurface armv6  <f27efe4047d6b4319bc01edb9007a789> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface

[2] 


Incident Identifier: 3036B23E-E992-4478-B8F7-31A0CF1D34F2
CrashReporter Key:   e6181620434a18129e833b3175129a1790a899d0
Process:         zaplifyiphone [619]
Path:            /var/mobile/Applications/37CAD671-CC43-4490-9C08-EA034CD66BD9/iphone.app/zaplifyiphone
Identifier:      zaplifyiphone
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2012-03-27 12:38:10.017 -0700
OS Version:      iPhone OS 3.1.3 (7E18)
Report Version:  104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib             	0x33b3db2c __kill + 8
1   libSystem.B.dylib             	0x33b3db1a kill + 4
2   libSystem.B.dylib             	0x33b3db0e raise + 10
3   libSystem.B.dylib             	0x33b54e34 abort + 36
4   zaplifyiphone                 	0x00aec898 0x1000 + 11450520
5   zaplifyiphone                 	0x00b11bb4 0x1000 + 11602868
6   libSystem.B.dylib             	0x33b3b7ec _sigtramp + 28
7   libSystem.B.dylib             	0x33b3db1a kill + 4
8   libSystem.B.dylib             	0x33b3db0e raise + 10
9   libSystem.B.dylib             	0x33b54e34 abort + 36
10  zaplifyiphone                 	0x00bd7fac 0x1000 + 12414892
11  zaplifyiphone                 	0x00bd7ff8 0x1000 + 12414968
12  zaplifyiphone                 	0x00ace384 0x1000 + 11326340
13  zaplifyiphone                 	0x00aec1a0 0x1000 + 11448736
14  zaplifyiphone                 	0x00aec3a4 0x1000 + 11449252
15  zaplifyiphone                 	0x00b107c8 0x1000 + 11597768
16  zaplifyiphone                 	0x009e0ed4 0x1000 + 10354388
17  zaplifyiphone                 	0x00c02628 0x1000 + 12588584
18  CoreFoundation                	0x32432e1c __handleUncaughtException + 224
19  libobjc.A.dylib               	0x3139188c _objc_terminate + 148
20  libstdc++.6.dylib             	0x33c59a84 __cxxabiv1::__terminate(void (*)()) + 76
21  libstdc++.6.dylib             	0x33c59afc std::terminate() + 16
22  libstdc++.6.dylib             	0x33c59c24 __cxa_throw + 100
23  libobjc.A.dylib               	0x3138fe54 objc_exception_throw + 104
24  CoreFoundation                	0x32433bf6 -[NSObject doesNotRecognizeSelector:] + 106
25  CoreFoundation                	0x323b8b12 ___forwarding___ + 474
26  CoreFoundation                	0x323af838 _CF_forwarding_prep_0 + 40
27  zaplifyiphone                 	0x002ba494 0x1000 + 2856084
28  zaplifyiphone                 	0x00126a24 0x1000 + 1202724
29  zaplifyiphone                 	0x0099b53c 0x1000 + 10069308
30  zaplifyiphone                 	0x00ad1aa8 0x1000 + 11340456
31  zaplifyiphone                 	0x00b8a114 0x1000 + 12095764
32  zaplifyiphone                 	0x00bfbc44 0x1000 + 12561476
33  UIKit                         	0x324a7e40 -[UIApplication _performInitializationWithURL:sourceBundleID:] + 468
34  UIKit                         	0x324a7a60 -[UIApplication _runWithURL:sourceBundleID:] + 576
35  UIKit                         	0x324f8df8 -[UIApplication handleEvent:withNewEvent:] + 1516
36  UIKit                         	0x324f8634 -[UIApplication sendEvent:] + 60
37  UIKit                         	0x324f808c _UIApplicationHandleEvent + 4528
38  GraphicsServices              	0x335067dc PurpleEventCallback + 1044
39  CoreFoundation                	0x323f5524 CFRunLoopRunSpecific + 2296
40  CoreFoundation                	0x323f4c18 CFRunLoopRunInMode + 44
41  UIKit                         	0x324a6c00 -[UIApplication _run] + 512
42  UIKit                         	0x324a5228 UIApplicationMain + 960
43  zaplifyiphone                 	0x002befa0 0x1000 + 2875296
44  zaplifyiphone                 	0x0011e9f8 0x1000 + 1169912
45  zaplifyiphone                 	0x0099b53c 0x1000 + 10069308
46  zaplifyiphone                 	0x00ad1aa8 0x1000 + 11340456
47  zaplifyiphone                 	0x00b8a114 0x1000 + 12095764
48  zaplifyiphone                 	0x00b8e4fc 0x1000 + 12113148
49  zaplifyiphone                 	0x00b93a68 0x1000 + 12135016
50  zaplifyiphone                 	0x00ad88a0 0x1000 + 11368608
51  zaplifyiphone                 	0x00bf0de4 0x1000 + 12516836
52  zaplifyiphone                 	0x00002bb8 0x1000 + 7096

Thread 1:
0   libSystem.B.dylib             	0x33aae4d8 semaphore_wait_trap + 8
1   libSystem.B.dylib             	0x33ae08e4 semaphore_wait + 4
2   zaplifyiphone                 	0x00bd0e70 0x1000 + 12385904
3   zaplifyiphone                 	0x00b3ec30 0x1000 + 11787312
4   zaplifyiphone                 	0x00baf09c 0x1000 + 12247196
5   zaplifyiphone                 	0x00bc8b04 0x1000 + 12352260
6   zaplifyiphone                 	0x00bede20 0x1000 + 12504608
7   libSystem.B.dylib             	0x33ad8780 _pthread_body + 20

Thread 2:
0   libSystem.B.dylib             	0x33aae488 mach_msg_trap + 20
1   libSystem.B.dylib             	0x33ab1064 mach_msg + 60
2   CoreFoundation                	0x323f5002 CFRunLoopRunSpecific + 982
3   CoreFoundation                	0x323f4c18 CFRunLoopRunInMode + 44
4   WebCore                       	0x3018c1d4 _ZL12RunWebThreadPv + 412
5   libSystem.B.dylib             	0x33ad8780 _pthread_body + 20

Thread 3:
0   libSystem.B.dylib             	0x33b3e6f0 __semwait_signal + 24
1   libSystem.B.dylib             	0x33ab08e6 nanosleep + 110
2   zaplifyiphone                 	0x00bc7ca0 0x1000 + 12348576
3   zaplifyiphone                 	0x00ba5e18 0x1000 + 12209688
4   zaplifyiphone                 	0x00baf09c 0x1000 + 12247196
5   zaplifyiphone                 	0x00bc8b04 0x1000 + 12352260
6   zaplifyiphone                 	0x00bede20 0x1000 + 12504608
7   libSystem.B.dylib             	0x33ad8780 _pthread_body + 20

Thread 4:
0   libSystem.B.dylib             	0x33aae4f0 semaphore_timedwait_trap + 8
1   libSystem.B.dylib             	0x33b40fec semaphore_timedwait + 4
2   zaplifyiphone                 	0x00bd0dc0 0x1000 + 12385728
3   zaplifyiphone                 	0x00ba8b2c 0x1000 + 12221228
4   zaplifyiphone                 	0x00baf09c 0x1000 + 12247196
5   zaplifyiphone                 	0x00bc8b04 0x1000 + 12352260
6   zaplifyiphone                 	0x00bede20 0x1000 + 12504608
7   libSystem.B.dylib             	0x33ad8780 _pthread_body + 20

Thread 5:
0   libSystem.B.dylib             	0x33adedec kevent + 24
1   zaplifyiphone                 	0x00ba6e60 0x1000 + 12213856
2   zaplifyiphone                 	0x00baf09c 0x1000 + 12247196
3   zaplifyiphone                 	0x00bc8b04 0x1000 + 12352260
4   zaplifyiphone                 	0x00bede20 0x1000 + 12504608
5   libSystem.B.dylib             	0x33ad8780 _pthread_body + 20

Thread 6:
0   libSystem.B.dylib             	0x33aae4f0 semaphore_timedwait_trap + 8
1   libSystem.B.dylib             	0x33b40fec semaphore_timedwait + 4
2   zaplifyiphone                 	0x00bd0dc0 0x1000 + 12385728
3   zaplifyiphone                 	0x00ba8b2c 0x1000 + 12221228
4   zaplifyiphone                 	0x00baf09c 0x1000 + 12247196
5   zaplifyiphone                 	0x00bc8b04 0x1000 + 12352260
6   zaplifyiphone                 	0x00bede20 0x1000 + 12504608
7   libSystem.B.dylib             	0x33ad8780 _pthread_body + 20

Thread 0 crashed with ARM Thread State:
    r0: 0x00000000    r1: 0x00000000      r2: 0x00000001      r3: 0x384e83cc
    r4: 0x00000006    r5: 0x00cc2f3c      r6: 0x00000000      r7: 0x2fffd4e0
    r8: 0x384e669c    r9: 0x00000008     r10: 0x001f295d     r11: 0x022108c4
    ip: 0x00000025    sp: 0x2fffd4e0      lr: 0x33b3db21      pc: 0x33b3db2c
  cpsr: 0x00000010

Binary Images:
    0x1000 -   0xce6fff +zaplifyiphone armv6  <e26ea37b44893317a115a5b3edc32c1d> /var/mobile/Applications/37CAD671-CC43-4490-9C08-EA034CD66BD9/iphone.app/zaplifyiphone
 0x1cf2000 -  0x1cf3fff  dns.so armv6  <957f94410f77a351749ac39d2b4b4abe> /usr/lib/info/dns.so
0x2fe00000 - 0x2fe26fff  dyld armv6  <544395a4b5546114b878d5131a84fd7f> /usr/lib/dyld
0x30010000 - 0x30104fff  libiconv.2.dylib armv6  <f3c5cdf74fe386e4169664a48028bb85> /usr/lib/libiconv.2.dylib
0x30108000 - 0x3085bfff  WebCore armv6  <65181be01889192c1252e2535531c99c> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x3087d000 - 0x30881fff  IOSurface armv6  <f19a15d8311b851caeba68c1fef33e11> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x30882000 - 0x308effff  CFNetwork armv6  <58e56341b7a2a491c727a385b871f7b8> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x308f0000 - 0x3092efff  CoreText armv6  <fe5639949094efc4d973a1f6457a4e5c> /System/Library/PrivateFrameworks/CoreText.framework/CoreText
0x3092f000 - 0x309dcfff  ImageIO armv6  <572f72dbfb19a2fd37666bb1d58b13cb> /System/Library/PrivateFrameworks/ImageIO.framework/ImageIO
0x309f9000 - 0x30a03fff  libkxld.dylib armv6  <33215da7e582cbc93ad25bf1cdb8ea62> /usr/lib/system/libkxld.dylib
0x30a05000 - 0x30a40fff  CoreTelephony armv6  <98b8ac66b4615a56958655929505c985> /System/Library/PrivateFrameworks/CoreTelephony.framework/CoreTelephony
0x30a66000 - 0x30a76fff  libbsm.0.dylib armv6  <722065615a92c5d0c57395f0aa624b8d> /usr/lib/libbsm.0.dylib
0x30e1a000 - 0x30e20fff  MBX2D armv6  <5246c74334f4daf6c0b876605134baa1> /System/Library/PrivateFrameworks/MBX2D.framework/MBX2D
0x30f72000 - 0x31073fff  libicucore.A.dylib armv6  <a99c2e5d034344c7447a7420db2b36b1> /usr/lib/libicucore.A.dylib
0x3107e000 - 0x3109cfff  libresolv.9.dylib armv6  <c25b840bd418c833ab6c31a29389445a> /usr/lib/libresolv.9.dylib
0x3110c000 - 0x3110dfff  IOMobileFramebuffer armv6  <89abbd5846018f4b74250e8cb09eaf4c> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x3110e000 - 0x311bbfff  WebKit armv6  <2bf8152a62e6cbc8a219d80489acb0e7> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x311bd000 - 0x31267fff  QuartzCore armv6  <5cab4e700e90abef71c1b2b695bd897a> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x31389000 - 0x3142cfff  libobjc.A.dylib armv6  <54f0ebeeb9747bf5075f93e2a5043b5e> /usr/lib/libobjc.A.dylib
0x3142f000 - 0x31463fff  Security armv6  <fb2124d1711c8931a7df711d126193d0> /System/Library/Frameworks/Security.framework/Security
0x31464000 - 0x314b1fff  IOKit armv6  <521cb10d7c6fb9ce21936db07a2587bb> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x314b8000 - 0x314f5fff  libCGFreetype.A.dylib armv6  <b299c486f638e82d10939b7c496b7d78> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x316c0000 - 0x316c8fff  AVFoundation armv6  <9626256280a896e5a1101dc0b8cb21ac> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x318d5000 - 0x318f3fff  AddressBook armv6  <80bdcada8d61624b2bb0796b7155f570> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x318f4000 - 0x3192efff  libvDSP.dylib armv6  <cf9cc6079374718dce29cba9de48b993> /System/Library/PrivateFrameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x31fb6000 - 0x31fddfff  AppSupport armv6  <db69446acd77981f1d9c968846e4c868> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x3209f000 - 0x320a5fff  liblockdown.dylib armv6  <f18aa1ca3cc98cda954fd821ff88a3ac> /usr/lib/liblockdown.dylib
0x320c7000 - 0x320eafff  libRIP.A.dylib armv6  <a53df8fe2c05c16f671e2502d0d21f60> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x320eb000 - 0x320ebfff  vecLib armv6  <c8a08b45effd5eb35a476a969628e52d> /System/Library/PrivateFrameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x322e7000 - 0x3231bfff  SystemConfiguration armv6  <4b1e9c323f8c973bac2737cdccec8de3> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x3234d000 - 0x32364fff  OpenGLES armv6  <8d075dd39e978efae59c70eeedfd858a> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x3239e000 - 0x3244afff  CoreFoundation armv6  <26d25c2c53c05db6e9adc24d5befaa2c> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x3244b000 - 0x3244bfff  Accelerate armv6  <21e1dc9fad96f0d51afbeb7f7e006aaf> /System/Library/PrivateFrameworks/Accelerate.framework/Accelerate
0x324a3000 - 0x33294fff  UIKit armv6  <4e881f8351712fd798c335af748b5b5f> /System/Library/Frameworks/UIKit.framework/UIKit
0x332bb000 - 0x333b8fff  JavaScriptCore armv6  <41bc769b8c046770bac84eed2b08ff42> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x333e6000 - 0x334dcfff  libxml2.2.dylib armv6  <a2f276df14b4ded9650dea857293b4e9> /usr/lib/libxml2.2.dylib
0x33501000 - 0x3350cfff  GraphicsServices armv6  <3a4ec1bf23242cddae5f606f0ed38930> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x3350d000 - 0x33661fff  AudioToolbox armv6  <31bb7db82eece25ac6742672e3afbe02> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x336a9000 - 0x336b5fff  CoreVideo armv6  <63d65206a8853262b597f97b3d949f31> /System/Library/PrivateFrameworks/CoreVideo.framework/CoreVideo
0x336de000 - 0x337d6fff  Foundation armv6  <a3612d56db60ccfc998caee19d9805d7> /System/Library/Frameworks/Foundation.framework/Foundation
0x338d0000 - 0x33a8afff  CoreGraphics armv6  <41796502b08a751095dcd2b105d1931c> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x33a92000 - 0x33a9afff  libgcc_s.1.dylib armv6  <6673f222acee5f3a208169712387862a> /usr/lib/libgcc_s.1.dylib
0x33aa2000 - 0x33aacfff  MobileCoreServices armv6  <805d82b950722ad728d87e0c24089c4b> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x33aad000 - 0x33bd3fff  libSystem.B.dylib armv6  <0373fd64e915a17160732b29d343f95f> /usr/lib/libSystem.B.dylib
0x33bf6000 - 0x33c60fff  libstdc++.6.dylib armv6  <a35cfd59eee09893fbab57794ad7cbaf> /usr/lib/libstdc++.6.dylib
0x33da7000 - 0x33e01fff  libsqlite3.dylib armv6  <61513660cb3e21b47ccbf5407e0efae5> /usr/lib/libsqlite3.dylib
0x340e2000 - 0x3413dfff  CoreAudio armv6  <71fb4de4976308c0a3f86d127e46472b> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x3430e000 - 0x3431cfff  libz.1.dylib armv6  <7a06dbf4af39c5b548306c7fb8ffcf0b> /usr/lib/libz.1.dylib
0x3439e000 - 0x343a7fff  SpringBoardServices armv6  <f13747f4598b0f4b1442877adc75de5a> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x343ab000 - 0x343acfff  CoreSurface armv6  <f27efe4047d6b4319bc01edb9007a789> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
Comment 11 Rolf Bjarne Kvinge [MSFT] 2012-03-27 19:00:53 UTC
[2] is because you're trying to call a method/property that doesn't exist on 3.1.3 - you can check this at runtime with UIDevice.CurrentDevice.CheckSystemVersion and do something else on older devices.

The "Bad CPU type in executable" error is strange though, because if that were true, you wouldn't be able to get [1] nor [2].

[1] doesn't give much information, but my guess would be that the debugger is trying to connect to MonoDevelop and it's taking a bit too long.

I would concentrate on fixing [2] first, the other issues *might* be related and go away if you fix [2].
Comment 12 Omri Gazitt 2012-03-27 19:06:22 UTC
OK, figured one thing out - apparently for the retail build I was using LLVM instructions for ARM7 only (duh).

I fixed that and got a bit further in the app.  Now the crash is even more mystifying... I bracketed the interesting stuff in '--------'

As I mentioned, the app works fine for two other ipads I tried... 

The FinishedLaunching code is simple (the various "Pages" are UINavigationControllers).

           // create pages
			var add = new AddPage();
			var calendar = new CalendarPage();
			var folders = new UINavigationController(new FoldersViewController (UITableViewStyle.Plain));
			var settings = new SettingsPage();
			var more = new UINavigationController(new MoreViewController());
			
			tabBarController = new UITabBarController ();
			tabBarController.ViewControllers = new UIViewController [] {
				add,
				calendar,
				folders,
				settings,
				more,
			};
			
			tabBarController.ViewControllerSelected += (sender, e) => 
			{
				UITabBarController v = (UITabBarController) sender;
				v.LoadView();
			};
			
            // if haven't synced with web service yet, try now
            if (initialSync == false)
            {
                App.ViewModel.SyncWithService();
                initialSync = true;
            }

            // create a new window instance based on the screen size
            window = new UIWindow (UIScreen.MainScreen.Bounds);
			window.RootViewController = tabBarController;
			window.MakeKeyAndVisible();


Tue Mar 27 15:55:06 unknown dataaccessd[22] <Warning>: EAS|ASGetOptionsTask failed: Error Domain=DAErrorDomain Code=63 "Operation could not be completed. (DAErrorDomain error 63.)"
Tue Mar 27 15:55:06 unknown dataaccessd[22] <Warning>: EAS|Failed to get version string
Tue Mar 27 15:55:21 unknown SpringBoard[25] <Warning>: iphone failed to launch in time 
elapsed total CPU time (seconds): 19.950 (user 10.030, system 9.920), 93% CPU 
elapsed application CPU time (seconds): 9.450, 44% CPU
Tue Mar 27 15:55:21 unknown SpringBoard[25] <Warning>: Forcing crash report of iphone...
Tue Mar 27 15:55:24 unknown SpringBoard[25] <Warning>: Finished crash reporting.
Tue Mar 27 15:55:24 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:iphone[0x98c7]) Exited: Killed
Tue Mar 27 15:55:24 unknown SpringBoard[25] <Warning>: Application 'Zaplify' exited abnormally with signal 9: Killed
Tue Mar 27 15:55:24 unknown ReportCrash[947] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/zaplifyiphone_2012-03-27-155521_Omris-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Tue Mar 27 15:55:36 unknown com.apple.mobile.lockdown[16] <Notice>: Could not receive size of message
Tue Mar 27 15:55:36 unknown lockdownd[16] <Error>: (0x81de00) handle_connection: Could not receive USB message #7 from MDCrashReportTool. Killing connection
Tue Mar 27 15:55:36 unknown com.apple.mobile.lockdown[16] <Notice>: Could not receive size of message
Tue Mar 27 15:55:36 unknown lockdownd[16] <Error>: (0x835600) handle_connection: Could not receive USB message #9 from MDCrashReportTool. Killing connection
Tue Mar 27 15:55:45 unknown com.apple.mobile.lockdown[16] <Notice>: Could not receive size of message
Tue Mar 27 15:55:45 unknown lockdownd[16] <Error>: (0x81de00) handle_connection: Could not receive USB message #7 from iTunes. Killing connection
Tue Mar 27 15:56:06 unknown UIKitApplication:iphone[0x548d][953] <Notice>: MonoTouch: Failed to open /private/var/mobile/Applications/9D74B97F-8CB7-4DA4-9FE9-708F7132A908/iphone.app/MonoTouchDebugConfiguration.txt
Tue Mar 27 15:56:06 unknown kernel[0] <Debug>: launchd[953] Builtin profile: container (seatbelt)
Tue Mar 27 15:56:06 unknown kernel[0] <Debug>: launchd[953] Container: /private/var/mobile/Applications/9D74B97F-8CB7-4DA4-9FE9-708F7132A908 (seatbelt)
--------
Tue Mar 27 15:56:14 unknown zaplifyiphone[953] <Error>: *** -[UIWindow setRootViewController:]: unrecognized selector sent to instance 0xad17b0
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: Unhandled Exception: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: *** -[UIWindow setRootViewController:]: unrecognized selector sent to instance 0xad17b0
--------
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>:   at MonoTouch.UIKit.UIWindow.set_RootViewController (MonoTouch.UIKit.UIViewController value) [0x00000] in <filename unknown>:0 
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>:   at BuiltSteady.Zaplify.Devices.IPhone.App.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00000] in <filename unknown>:0 
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>:   at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00000] in <filename unknown>:0 
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>:   at BuiltSteady.Zaplify.Devices.IPhone.Application.Main (System.String[] args) [0x00000] in <filename unknown>:0 
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: [ERROR] FATAL UNHANDLED EXCEPTION: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: *** -[UIWindow setRootViewController:]: unrecognized selector sent to instance 0xad17b0
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>:   at MonoTouch.UIKit.UIWindow.set_RootViewController (MonoTouch.UIKit.UIViewController value) [0x00000] in <filename unknown>:0 
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>:   at BuiltSteady.Zaplify.Devices.IPhone.App.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00000] in <filename unknown>:0 
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>:   at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00000] in <filename unknown>:0 
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>:   at BuiltSteady.Zaplify.Devices.IPhone.Application.Main (System.String[] args) [0x00000] in <filename unknown>:0 
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: Terminating runtime due to unhandled exception
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: Stacktrace:
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: Native stacktrace:
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	0   zaplifyiphone                       0x0062690c 0x0 + 6449420
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	1   zaplifyiphone                       0x0064bdfc 0x0 + 6602236
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	2   libSystem.B.dylib                   0x33b3b7f3 _sigtramp + 34
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	3   libSystem.B.dylib                   0x33b3db21 kill + 10
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	4   libSystem.B.dylib                   0x33b3db15 raise + 16
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	5   libSystem.B.dylib                   0x33b54e3b abort + 42
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	6   zaplifyiphone                       0x0071226c 0x0 + 7414380
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	7   zaplifyiphone                       0x007122b8 0x0 + 7414456
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	8   zaplifyiphone                       0x006085cc 0x0 + 6325708
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	9   zaplifyiphone                       0x006263e8 0x0 + 6448104
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	10  zaplifyiphone                       0x006265ec 0x0 + 6448620
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	11  zaplifyiphone                       0x0064aa10 0x0 + 6597136
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	12  zaplifyiphone                       0x0059c81c 0x0 + 5883932
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	13  zaplifyiphone                       0x0073c8e8 WriteZStream + 49536
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	14  CoreFoundation                      0x32432e23 __handleUncaughtException + 230
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	15  libobjc.A.dylib                     0x31391894 _objc_terminate + 156
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	16  libstdc++.6.dylib                   0x33c59a8c _ZN10__cxxabiv111__terminateEPFvvE + 84
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	17  libstdc++.6.dylib                   0x33c59b04 _ZSt9terminatev + 24
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	18  libstdc++.6.dylib                   0x33c59c2c __cxa_throw + 108
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	19  libobjc.A.dylib                     0x3138fe5c objc_exception_throw + 112
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	20  CoreFoundation                      0x32433bfd -[NSObject doesNotRecognizeSelector:] + 112
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	21  CoreFoundation                      0x323b8b19 ___forwarding___ + 480
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	22  CoreFoundation                      0x323af840 _CF_forwarding_prep_0 + 48
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	23  zaplifyiphone                       0x0033f678 0x0 + 3405432
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	24  zaplifyiphone                       0x0006313c 0x0 + 405820
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	25  zaplifyiphone                       0x00571474 0x0 + 5706868
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	26  zaplifyiphone                       0x0060bcf0 0x0 + 6339824
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	27  zaplifyiphone                       0x006c43d4 0x0 + 7095252
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	28  zaplifyiphone                       0x00735f04 WriteZStream + 22428
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	29  UIKit                               0x324a7e48 -[UIApplication _performInitializationWithURL:sourceBundleID:] + 476
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	30  UIKit                               0x324a7a68 -[UIApplication _runWithURL:sourceBundleID:] + 584
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	31  UIKit                               0x324f8e00 -[UIApplication handleEvent:withNewEvent:] + 1524
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	32  UIKit                               0x324f863c -[UIApplication sendEvent:] + 68
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	33  UIKit                               0x324f8094 _UIApplicationHandleEvent + 4536
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	34  GraphicsServices                    0x335067e4 PurpleEventCallback + 1052
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	35  CoreFoundation                      0x323f552b CFRunLoopRunSpecific + 2302
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	36  CoreFoundation                      0x323f4c1f CFRunLoopRunInMode + 50
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	37  UIKit                               0x324a6c08 -[UIApplication _run] + 520
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	38  UIKit                               0x324a5230 UIApplicationMain + 968
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	39  zaplifyiphone                       0x00344184 0x0 + 3424644
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	40  zaplifyiphone                       0x00047290 0x0 + 291472
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	41  zaplifyiphone                       0x00571474 0x0 + 5706868
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	42  zaplifyiphone                       0x0060bcf0 0x0 + 6339824
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	43  zaplifyiphone                       0x006c43d4 0x0 + 7095252
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	44  zaplifyiphone                       0x006c87bc 0x0 + 7112636
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	45  zaplifyiphone                       0x006cdd28 0x0 + 7134504
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	46  zaplifyiphone                       0x00612ae8 0x0 + 6367976
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	47  zaplifyiphone                       0x0072b0a4 0x0 + 7516324
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: 	48  zaplifyiphone                       0x0000303c 0x0 + 12348
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: =================================================================
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: Got a SIGABRT while executing native code. This usually indicates
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: a fatal error in the mono runtime or one of the native libraries 
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: used by your application.
Tue Mar 27 15:56:14 unknown UIKitApplication:iphone[0x548d][953] <Notice>: =================================================================
Tue Mar 27 15:56:15 unknown ReportCrash[954] <Notice>: Formulating crash report for process zaplifyiphone[953]
Tue Mar 27 15:56:16 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:iphone[0x548d]) Job appears to have crashed: Abort trap
Tue Mar 27 15:56:16 unknown SpringBoard[25] <Warning>: Application 'Zaplify' exited abnormally with signal 6: Abort trap
Tue Mar 27 15:56:16 unknown ReportCrash[954] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/zaplifyiphone_2012-03-27-155614_Omris-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Tue Mar 27 15:56:30 unknown com.apple.mobile.lockdown[16] <Notice>: Could not receive size of message
Tue Mar 27 15:56:31 unknown lockdownd[16] <Error>: (0x832e00) handle_connection: Could not receive USB message #7 from MDCrashReportTool. Killing connection
Comment 13 Omri Gazitt 2012-03-27 19:08:37 UTC
Ah, is the assignment of a RootViewController to a UIWindow something that's unsupported in iOS 3.x?

            // create a new window instance based on the screen size
            window = new UIWindow (UIScreen.MainScreen.Bounds);
            window.RootViewController = tabBarController;
            window.MakeKeyAndVisible();

Thanks,

Omri.
Comment 15 Omri Gazitt 2012-03-27 19:25:39 UTC
Oh my...

If that's not available I'm a bit worried about a whole lot of other assumptions I made when building my MT app...

Is there a simple end-to-end MT sample that targets 3.x?

Thanks Rolf!

Omri.
Comment 16 Rolf Bjarne Kvinge [MSFT] 2012-03-27 19:42:26 UTC
As far as I know there is no sample that targets 3.x (we tend to update samples as soon as new iOS versions come out). Unfortunately there is no easy way to figure out what will work and what won't expect trying it (but you should be able to install a 3.x simulator with Xcode and test in that instead of building/deploying to a device to test it).
Comment 17 Omri Gazitt 2012-03-27 19:49:04 UTC
Thanks again Rolf!

I fixed that once instance by wrapping the call with a system version check...

            if (UIDevice.CurrentDevice.CheckSystemVersion(4, 0)) 
                window.RootViewController = tabBarController;
            else
                window.AddSubview(tabBarController.View);

Remarkably, most of the rest of my app seems to work fine!  The only thing that seems broken is the Nuance speech library which doesn't seem to pick up anything from the microphone.  There's not much I can do about that.

Thanks again for your help - turns out that this was a simple issue after all.
Comment 18 Rolf Bjarne Kvinge [MSFT] 2012-03-27 20:01:58 UTC
I'm glad you were able to fix it :) I'll close this bug report then.