timefrancesco / hockeyapp-sample-xamarin

A sample on how to implement hockeyapp in xamarin with custom log reports
3 stars 3 forks source link

App crash - EXC_BAD_ACCESS+KERN_PROTECTION_FAILURE #1

Open lin-art opened 9 years ago

lin-art commented 9 years ago

Hi there

I've some problems getting the latest HockeyApp component + Xamarin.iOS to work together and was hoping your code could lead to a result, but after adding the HockeyApp for iOS 3.5.5.1 components to your iOS demo the app start results in a EXC_BAD_ACCESS (SIGBUS) on com.apple.main-thread..

Have you seen such a behaviour too?

Best regards, Linard Moll

Process:               HockeyAppSampleiOS [6258]
Path:                  /Users/USER/Library/Developer/CoreSimulator/Devices/708C6C2F-02B1-4F88-8D92-F5C7BEAC27A3/data/Containers/Bundle/Application/4E6E53AD-68B9-41F8-A413-16B16490F23E/HockeyAppSampleiOS.app/HockeyAppSampleiOS
Identifier:            HockeyAppSampleiOS
Version:               1.0 (1.0)
Code Type:             X86 (Native)
Parent Process:        launchd_sim [4489]
Responsible:           launchd_sim [4489]
User ID:               501

Date/Time:             2015-01-12 11:18:06.617 +0100
OS Version:            Mac OS X 10.10.1 (14B25)
Report Version:        11
Anonymous UUID:        8CF2CAE7-EEFC-53FC-792D-01CC424FB55D

Sleep/Wake UUID:       F2FDEF8E-236B-4B0D-ACBA-8830B3C67AF5

Time Awake Since Boot: 38000 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       KERN_PROTECTION_FAILURE at 0x00000000130ee000

VM Regions Near 0x130ee000:
    VM_ALLOCATE            00000000130ed000-00000000130ee000 [    4K] r--/rwx SM=PRV  
--> VM_ALLOCATE            00000000130ee000-00000000130ef000 [    4K] ---/rwx SM=NUL  
    VM_ALLOCATE            00000000130ef000-00000000130ff000 [   64K] rwx/rwx SM=PRV  

Application Specific Information:
CoreSimulator 110.4 - Device: iPhone 6 - Runtime: iOS 8.1 (12B411) - DeviceType: iPhone 6

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ???                             0x14f400f3 0 + 351535347
1   ???                             0x14f3fcc3 0 + 351534275
2   ???                             0x14f3fbe4 0 + 351534052
3   ???                             0x14f3f804 0 + 351533060
4   ???                             0x14f3fb14 0 + 351533844
5   com.hockeyapp.sample            0x001c99d5 mono_jit_runtime_invoke + 725
6   com.hockeyapp.sample            0x00267b3f mono_runtime_invoke + 127
7   com.hockeyapp.sample            0x00316f4f monotouch_trampoline + 5263
8   com.apple.UIKit                 0x01e2297c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 291
9   com.apple.UIKit                 0x01e23687 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2869
10  com.apple.UIKit                 0x01e26c0d -[UIApplication _runWithMainScene:transitionContext:completion:] + 1639
11  com.apple.UIKit                 0x01e3f7d0 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
12  com.apple.UIKit                 0x01e2581f -[UIApplication workspaceDidEndTransaction:] + 155
13  com.apple.FrontBoardServices    0x098639de __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
14  com.apple.FrontBoardServices    0x0986346f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
15  com.apple.FrontBoardServices    0x09875425 __31-[FBSSerialQueue performAsync:]_block_invoke + 26
16  com.apple.CoreFoundation        0x05d821c0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
17  com.apple.CoreFoundation        0x05d77ad3 __CFRunLoopDoBlocks + 195
18  com.apple.CoreFoundation        0x05d7792b __CFRunLoopRun + 2715
19  com.apple.CoreFoundation        0x05d76bcb CFRunLoopRunSpecific + 443
20  com.apple.CoreFoundation        0x05d769fb CFRunLoopRunInMode + 123
21  com.apple.UIKit                 0x01e251e4 -[UIApplication _run] + 571
22  com.apple.UIKit                 0x01e288b6 UIApplicationMain + 1526
23  ???                             0x14f380a0 0 + 351502496
24  ???                             0x14f37eb0 0 + 351502000
25  ???                             0x14f36248 0 + 351494728
26  ???                             0x14f35fe0 0 + 351494112
27  ???                             0x14f3611f 0 + 351494431
28  com.hockeyapp.sample            0x001c99d5 mono_jit_runtime_invoke + 725
29  com.hockeyapp.sample            0x00267b3f mono_runtime_invoke + 127
30  com.hockeyapp.sample            0x0026c841 mono_runtime_exec_main + 401
31  com.hockeyapp.sample            0x0026c604 mono_runtime_run_main + 628
32  com.hockeyapp.sample            0x001257cd mono_jit_exec + 93
33  com.hockeyapp.sample            0x00307a99 monotouch_main + 2681
34  com.hockeyapp.sample            0x000d1245 main + 117
35  libdyld.dylib                   0x0749aac9 start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x0779e8d2 kevent64 + 10
1   libdispatch.dylib               0x074633be _dispatch_mgr_invoke + 245
2   libdispatch.dylib               0x07463116 _dispatch_mgr_thread + 60

