当应用程序恢复时,iPad Native会崩溃

时间:2015-06-01 12:11:28

标签: ios xcode ipad native-code

当我们暂停应用程序一段时间后iPad应用程序崩溃,然后从锁定状态恢复它,崩溃日志显示在应用程序冻结下方,并重新启动我们需要对应用程序进行软重置的应用程序

    Incident Identifier: EDF8518C-EFE6-4E99-B462-B5FD7BC4C68C
CrashReporter Key:   59b53e06d0757c3331182b9eed3d03b9bc5194d4
Hardware Model:      iPad2,1
Process:             ll [2353]
Path: /private/var/mobile/Containers/Bundle/Application/CCD700F0-DDC1-4E4A-AC23-B424866AD7DF/ll.app/ll
Identifier:          com.sw.ll
Version:             0.5.1 (0.5.1)
Code Type:           ARM (Native)
Parent Process:      launchd [1]

Date/Time:           2015-05-27 14:19:32.184 +0530
Launch Time:         2015-05-27 13:49:22.619 +0530
OS Version:          iOS 8.3 (12F69)
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xbbadbeef
Triggered by Thread:  4

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0:
0   libsystem_kernel.dylib          0x3a38849c mach_msg_trap + 20
1   libsystem_kernel.dylib          0x3a388290 mach_msg + 36
2   CoreFoundation                  0x2ba577ee __CFRunLoopServiceMachPort + 142
3   CoreFoundation                  0x2ba55db4 __CFRunLoopRun + 1012
4   CoreFoundation                  0x2b9a199c CFRunLoopRunSpecific + 472
5   CoreFoundation                  0x2b9a17ae CFRunLoopRunInMode + 102
6   GraphicsServices                0x331221a4 GSEventRunModal + 132
7   UIKit                           0x2f12c690 UIApplicationMain + 1436
8   ll                              0x000e6e3a 0xb3000 + 212538
9   libdyld.dylib                   0x3a2d5aac start + 0

Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0   libsystem_kernel.dylib          0x3a38824c kevent64 + 24
1   libdispatch.dylib               0x3a2a84ec _dispatch_mgr_invoke + 276
2   libdispatch.dylib               0x3a2a821e _dispatch_mgr_thread$VARIANT$mp + 34

Thread 2 name:  com.apple.NSURLConnectionLoader
Thread 2:
0   libsystem_kernel.dylib          0x3a38849c mach_msg_trap + 20
1   libsystem_kernel.dylib          0x3a388290 mach_msg + 36
2   CoreFoundation                  0x2ba577ee __CFRunLoopServiceMachPort + 142
3   CoreFoundation                  0x2ba55db4 __CFRunLoopRun + 1012
4   CoreFoundation                  0x2b9a199c CFRunLoopRunSpecific + 472
5   CoreFoundation                  0x2b9a17ae CFRunLoopRunInMode + 102
6   CFNetwork                       0x2b53f642 +[NSURLConnection(Loader) _resourceLoadLoop:] + 482
7   Foundation                      0x2c7d0186 __NSThread__main__ + 1114
8   libsystem_pthread.dylib         0x3a41bde8 _pthread_body + 136
9   libsystem_pthread.dylib         0x3a41bd5a _pthread_start + 114
10  libsystem_pthread.dylib         0x3a419b04 thread_start + 4

Thread 3:
0   libsystem_kernel.dylib          0x3a38849c mach_msg_trap + 20
1   libsystem_kernel.dylib          0x3a388290 mach_msg + 36
2   CoreFoundation                  0x2ba577ee __CFRunLoopServiceMachPort + 142
3   CoreFoundation                  0x2ba55db4 __CFRunLoopRun + 1012
4   CoreFoundation                  0x2b9a199c CFRunLoopRunSpecific + 472
5   CoreFoundation                  0x2b9eb366 CFRunLoopRun + 94
6   CoreMotion                      0x2c2b6ab6 0x2c271000 + 285366
7   libsystem_pthread.dylib         0x3a41bde8 _pthread_body + 136
8   libsystem_pthread.dylib         0x3a41bd5a _pthread_start + 114
9   libsystem_pthread.dylib         0x3a419b04 thread_start + 4

