iOS中崩溃的原因

时间:2015-03-24 08:53:48

标签: ios

我从hockeyapp那里得到了这个崩溃。我不知道这次事故的原因是什么。

请查看崩溃情况,如果您能找到背后的原因,请提供帮助。

请查看主题8和主题12 ..看起来像竞争条件

Thread 8:
0   libsystem_kernel.dylib               0x3b1a5aa8 semaphore_wait_trap + 8
1   CFNetwork                            0x2ff2186d CFURLConnectionSendSynchronousRequest + 266
2   Foundation                           0x30d0d523 +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 112
3   SecureTextMessaging                  0x0040b30b -[EPOCWebServiceInvocation makeSynchronousRequestWithError:] + 148
4   SecureTextMessaging                  0x00346a0d -[CDSModule responseFromURL:] + 58
5   SecureTextMessaging                  0x000a5b65 -[STGetGroupsOperation responseForAction] (STGetGroupsOperation.m:37)
6   SecureTextMessaging                  0x0015ab0f -[STSyncOperation runOperation] (STSyncOperation.m:44)
7   SecureTextMessaging                  0x0015a7df -[STSyncOperation main] (STSyncOperation.m:24)
8   Foundation                           0x30caf5ab -[__NSOperationInternal _start:] + 768
9   Foundation                           0x30d5376d __NSOQSchedule_f + 58
10  libdispatch.dylib                    0x3b0e3f11 _dispatch_queue_drain$VARIANT$mp + 486
11  libdispatch.dylib                    0x3b0e3c97 _dispatch_queue_invoke$VARIANT$mp + 40
12  libdispatch.dylib                    0x3b0e4a45 _dispatch_root_queue_drain + 74
13  libdispatch.dylib                    0x3b0e4d29 _dispatch_worker_thread2 + 54
14  libsystem_pthread.dylib              0x3b21fbd3 _pthread_wqthread + 296
15  libsystem_pthread.dylib              0x3b21fa98 start_wqthread + 6

Thread 9:
0   libsystem_kernel.dylib               0x3b1b8c70 __workq_kernreturn + 8
1   libsystem_pthread.dylib              0x3b21fa98 start_wqthread + 6

Thread 10:
0   libsystem_kernel.dylib               0x3b1b8c70 __workq_kernreturn + 8
1   libsystem_pthread.dylib              0x3b21fa98 start_wqthread + 6

Thread 11:
0   libsystem_kernel.dylib               0x3b1b8c70 __workq_kernreturn + 8
1   libsystem_pthread.dylib              0x3b21fa98 start_wqthread + 6

Thread 12:
0   libsystem_kernel.dylib               0x3b1a5aa8 semaphore_wait_trap + 8
1   CFNetwork                            0x2ff2186d CFURLConnectionSendSynchronousRequest + 266
2   Foundation                           0x30d0d523 +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 112
3   SecureTextMessaging                  0x0040b30b -[EPOCWebServiceInvocation makeSynchronousRequestWithError:] + 148
4   SecureTextMessaging                  0x00102c75 -[STLongPollingManager doClientPollwithMessageDate:andColleagueDate:error:] (STLongPollingManager.m:74)
5   SecureTextMessaging                  0x0001f691 -[STDataManager doClientPoll] (STDataManager.m:371)
6   SecureTextMessaging                  0x0001fde7 __29-[STDataManager doClientPoll]_block_invoke_2 (STDataManager.m:419)
7   Foundation                           0x30cbf3c7 -[NSBlockOperation main] + 128
8   Foundation                           0x30caf5ab -[__NSOperationInternal _start:] + 768
9   Foundation                           0x30d5376d __NSOQSchedule_f + 58
10  libdispatch.dylib                    0x3b0e3f11 _dispatch_queue_drain$VARIANT$mp + 486
11  libdispatch.dylib                    0x3b0e3c97 _dispatch_queue_invoke$VARIANT$mp + 40
12  libdispatch.dylib                    0x3b0e4a45 _dispatch_root_queue_drain + 74
13  libdispatch.dylib                    0x3b0e4d29 _dispatch_worker_thread2 + 54
14  libsystem_pthread.dylib              0x3b21fbd3 _pthread_wqthread + 296
15  libsystem_pthread.dylib              0x3b21fa98 start_wqthread + 6

1 个答案:

答案 0 :(得分:0)

乍一看我会说你内心有问题

SecureTextMessaging

但我们可以做些什么来帮助你。我有几个建议。

尝试dwarfdumpatos命令。要使用这些,您需要发布.ipa文件。从那里你必须提取/找到.dSYM文件。 因此,在找到该文件后,您可以尝试查找特定地址,例如:

SecureTextMessaging                  0x0040b30b -[EPOCWebServiceInvocation makeSynchronousRequestWithError:] + 148

在此示例中,您可以使用0x0040b30b。您还需要了解您的架构,之后您可以尝试:

atos -arch armv7 -o STM.app/STM 0x0040b30b

为了帮助您处理地址和其他所有内容,这是一个非常有用的问题:

iOS crash reports: atos not working as expected

atos and dwarfdump won't symbolicate my address

在这些链接上,您将找到需要了解的所有信息以及如何解决问题。