2013-03-22 86 views
3

这个崩溃报告对我来说真的很难处理。我偶尔会看到它,而且它不可能修复,因为它并不真正给我提供我的代码的任何参考。这是由我或UIKit本身引起的崩溃吗?

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

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 
+0

你是否设法修复它? – Devfly 2014-05-22 21:49:59

回答

-2

这不是由苹果引起的。下面是坠毁的入口点。确保一些相关的对象/视图不会被取消分配。

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

更新:

我收回我的对象​​释放语句。我怀疑这个崩溃可能发生,因为UI元素在后台线程中被创建\更新。我的意思是在网络回调方法中创建/更新的UI元素。

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

+5

崩溃报告指出问题出在线程0上。你指出的是线程3.这怎么可能成为崩溃的入口? – rmaddy 2013-03-22 15:42:41

+0

@rmaddy我说过它的出发点。我没有说它在线程3处崩溃。在不同线程上进行的调用在到达主线程时导致崩溃。我认为,thread3的autorelease池已经耗尽。 – Vignesh 2013-03-22 15:51:26

+1

不同线程上的调用如何到达主线程?你是什​​么意思? – rmaddy 2013-03-22 15:53:31

相关问题