[MonoTouch] App crash on release to device but is Ok on debug and simulator

Sebastien Pouliot sebastien at xamarin.com
Wed Oct 19 08:35:59 EDT 2011


Hello Karl,

You should first compare the project options (e.g. defines) between
your Debug and Release configurations. One might have received updates
(e.g. Debug) when developing while the other (e.g. Release) could have
bitrotten a bit.

Next the crash includes everything about the crash but sometimes lacks
the pre-condition(s) that triggered it.

a) start a terminal window
b) execute the following command: "/Developer/MonoTouch/usr/bin/mtouch
--logdev" (without the quotes)
c) start your application of the device and make it crash
d) copy/paste the console log into your reply email (or better a bug report).


Regards,
Sebastien



On Wed, Oct 19, 2011 at 8:22 AM, Karl Heinz Brehme Arredondo
<karl at e-magesolutions.com> wrote:
> Hi,
> I have an application running OK on iPad iOS 4 and 5. But yesterday I made
> the first compilation to device after upgrade to iOS 5, MonoDevelopr 2.8 and
> MonoTouch 4, still on Xcode 3, and deploy it for client presentation and
> scheduled publish of new version, and the application is not running anymore
> when in release mode on device. If it runs on simulator or in debug mode on
> device, it runs OK. So all my tests was ok because simulator and device
> debugging was OK… I don't know what to say in the client meeting in the next
> hours…
> I do not change anything on the beginning of application run (Main or
> MainController), just inside 1 viewcontroller that is opened after 3 views
> opened since Main and Login.
> I put some Console.WriteLine on Main.cs and Login.cs (that is the first view
> controller that is open by Main.cs) and nothing is being shown on device
> logs from Xcode.
> The logs:
>
> Incident Identifier: 57E19413-A199-4A06-A0EF-59D4581B3691
>
> CrashReporter Key:   ae1c659a6186d52650176c838adb2bbf38ddfd31
>
> Hardware Model:      iPad1,1
>
> Process:         MyApp [123]
>
> Path:
> /var/mobile/Applications/19FAD4E4-6F2B-458F-9EDE-FF7D30339082/MyApp.app/MyApp
>
> Identifier:      MyApp
>
> Version:         ??? (???)
>
> Code Type:       ARM (Native)
>
> Parent Process:  launchd [1]
>
> Date/Time:       2011-10-19 09:59:55.970 -0200
>
> OS Version:      iPhone OS 5.0 (9A334)
>
> Report Version:  104
>
> Exception Type:  EXC_BAD_ACCESS (SIGBUS)
>
> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000c7c0
>
> Crashed Thread:  0
>
> Thread 0 name:  Dispatch queue: com.apple.main-thread
>
> Thread 0 Crashed:
>
> 0   MyApp                       0x000027a8 monotouch_setup_classmap
> (monotouch-glue.m:856)
>
> 1   dyld                          0x2fe12ecc 0x2fe06000 + 52940
>
> 2   dyld                          0x2fe12bd2 0x2fe06000 + 52178
>
> 3   dyld                          0x2fe107ce 0x2fe06000 + 42958
>
> 4   dyld                          0x2fe1178e 0x2fe06000 + 46990
>
> 5   dyld                          0x2fe08a1a 0x2fe06000 + 10778
>
> 6   dyld                          0x2fe0cb7e 0x2fe06000 + 27518
>
> 7   dyld                          0x2fe072c8 0x2fe06000 + 4808
>
> 8   dyld                          0x2fe07058 0x2fe06000 + 4184
>
> Thread 0 crashed with ARM Thread State:
>
>     r0: 0x0000c7c0    r1: 0x00000001      r2: 0x0000005d      r3: 0x007727bc
>
>     r4: 0x0000005c    r5: 0x2fe2ab00      r6: 0x0076d01c      r7: 0x2fdfef00
>
>     r8: 0x00000001    r9: 0x0087184c     r10: 0x00000001     r11: 0x000024e1
>
>     ip: 0x3e3118d0    sp: 0x2fdfeed4      lr: 0x00002737      pc: 0x000027a8
>
>   cpsr: 0x60000010
>
> Binary Images:
>
>     0x1000 -   0x76cfff +MyApp armv7  <a9b68eb7158ff721aedcf592703a3e41>
> /var/mobile/Applications/19FAD4E4-6F2B-458F-9EDE-FF7D30339082/MyApp.app/MyApp
>
> 0x2fe06000 - 0x2fe27fff  dyld armv7  <be7c0b491a943054ad12eb5060f1da06>
> /usr/lib/dyld
>
> 0x302da000 - 0x3032bfff  libstdc++.6.dylib armv7
> <dc2061145c1a3307829d4f3bfc547c1a> /usr/lib/libstdc++.6.dylib
>
> 0x303be000 - 0x30484fff  libobjc.A.dylib armv7
> <d503b4ad04313023bbe76ededd30ed70> /usr/lib/libobjc.A.dylib
>
> 0x30496000 - 0x304d9fff  libcommonCrypto.dylib armv7
> <be9a231cfe6e3ae387abb444a098bce9> /usr/lib/system/libcommonCrypto.dylib
>
> 0x305e7000 - 0x305eefff  AssetsLibraryServices armv7
> <f6d1bb9e4b60392f834d4e0ee35105cc>
> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
>
> 0x305fc000 - 0x3060bfff  OpenGLES armv7  <6d1afb451f50310895ec59864739e781>
> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
>
> 0x3074f000 - 0x30829fff  vImage armv7  <42a5e58ff1b9350cad90de36bd3ceb09>
> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage
>
> 0x30931000 - 0x30971fff  libGLImage.dylib armv7
> <9440420d838a382caa175399d74a5044>
> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
>
> 0x30980000 - 0x309c9fff  AddressBook armv7
> <9ac3368232663b5786382e33c3773678>
> /System/Library/Frameworks/AddressBook.framework/AddressBook
>
> 0x309e9000 - 0x30a1efff  SystemConfiguration armv7
> <68dbad71a3cc32e5941ad70820f88caa>
> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
>
> 0x30a25000 - 0x30a25fff  libunwind.dylib armv7
> <d21222aad8c93d6c9580f9bf47071946> /usr/lib/system/libunwind.dylib
>
> 0x30b71000 - 0x30b77fff  liblockdown.dylib armv7
> <4e3671438f71326bbc507cb197a31322> /usr/lib/liblockdown.dylib
>
> 0x30b7a000 - 0x30b7dfff  CaptiveNetwork armv7
> <c3a5b1659eb0302eb205498ffacb09f1>
>
> [truncated due to size]
> Any tips?
> Thanks,
> Karl
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>


More information about the MonoTouch mailing list