Thread 2:
0   libsystem_kernel.dylib          0x0779d772 __recvfrom + 10
1   libsystem_sim_c.dylib           0x0756496e recv + 55
2   com.hockeyapp.sample            0x00309a8d recv_uninterrupted + 77
3   com.hockeyapp.sample            0x00309cc7 monotouch_process_connection + 199
4   com.hockeyapp.sample            0x00309893 monotouch_connect_wifi + 2963
5   com.hockeyapp.sample            0x00308958 monotouch_configure_debugging + 2200
6   com.hockeyapp.sample            0x0030504a -[CocoaThreadInitializer entryPoint:] + 122
7   com.apple.Foundation            0x01a19f07 -[NSThread main] + 76
8   com.apple.Foundation            0x01a19e60 __NSThread__main__ + 1326
9   libsystem_pthread.dylib         0x077c9ecf _pthread_body + 138
10  libsystem_pthread.dylib         0x077c9e45 _pthread_start + 162
11  libsystem_pthread.dylib         0x077c7f0e thread_start + 34

Thread 3:
0   libsystem_kernel.dylib          0x07797a6a semaphore_wait_trap + 10
1   com.hockeyapp.sample            0x002dd6ca mono_sem_wait + 26
2   com.hockeyapp.sample            0x0020da5b finalizer_thread + 123
3   com.hockeyapp.sample            0x002a5862 start_wrapper + 514
4   com.hockeyapp.sample            0x002de250 inner_start_thread + 240
5   com.hockeyapp.sample            0x003020ad GC_start_routine + 93
6   libsystem_pthread.dylib         0x077c9ecf _pthread_body + 138
7   libsystem_pthread.dylib         0x077c9e45 _pthread_start + 162
8   libsystem_pthread.dylib         0x077c7f0e thread_start + 34

Thread 4:
0   libsystem_kernel.dylib          0x0779d772 __recvfrom + 10
1   libsystem_sim_c.dylib           0x0756496e recv + 55
2   com.hockeyapp.sample            0x00309a8d recv_uninterrupted + 77
3   com.hockeyapp.sample            0x00309b84 sdb_recv + 52
4   com.hockeyapp.sample            0x00106a48 debugger_thread + 1560
5   com.hockeyapp.sample            0x002de250 inner_start_thread + 240
6   com.hockeyapp.sample            0x003020ad GC_start_routine + 93
7   libsystem_pthread.dylib         0x077c9ecf _pthread_body + 138
8   libsystem_pthread.dylib         0x077c9e45 _pthread_start + 162
9   libsystem_pthread.dylib         0x077c7f0e thread_start + 34

Thread 5:
0   com.hockeyapp.sample            0x002fb6b1 GC_initiate_gc + 17
1   com.hockeyapp.sample            0x002f3697 GC_stopped_mark + 279
2   com.hockeyapp.sample            0x002f34b8 GC_try_to_collect_inner + 392
3   com.hockeyapp.sample            0x002f3eef GC_try_to_collect + 159
4   com.hockeyapp.sample            0x002f3f49 GC_gcollect + 25
5   com.hockeyapp.sample            0x0030e459 monotouch_pump_gc + 41
6   libsystem_pthread.dylib         0x077c9ecf _pthread_body + 138
7   libsystem_pthread.dylib         0x077c9e45 _pthread_start + 162
8   libsystem_pthread.dylib         0x077c7f0e thread_start + 34

Thread 6:
0   libsystem_kernel.dylib          0x0779de6e __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x077ca36d _pthread_wqthread + 939
2   libsystem_pthread.dylib         0x077c7eea start_wqthread + 30

Thread 7:
0   libsystem_kernel.dylib          0x0779de6e __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x077ca36d _pthread_wqthread + 939
2   libsystem_pthread.dylib         0x077c7eea start_wqthread + 30

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0xbff98564  ebx: 0x78d3cc00  ecx: 0x00000000  edx: 0x00392f01
  edi: 0x14a4c270  esi: 0x14801e40  ebp: 0xbff96e68  esp: 0xbff96e50
   ss: 0x00000023  efl: 0x00010286  eip: 0x14f400f3   cs: 0x0000001b
   ds: 0x00000023   es: 0x00000023   fs: 0x00000000   gs: 0x0000000f
  cr2: 0x130ee000

Logical CPU:     0
Error Code:      0x00000004
Trap Number:     14

Binary Images:
   0x67000 -   0x416ff7 +com.hockeyapp.sample (1.0 - 1.0) <BF4D4B89-6CFF-3541-88A7-81B1D6106A8A> /Users/USER/Library/Developer/CoreSimulator/Devices/708C6C2F-02B1-4F88-8D92-F5C7BEAC27A3/data/Containers/Bundle/Application/4E6E53AD-68B9-41F8-A413-16B16490F23E/HockeyAppSampleiOS.app/HockeyAppSampleiOS
  0x569000 -   0x58d23b +dyld_sim (353.2.1) <1DD50FCA-ADA6-37E4-8BCD-39F9E2BE13F3> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim
  0x5c5000 -   0x5c5ffb +monotouch-fixes.dylib (0) <D38FC9DA-1B54-3F0B-870D-2EDD9E22D7AC> /Library/Frameworks/Xamarin.iOS.framework/Versions/8.4.0.43/lib/monotouch-fixes.dylib
(....)
timefrancesco commented 9 years ago

Xamarin updated the component today, version 3.5.5.2 should fix that problem.