这个崩溃是由我还是UIKit本身引起的?

时间:2013-03-22 15:28:14

标签: ios crash uikit crash-reports

这个崩溃报告对我来说真的很难处理。我不时地看到它,并且它几乎不可能修复,因为它并没有真正给我任何引用我的代码的工作。

这是由Apple引起的崩溃,我不必担心吗?

Date/Time:       2013-02-26 03:49:36 +0000
OS Version:      iPhone OS 6.1.2 (10B146)
Report Version:  104

Exception Type:  SIGTRAP
Exception Codes: #0 at 0x33973d24
Crashed Thread:  0

Thread 0 Crashed:
0   CoreFoundation                      0x33973d24 CFRetain + 8
1   UIKit                               0x359484f9 -[UIKeyboardCache displayView:imageWidth:withKey:fromLayout:] + 297
2   UIKit                               0x359483c7 -[UIKeyboardCache displayView:withKey:fromLayout:] + 91
3   UIKit                               0x35947b5b -[UIKBKeyplaneView displayLayer:] + 191
4   QuartzCore                          0x355f34f7 CA::Layer::display() + 95
5   QuartzCore                          0x355ea93b CA::Layer::display_if_needed(CA::Transaction*) + 203
6   QuartzCore                          0x355ea865 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 25
7   QuartzCore                          0x355ea243 CA::Context::commit_transaction(CA::Transaction*) + 239
8   QuartzCore                          0x355ea051 CA::Transaction::commit() + 317
9   QuartzCore                          0x355e9eb1 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 61
10  CoreFoundation                      0x33a096cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 21
11  CoreFoundation                      0x33a079c1 __CFRunLoopDoObservers + 277
12  CoreFoundation                      0x33a07d17 __CFRunLoopRun + 743
13  CoreFoundation                      0x3397aebd CFRunLoopRunSpecific + 357
14  CoreFoundation                      0x3397ad49 CFRunLoopRunInMode + 105
15  GraphicsServices                    0x3753c2eb GSEventRunModal + 75
16  UIKit                               0x35890301 UIApplicationMain + 1121
17  MyApp                               0x0004e60f main (main.m:16)

Thread 1:
0   libsystem_kernel.dylib              0x3bbbc648 kevent64 + 24
1   libdispatch.dylib                   0x3bae7df8 _dispatch_mgr_thread$VARIANT$up + 36

Thread 2:
0   libsystem_kernel.dylib              0x3bbbbeb4 mach_msg_trap + 20
1   CoreFoundation                      0x33a09045 __CFRunLoopServiceMachPort + 129
2   CoreFoundation                      0x33a07da3 __CFRunLoopRun + 883
3   CoreFoundation                      0x3397aebd CFRunLoopRunSpecific + 357
4   CoreFoundation                      0x3397ad49 CFRunLoopRunInMode + 105
5   WebCore                             0x3996f505 RunWebThread(void*) + 445
6   libsystem_c.dylib                   0x3bb25311 _pthread_start + 309

Thread 3:
0   libsystem_kernel.dylib              0x3bbbbeb4 mach_msg_trap + 20
1   CoreFoundation                      0x33a09045 __CFRunLoopServiceMachPort + 129
2   CoreFoundation                      0x33a07da3 __CFRunLoopRun + 883
3   CoreFoundation                      0x3397aebd CFRunLoopRunSpecific + 357
4   CoreFoundation                      0x3397ad49 CFRunLoopRunInMode + 105
5   Foundation                          0x3429df97 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 255
6   Foundation                          0x34341865 -[NSRunLoop(NSRunLoop) run] + 81
7   MyApp                               0x0003f7b5 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:161)
8   Foundation                          0x3434ae85 __NSThread__main__ + 973
9   libsystem_c.dylib                   0x3bb25311 _pthread_start + 309

Thread 4:
0   libsystem_kernel.dylib              0x3bbbbeb4 mach_msg_trap + 20
1   CoreFoundation                      0x33a09045 __CFRunLoopServiceMachPort + 129
2   CoreFoundation                      0x33a07da3 __CFRunLoopRun + 883
3   CoreFoundation                      0x3397aebd CFRunLoopRunSpecific + 357
4   CoreFoundation                      0x3397ad49 CFRunLoopRunInMode + 105
5   Foundation                          0x342c73d5 +[NSURLConnection(Loader) _resourceLoadLoop:] + 309
6   Foundation                          0x3434ae85 __NSThread__main__ + 973
7   libsystem_c.dylib                   0x3bb25311 _pthread_start + 309

Thread 5:
0   libsystem_kernel.dylib              0x3bbcc594 __select + 20
1   libsystem_c.dylib                   0x3bb25311 _pthread_start + 309

Thread 6:
0   libsystem_kernel.dylib              0x3bbcc08c __psynch_cvwait + 24
1   libsystem_c.dylib                   0x3bb1daa5 pthread_cond_timedwait + 45
2   JavaScriptCore                      0x37932c75 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 109
3   JavaScriptCore                      0x37a44557 JSC::BlockAllocator::blockFreeingThreadMain() + 83
4   JavaScriptCore                      0x37a56fab WTF::wtfThreadEntryPoint(void*) + 15
5   libsystem_c.dylib                   0x3bb25311 _pthread_start + 309

Thread 7:
0   libsystem_kernel.dylib              0x3bbbbeb4 mach_msg_trap + 20
1   CoreFoundation                      0x33a09045 __CFRunLoopServiceMachPort + 129
2   CoreFoundation                      0x33a07da3 __CFRunLoopRun + 883
3   CoreFoundation                      0x3397aebd CFRunLoopRunSpecific + 357
4   CoreFoundation                      0x3397ad49 CFRunLoopRunInMode + 105
5   AudioToolbox                        0x3345c703 GenericRunLoopThread::Entry(void*) + 139
6   AudioToolbox                        0x3343d885 CAPThread::Entry(CAPThread*) + 297
7   libsystem_c.dylib                   0x3bb25311 _pthread_start + 309

Thread 8:
0   libsystem_kernel.dylib              0x3bbccd98 __workq_kernreturn + 8
1   libsystem_c.dylib                   0x3bb1aa16 _pthread_wqthread + 366

Thread 9:
0   libsystem_kernel.dylib              0x3bbccd98 __workq_kernreturn + 8
1   libsystem_c.dylib                   0x3bb1aa16 _pthread_wqthread + 366

1 个答案:

答案 0 :(得分:-2)

这不是苹果引起的。下面的行是崩溃的切入点。确保一些相关的对象/视图没有被释放。

 MyApp    0x0003f7b5 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:161

更新:

我收回了我的对象释放声明。我怀疑由于在后台线程中创建或更新了UI元素,可能会发生此崩溃。我的意思是在网络回调方法中创建/更新的UI元素。

问题的解决方案是在dispatch_async中添加main_queue来执行UI更新。

相关问题