gpt4 book ai didi

ios - 这个崩溃是我造成的还是UIKit本身造成的?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:48:33 25 4
gpt4 key购买 nike

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

这是 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

最佳答案

这不是苹果造成的。下面一行是崩溃的入口点。确保一些相关的对象/ View 没有被释放。

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

更新:

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

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

关于ios - 这个崩溃是我造成的还是UIKit本身造成的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15574088/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com