【发布时间】:2016-04-13 18:13:44
【问题描述】:
我有一个不断崩溃的 Xamarin iOS 应用程序,崩溃报告如下。
我无法确定问题是什么或发生在哪里。似乎它可能是一个json问题?任何帮助都会很棒。
Exception Type: SIGABRT
Exception Codes: #0 at 0x23464c84
Crashed Thread: 7
Thread 0:
0 libsystem_kernel.dylib 0x23450c24 mach_msg_trap + 20
1 CoreFoundation 0x23793355 __CFRunLoopServiceMachPort + 134
2 CoreFoundation 0x237916dd __CFRunLoopRun + 1034
3 CoreFoundation 0x236e4bf9 CFRunLoopRunSpecific + 518
4 CoreFoundation 0x236e49e5 CFRunLoopRunInMode + 106
5 GraphicsServices 0x24930ac9 GSEventRunModal + 158
6 UIKit 0x27974ba1 UIApplicationMain + 142
7 IntooligenceMobileiOS 0x0020630c wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 270
8 IntooligenceMobileiOS 0x0019c434 MonoTouch_UIKit_UIApplication_Main_string___intptr_intptr + 50
9 IntooligenceMobileiOS 0x0019c3f4 MonoTouch_UIKit_UIApplication_Main_string___string_string + 202
10 IntooligenceMobileiOS 0x000b7680 Intooligence_Mobile_iOS_Application_Main_string__ + 46
11 IntooligenceMobileiOS 0x0046ee54 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 254
12 IntooligenceMobileiOS 0x00ad3ff7 mono_jit_runtime_invoke (mini-runtime.c:2323)
13 IntooligenceMobileiOS 0x00b24855 mono_runtime_invoke (object.c:2783)
14 IntooligenceMobileiOS 0x00b27f17 mono_runtime_exec_main (object.c:4040)
15 IntooligenceMobileiOS 0x00b89528 xamarin_main (monotouch-main.m:404)
16 IntooligenceMobileiOS 0x00a4afd1 main (main.armv7.m:59)
17 ??? 0x23393873 0x0 + 0
Thread 1:
0 libsystem_kernel.dylib 0x23466320 kevent_qos + 24
1 libdispatch.dylib 0x2335ddf7 _dispatch_mgr_thread$VARIANT$mp + 36
Thread 2:
0 libsystem_kernel.dylib 0x23450c74 semaphore_wait_trap + 8
1 IntooligenceMobileiOS 0x00afc2ab finalizer_thread (gc.c:1096)
2 IntooligenceMobileiOS 0x00b3ff47 start_wrapper (threads.c:723)
3 IntooligenceMobileiOS 0x00b59889 inner_start_thread (mono-threads-posix.c:97)
4 IntooligenceMobileiOS 0x00b72cb7 GC_start_routine (pthread_support.c:1502)
5 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
6 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
7 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 3:
0 libsystem_kernel.dylib 0x234649c0 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x23509c99 pthread_cond_wait + 38
2 IntooligenceMobileiOS 0x00b3a9fb worker_thread (threadpool-ms.c:501)
3 IntooligenceMobileiOS 0x00b3ff47 start_wrapper (threads.c:723)
4 IntooligenceMobileiOS 0x00b59889 inner_start_thread (mono-threads-posix.c:97)
5 IntooligenceMobileiOS 0x00b72cb7 GC_start_routine (pthread_support.c:1502)
6 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
7 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
8 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 4:
0 libsystem_kernel.dylib 0x234649c0 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x23509c99 pthread_cond_wait + 38
2 IntooligenceMobileiOS 0x00b3a9fb worker_thread (threadpool-ms.c:501)
3 IntooligenceMobileiOS 0x00b3ff47 start_wrapper (threads.c:723)
4 IntooligenceMobileiOS 0x00b59889 inner_start_thread (mono-threads-posix.c:97)
5 IntooligenceMobileiOS 0x00b72cb7 GC_start_routine (pthread_support.c:1502)
6 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
7 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
8 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 5:
0 libsystem_kernel.dylib 0x23450c24 mach_msg_trap + 20
1 CoreFoundation 0x23793355 __CFRunLoopServiceMachPort + 134
2 CoreFoundation 0x237916dd __CFRunLoopRun + 1034
3 CoreFoundation 0x236e4bf9 CFRunLoopRunSpecific + 518
4 CoreFoundation 0x236e49e5 CFRunLoopRunInMode + 106
5 CFNetwork 0x23d2781f +[NSURLConnection(Loader) _resourceLoadLoop:] + 484
6 Foundation 0x23fe9165 __NSThread__start__ + 1146
7 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
8 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
9 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 6:
0 libsystem_kernel.dylib 0x23464f14 __select + 20
1 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
2 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
3 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 7 Crashed:
0 libsystem_kernel.dylib 0x23464c84 __pthread_kill + 8
1 libsystem_pthread.dylib 0x2350a733 pthread_kill + 60
2 libsystem_c.dylib 0x233fb0ad abort + 106
3 IntooligenceMobileiOS 0x00b68efd GC_add_to_heap (alloc.c:840)
4 IntooligenceMobileiOS 0x00b69119 GC_expand_hp_inner (alloc.c:994)
5 IntooligenceMobileiOS 0x00b6928d GC_collect_or_expand (alloc.c:1070)
6 IntooligenceMobileiOS 0x00b6943f GC_allocobj (alloc.c:1125)
7 IntooligenceMobileiOS 0x00b6dadb GC_generic_malloc_inner (malloc.c:136)
8 IntooligenceMobileiOS 0x00b6dc73 GC_generic_malloc (malloc.c:192)
9 IntooligenceMobileiOS 0x00b6dd7d GC_malloc_atomic (malloc.c:270)
10 IntooligenceMobileiOS 0x00ae2953 mono_gc_alloc_string (boehm-gc.c:680)
11 IntooligenceMobileiOS 0x00314700 wrapper_managed_to_native_string_FastAllocateString_int + 90
12 IntooligenceMobileiOS 0x00314960 string_CtorCharArrayStartLength_char___int_int + 86
13 IntooligenceMobileiOS 0x0031b060 string_CreateString_char___int_int + 50
14 IntooligenceMobileiOS 0x00312190 wrapper_managed_to_managed_string__ctor_char___int_int + 50
15 IntooligenceMobileiOS 0x003ea500 System_NumberFormatter_FormatDecimal_int_System_Globalization_NumberFormatInfo + 142
16 IntooligenceMobileiOS 0x003e9d64 System_NumberFormatter_IntegerToString_string_System_IFormatProvider + 222
17 IntooligenceMobileiOS 0x003e993c System_NumberFormatter_NumberToString_string_long_System_IFormatProvider + 94
18 IntooligenceMobileiOS 0x002bf160 System_Number_FormatInt64_long_string_System_Globalization_NumberFormatInfo + 50
19 IntooligenceMobileiOS 0x002adcb4 ut_2706 + 82
20 IntooligenceMobileiOS 0x008d11ec Newtonsoft_Json_JsonConvert_ToString_long + 90
21 IntooligenceMobileiOS 0x008dd3fc Newtonsoft_Json_JsonTextWriter_WriteValue_long + 50
22 IntooligenceMobileiOS 0x008f8ce8 Newtonsoft_Json_Linq_JValue_WriteTo_Newtonsoft_Json_JsonWriter_Newtonsoft_Json_JsonConverter__ + 522
23 IntooligenceMobileiOS 0x008f5a00 Newtonsoft_Json_Linq_JProperty_WriteTo_Newtonsoft_Json_JsonWriter_Newtonsoft_Json_JsonConverter__ + 90
24 IntooligenceMobileiOS 0x008f34cc Newtonsoft_Json_Linq_JObject_WriteTo_Newtonsoft_Json_JsonWriter_Newtonsoft_Json_JsonConverter__ + 94
25 IntooligenceMobileiOS 0x008e53f0 Newtonsoft_Json_Linq_JToken_ToString_Newtonsoft_Json_Formatting_Newtonsoft_Json_JsonConverter__ + 234
26 IntooligenceMobileiOS 0x008e52f8 Newtonsoft_Json_Linq_JToken_ToString + 58
27 IntooligenceMobileiOS 0x0081d098 Intooligence_Mobile_Core_Sync_SyncAdapter_ProcessSyncResponse_string + 2722
28 IntooligenceMobileiOS 0x0081b390 Intooligence_Mobile_Core_Sync_SyncAdapter_DoSync_int_bool + 638
29 IntooligenceMobileiOS 0x0081a938 Intooligence_Mobile_Core_Sync_SyncAdapter_SyncSynchronously_bool + 706
30 IntooligenceMobileiOS 0x0085b254 Intooligence_Mobile_Core_Sync_SyncAdapter__BeginSyncc__AnonStorey0__m__0 + 30
31 IntooligenceMobileiOS 0x00346620 System_Threading_Tasks_Task_InnerInvoke + 98
32 IntooligenceMobileiOS 0x00345e2c System_Threading_Tasks_Task_Execute + 90
33 IntooligenceMobileiOS 0x003465b0 System_Threading_Tasks_Task_ExecutionContextCallback_object + 98
34 IntooligenceMobileiOS 0x0034f930 System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 490
35 IntooligenceMobileiOS 0x0034f738 System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 50
36 IntooligenceMobileiOS 0x00346514 System_Threading_Tasks_Task_ExecuteWithThreadLocal_System_Threading_Tasks_Task_ + 354
37 IntooligenceMobileiOS 0x00346328 System_Threading_Tasks_Task_ExecuteEntry_bool + 230
38 IntooligenceMobileiOS 0x003461cc System_Threading_Tasks_Task_System_Threading_IThreadPoolWorkItem_ExecuteWorkItem + 30
39 IntooligenceMobileiOS 0x00353250 System_Threading_ThreadPoolWorkQueue_Dispatch + 554
40 IntooligenceMobileiOS 0x003549fc System_Threading__ThreadPoolWaitCallback_PerformWaitCallback + 18
41 IntooligenceMobileiOS 0x0046ee54 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 254
42 IntooligenceMobileiOS 0x00ad3ff7 mono_jit_runtime_invoke (mini-runtime.c:2323)
43 IntooligenceMobileiOS 0x00b24855 mono_runtime_invoke (object.c:2783)
44 IntooligenceMobileiOS 0x00b3a913 worker_thread (threadpool-ms.c:623)
45 IntooligenceMobileiOS 0x00b3ff47 start_wrapper (threads.c:723)
46 IntooligenceMobileiOS 0x00b59889 inner_start_thread (mono-threads-posix.c:97)
47 IntooligenceMobileiOS 0x00b72cb7 GC_start_routine (pthread_support.c:1502)
48 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
49 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
50 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 8:
0 libsystem_kernel.dylib 0x234649c0 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x23509cd9 pthread_cond_timedwait + 42
2 IntooligenceMobileiOS 0x00b43d83 _wapi_handle_timedwait_signal_handle (handles.c:1514)
3 IntooligenceMobileiOS 0x00b4e32d wapi_WaitForSingleObjectEx (wait.c:196)
4 IntooligenceMobileiOS 0x00b3cd0d ves_icall_System_Threading_WaitHandle_WaitOne_internal (threads.c:1447)
5 IntooligenceMobileiOS 0x003d1bf8 wrapper_managed_to_native_System_Threading_WaitHandle_WaitOne_internal_System_Threading_WaitHandle_intptr_int_bool + 126
6 IntooligenceMobileiOS 0x003d1f24 System_Threading_WaitHandle_WaitOne_int_bool + 142
7 IntooligenceMobileiOS 0x003d1fc0 System_Threading_WaitHandle_WaitOne_int + 50
8 IntooligenceMobileiOS 0x003d15a4 System_Threading_Timer_Scheduler_SchedulerThread + 2090
9 IntooligenceMobileiOS 0x00350b20 System_Threading_ThreadHelper_ThreadStart_Context_object + 206
10 IntooligenceMobileiOS 0x0034f930 System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 490
11 IntooligenceMobileiOS 0x0034f738 System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 50
12 IntooligenceMobileiOS 0x0034f6b8 System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 98
13 IntooligenceMobileiOS 0x00350c74 System_Threading_ThreadHelper_ThreadStart + 62
14 IntooligenceMobileiOS 0x0046ee54 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 254
15 IntooligenceMobileiOS 0x00ad3ff7 mono_jit_runtime_invoke (mini-runtime.c:2323)
16 IntooligenceMobileiOS 0x00b24855 mono_runtime_invoke (object.c:2783)
17 IntooligenceMobileiOS 0x00b3ffbb start_wrapper (threads.c:729)
18 IntooligenceMobileiOS 0x00b59889 inner_start_thread (mono-threads-posix.c:97)
19 IntooligenceMobileiOS 0x00b72cb7 GC_start_routine (pthread_support.c:1502)
20 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
21 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
22 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 9:
0 libsystem_kernel.dylib 0x23464f14 __select + 20
1 IntooligenceMobileiOS 0x00b37b85 poll_event_wait (threadpool-ms-io-poll.c:152)
2 IntooligenceMobileiOS 0x00b376cb selector_thread (threadpool-ms-io.c:447)
3 IntooligenceMobileiOS 0x00b3ff47 start_wrapper (threads.c:723)
4 IntooligenceMobileiOS 0x00b59889 inner_start_thread (mono-threads-posix.c:97)
5 IntooligenceMobileiOS 0x00b72cb7 GC_start_routine (pthread_support.c:1502)
6 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
7 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
8 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 10:
0 libsystem_kernel.dylib 0x234649c0 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x23509c99 pthread_cond_wait + 38
2 IntooligenceMobileiOS 0x00b3a9fb worker_thread (threadpool-ms.c:501)
3 IntooligenceMobileiOS 0x00b3ff47 start_wrapper (threads.c:723)
4 IntooligenceMobileiOS 0x00b59889 inner_start_thread (mono-threads-posix.c:97)
5 IntooligenceMobileiOS 0x00b72cb7 GC_start_routine (pthread_support.c:1502)
6 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
7 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
8 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 11:
0 libsystem_kernel.dylib 0x234649c0 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x23509c99 pthread_cond_wait + 38
2 IntooligenceMobileiOS 0x00b3a9fb worker_thread (threadpool-ms.c:501)
3 IntooligenceMobileiOS 0x00b3ff47 start_wrapper (threads.c:723)
4 IntooligenceMobileiOS 0x00b59889 inner_start_thread (mono-threads-posix.c:97)
5 IntooligenceMobileiOS 0x00b72cb7 GC_start_routine (pthread_support.c:1502)
6 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
7 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
8 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 12:
0 libsystem_kernel.dylib 0x2346588c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x23507718 start_wqthread + 6
Thread 13:
0 libsystem_kernel.dylib 0x23465024 __semwait_signal + 24
1 IntooligenceMobileiOS 0x00b4f6a5 wapi_SleepEx (wthreads.c:289)
2 IntooligenceMobileiOS 0x00b3a27d monitor_thread (threadpool-ms.c:833)
3 IntooligenceMobileiOS 0x00b3ff47 start_wrapper (threads.c:723)
4 IntooligenceMobileiOS 0x00b59889 inner_start_thread (mono-threads-posix.c:97)
5 IntooligenceMobileiOS 0x00b72cb7 GC_start_routine (pthread_support.c:1502)
6 libsystem_pthread.dylib 0x2350985b _pthread_body + 136
7 libsystem_pthread.dylib 0x235097cf _pthread_start + 108
8 libsystem_pthread.dylib 0x23507724 thread_start + 6
Thread 7 crashed with ARM Thread State:
pc: 0x23464c84 r7: 0x1f39a14c sp: 0x1f39a140 r0: 0x00000000
r1: 0x00000000 r2: 0x00000000 r3: 0x00000000 r4: 0x00000006
r5: 0x1f39b000 r6: 0x00f2cc6c r8: 0x00f2cb54 r9: 0x3a096908
r10: 0x00000001 r11: 0x15e7e000 ip: 0x00000148 lr: 0x2350a733
cpsr: 0x00000010
Link Register Analysis:
Symbol: pthread_kill + 60
Description: We have determined that the link register (lr) is very likely to contain the return address of frame #0's calling function, and have inserted it into the crashing thread's backtrace as frame #1 to aid in analysis. This determination was made by applying a heuristic to determine whether the crashing function was likely to have created a new stack frame at the time of the crash.
Type: 1
【问题讨论】:
-
是的,可能是 Json 问题。你有 json,他们尝试反序列化和函数
ProcessSyncResponse吗? -
我没有 json。我知道他们有时会遇到连接问题,也许他们只获得了 json 的一部分并且导致它爆炸?我们在函数中做的第一件事就是尝试反序列化 json 响应字符串。
-
嗯,它被包裹在 try/catch 中了吗?这个
SIGABRT通常在未捕获异常时发生。 -
我想我会尝试一下并将它提供给客户,并希望我最终得到一个更好/更容易理解的错误。也应该能够以这种方式获取 json。
-
除了@Sven-MichaelStübe 推荐之外,我还会记录 json。 Xamarin.Insights 是一个很好且易于集成的选项,用于记录此类异常。
标签: c# ios debugging xamarin crash