Thread 4 name:  WebThread
Thread 4 Crashed:
0   JavaScriptCore                  0x2cf99286 WTFCrash + 54
1   JavaScriptCore                  0x2cedca80 JSC::JSLock::DropAllLocks::DropAllLocks(JSC::VM*) + 176
2   WebCore                         0x375fec7c SendDelegateMessage(NSInvocation*) + 180
3   WebKitLegacy                    0x3811c42a CallResourceLoadDelegate(objc_object* (*)(objc_object*, objc_selector*, ...), WebView*, objc_selector, objc_object*, objc_object*, objc_object*) + 206
4   WebKitLegacy                    0x381036b6 WebFrameLoaderClient::dispatchDidFailLoading(WebCore::DocumentLoader*, unsigned long, WebCore::ResourceError const&) + 202
5   WebCore                         0x3762c5e2 WebCore::ResourceLoadNotifier::didFailToLoad(WebCore::ResourceLoader*, WebCore::ResourceError const&) + 62
6   WebCore                         0x3762bf44 WebCore::ResourceLoader::cancel(WebCore::ResourceError const&) + 316
7   WebCore                         0x3762bdf2 WebCore::ResourceLoader::cancel() + 50
8   WebCore                         0x375a753e WebCore::CachedResource::removeClient(WebCore::CachedResourceClient*) + 390
9   WebCore                         0x37f8badc WebCore::WebCoreAVFResourceLoader::invalidate() + 24
10  WebCore                         0x37cf45a2 WebCore::MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC() + 262
11  WebCore                         0x37cf4ce0 WebCore::MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC() + 4
12  WebCore                         0x37cf00ca WebCore::MediaPlayer::~MediaPlayer() + 110
13  WebCore                         0x37cf010c WebCore::MediaPlayer::~MediaPlayer() + 4
14  WebCore                         0x3798ba8e WebCore::HTMLMediaElement::~HTMLMediaElement() + 842
15  WebCore                         0x3796f9d8 WebCore::HTMLAudioElement::~HTMLAudioElement() + 4
16  WebCore                         0x37cd96a4 WebCore::LiveNodeList::~LiveNodeList() + 40
17  WebCore                         0x37f2c54e WebCore::CachedLiveNodeList<WebCore::HTMLTagNodeList>::~CachedLiveNodeList() + 138
18  WebCore                         0x3768f00e WebCore::HTMLTagNodeList::~HTMLTagNodeList() + 78
19  WebCore                         0x3768eb28 WebCore::JSNodeListOwner::finalize(JSC::Handle<JSC::Unknown>, void*) + 276
20  JavaScriptCore                  0x2cd1f654 JSC::WeakBlock::sweep() + 72
21  JavaScriptCore                  0x2ccbe7f0 JSC::WeakSet::sweep() + 16
22  JavaScriptCore                  0x2ccbe79a JSC::MarkedBlock::sweep(JSC::MarkedBlock::SweepMode) + 14
23  JavaScriptCore                  0x2cf25dd0 JSC::MarkedAllocator::tryAllocateHelper(unsigned long) + 128
24  JavaScriptCore                  0x2ccbdfee JSC::MarkedAllocator::allocateSlowCase(unsigned long) + 114

我正在上传断点暂停的屏幕

enter image description here

1 个答案:

答案 0 :(得分:1)

这是一种EXC_BAD_ACCESS类型的代码,与访问deallocated内存有关。为了找到这个,您需要启用NSZombie个对象。按Option/alt + Command + R并选择&#34; Diagnostics&#34;标签。最后,点击&#34; Enable Zombie Objects&#34;。这应该使编译器停止在导致此崩溃的代码行上。

Apple documents about Application with Diagnostics enter image description here