崩溃后它只指向main.mm文件.
尝试:
- NSLogs - NSZombIEnabled
以下是崩溃日志.据我所知,它正在使用一些已经被释放的内存位置.但是如何识别,它是哪个对象?
IncIDent IDentifIEr: AF769A76-ADB4-4C3C-9A94-E0B45A994B42CrashReporter Key: 7443d58afe6b6a3df23c273ba834f8ae4814a7ceHarDWare Model: iPad2,1Process: BLSOffline [3255]Path: /var/mobile/Applications/A4C2BB5D-0FE4-4A4D-B1D6-FF6E0183F4EE/BLSOffline.app/BLSOfflineIDentifIEr: com.bentley.LearnInHouseVersion: 1.0 (1.0)Code Type: ARM (Native)Parent Process: launchd [1]Date/Time: 2013-12-02 18:29:21.692 +0530OS Version: iOS 7.0.4 (11B554a)Report Version: 104Exception Type: EXC_BAD_ACCESS (SIGSEGV)Exception Subtype: KERN_INVALID_ADDRESS at 0x6192010bTriggered by Thread: 0Thread 0 Crashed:0 libobjc.A.dylib 0x3a92db26 objc_msgSend + 61 MediaPlayer 0x314a2540 -[MPMovIEPlayerControllerNew _movIEPlayerWillBecomeActiveNotification:] + 4722 CoreFoundation 0x30223116 __CFNOTIFICATIONCENTER_IS_CALliNG_OUT_TO_AN_OBSERVER__ + 103 CoreFoundation 0x30197252 _CFXNotificationPost + 17144 Foundation 0x30b7cc28 -[NSNotificationCenter postNotificationname:object:userInfo:] + 725 MediaPlayer 0x314a4a60 -[MPMovIEPlayerControllerNew _postNotificationname:object:userInfo:] + 966 MediaPlayer 0x314a49f0 -[MPMovIEPlayerControllerNew _postNotificationname:object:] + 407 MediaPlayer 0x314a43d4 -[MPMovIEPlayerControllerNew _ensureActive] + 1288 MediaPlayer 0x314a44a2 -[MPMovIEPlayerControllerNew _preparetoPlayWithStartIndex:] + 669 MediaPlayer 0x314a009c -[MPMovIEPlayerControllerNew preparetoPlay] + 4010 MediaPlayer 0x314a0100 -[MPMovIEPlayerControllerNew play] + 4411 MediaPlayer 0x314a2b2e -[MPMovIEPlayerControllerNew _movIESourceTypeAvailableNotification:] + 35012 CoreFoundation 0x30223116 __CFNOTIFICATIONCENTER_IS_CALliNG_OUT_TO_AN_OBSERVER__ + 1013 CoreFoundation 0x30197252 _CFXNotificationPost + 171414 Foundation 0x30b7cc28 -[NSNotificationCenter postNotificationname:object:userInfo:] + 7215 Foundation 0x30b81506 -[NSNotificationCenter postNotificationname:object:] + 2616 MediaPlayer 0x31525b00 -[MPMovIE _determineMediaType] + 15217 Foundation 0x30c3b386 __NSFireDelayedPerform + 41018 CoreFoundation 0x3022c0dc __CFRUNLOOP_IS_CALliNG_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 1219 CoreFoundation 0x3022bcf2 __CFRunLoopDoTimer + 77820 CoreFoundation 0x3022a08e __CFRunLoopRun + 120621 CoreFoundation 0x30194c22 CFRunLoopRunspecific + 51822 CoreFoundation 0x30194a06 CFRunLoopRunInMode + 10223 GraphiCSServices 0x34e6827e GSEventRunModal + 13424 UIKit 0x32a38044 UIApplicationMain + 113225 BLSOffline 0x00116c0e 0xee000 + 16692626 libdyld.dylib 0x3ae3aab4 start + 0Thread 1 name: gputools.smt_poll.0x14632d20Thread 1:0 libsystem_kernel.dylib 0x3aef1550 __semwait_signal + 241 libsystem_c.dylib 0x3ae62808 nanosleep + 1682 libsystem_c.dylib 0x3ae62756 usleep + 463 GPUToolscore 0x02292f34 smt_poll_thread_entry(voID*) + 1204 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1385 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 986 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 2:0 libsystem_kernel.dylib 0x3aede83c kevent64 + 241 libdispatch.dylib 0x3ae1f210 _dispatch_mgr_invoke + 2282 libdispatch.dylib 0x3ae1ef96 _dispatch_mgr_thread$VARIANT$mp + 34Thread 3 name: WebThreadThread 3:0 libsystem_kernel.dylib 0x3aef0fa8 __psynch_mutexwait + 241 libsystem_pthread.dylib 0x3af57f0a _pthread_mutex_lock + 3022 WebCore 0x383037f0 _WebTryThreadLock(bool) + 1043 WebCore 0x38303772 WebRunLoopLock(__CFRunLoopObserver*,unsigned long,voID*) + 424 CoreFoundation 0x3022c1ca __CFRUNLOOP_IS_CALliNG_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 185 CoreFoundation 0x30229b6c __CFRunLoopDoObservers + 2806 CoreFoundation 0x30229f7c __CFRunLoopRun + 9327 CoreFoundation 0x30194c22 CFRunLoopRunspecific + 5188 CoreFoundation 0x30194a06 CFRunLoopRunInMode + 1029 WebCore 0x38302266 RunWebThread(voID*) + 41410 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 13811 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 9812 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 4:0 libsystem_kernel.dylib 0x3aedea8c mach_msg_trap + 201 libsystem_kernel.dylib 0x3aede888 mach_msg + 442 CoreFoundation 0x3022b7be __CFRunLoopServiceMachPort + 1503 CoreFoundation 0x30229ee4 __CFRunLoopRun + 7804 CoreFoundation 0x30194c22 CFRunLoopRunspecific + 5185 CoreFoundation 0x30194a06 CFRunLoopRunInMode + 1026 libAVFAudio.dylib 0x2f217584 GenericRunLoopThread::Entry(voID*) + 1247 libAVFAudio.dylib 0x2f20b99c CAPThread::Entry(CAPThread*) + 1768 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1389 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 9810 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 5 name: JavaScriptCore::BlockFreeThread 5:0 libsystem_kernel.dylib 0x3aef0f38 __psynch_cvwait + 241 libsystem_pthread.dylib 0x3af59224 _pthread_cond_wait + 5362 libsystem_pthread.dylib 0x3af5a000 pthread_cond_wait + 363 JavaScriptCore 0x311b9d50 JsC::BlockAllocator::blockFreeingThreadMain() + 2044 JavaScriptCore 0x311b73a0 WTF::wtfThreadEntryPoint(voID*) + 125 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1386 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 987 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 6 name: JavaScriptCore::MarkingThread 6:0 libsystem_kernel.dylib 0x3aef0f38 __psynch_cvwait + 241 libsystem_pthread.dylib 0x3af59224 _pthread_cond_wait + 5362 libsystem_pthread.dylib 0x3af5a000 pthread_cond_wait + 363 JavaScriptCore 0x31355236 JsC::GCThread::waitForNextPhase() + 744 JavaScriptCore 0x31355290 JsC::GCThread::gcThreadMain() + 485 JavaScriptCore 0x311b73a0 WTF::wtfThreadEntryPoint(voID*) + 126 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1387 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 988 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 7 name: WebCore: CFNetwork LoaderThread 7:0 libsystem_kernel.dylib 0x3aedea8c mach_msg_trap + 201 libsystem_kernel.dylib 0x3aede888 mach_msg + 442 CoreFoundation 0x3022b7be __CFRunLoopServiceMachPort + 1503 CoreFoundation 0x30229ee4 __CFRunLoopRun + 7804 CoreFoundation 0x30194c22 CFRunLoopRunspecific + 5185 CoreFoundation 0x30194a06 CFRunLoopRunInMode + 1026 WebCore 0x3834ad5a WebCore::runLoaderThread(voID*) + 2507 JavaScriptCore 0x311b73a0 WTF::wtfThreadEntryPoint(voID*) + 128 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1389 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 9810 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 8 name: com.apple.NSURLConnectionLoaderThread 8:0 libsystem_kernel.dylib 0x3aedea8c mach_msg_trap + 201 libsystem_kernel.dylib 0x3aede888 mach_msg + 442 CoreFoundation 0x3022b7be __CFRunLoopServiceMachPort + 1503 CoreFoundation 0x30229ee4 __CFRunLoopRun + 7804 CoreFoundation 0x30194c22 CFRunLoopRunspecific + 5185 CoreFoundation 0x30194a06 CFRunLoopRunInMode + 1026 Foundation 0x30bcf2f2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 3147 Foundation 0x30c44c82 __NSThread__main__ + 10588 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1389 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 9810 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 9 name: com.apple.CFSocket.privateThread 9:0 libsystem_kernel.dylib 0x3aef1440 __select + 201 CoreFoundation 0x3022f680 __CFSocketManager + 4802 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1383 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 984 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 10 name: WebCore: localstorageThread 10:0 libsystem_kernel.dylib 0x3aef0f38 __psynch_cvwait + 241 libsystem_pthread.dylib 0x3af59224 _pthread_cond_wait + 5362 libsystem_pthread.dylib 0x3af5a000 pthread_cond_wait + 363 JavaScriptCore 0x311b9e82 WTF::ThreadCondition::timeDWait(WTF::Mutex&,double) + 584 WebCore 0x384353a8 WTF::PassOwnPtr<WTF::Function<voID ()> > WTF::MessageQueue<WTF::Function<voID ()> >::waitForMessageFiltereDWithTimeout<bool (WTF::Function<voID ()>*)>(WTF::MessageQueueWaitResult&,bool (&)(WTF::Function<voID ()>*),double) + 1045 WebCore 0x3843532e WebCore::StorageThread::threadEntryPoint() + 1626 JavaScriptCore 0x311b73a0 WTF::wtfThreadEntryPoint(voID*) + 127 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1388 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 989 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 11 name: com.apple.coremedia.player.asyncThread 11:0 libsystem_kernel.dylib 0x3aedeadc semaphore_wait_trap + 81 libdispatch.dylib 0x3ae1d428 _dispatch_semaphore_wait_slow + 1722 MediaToolBox 0x3168083c fpa_AsyncMovIEControlThread + 17523 CoreMedia 0x307bf234 figThreadMain + 1924 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1385 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 986 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 12 name: com.apple.coremedia.player.remoteThread 12:0 libsystem_kernel.dylib 0x3aedea8c mach_msg_trap + 201 libsystem_kernel.dylib 0x3aede888 mach_msg + 442 MediaToolBox 0x31686c58 figExpressNotificationThread + 843 CoreMedia 0x307bf234 figThreadMain + 1924 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1385 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 986 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 13:0 libsystem_kernel.dylib 0x3aef1c7c __workq_kernreturn + 81 libsystem_pthread.dylib 0x3af57dc6 _pthread_wqthread + 3062 libsystem_pthread.dylib 0x3af57c80 start_wqthread + 4Thread 14:0 libsystem_kernel.dylib 0x3aef1c7c __workq_kernreturn + 81 libsystem_pthread.dylib 0x3af57dc6 _pthread_wqthread + 3062 libsystem_pthread.dylib 0x3af57c80 start_wqthread + 4Thread 15 name: com.apple.coremedia.player.asyncThread 15:0 libsystem_kernel.dylib 0x3aedeadc semaphore_wait_trap + 81 libdispatch.dylib 0x3ae1d428 _dispatch_semaphore_wait_slow + 1722 MediaToolBox 0x3168083c fpa_AsyncMovIEControlThread + 17523 CoreMedia 0x307bf234 figThreadMain + 1924 libsystem_pthread.dylib 0x3af59c1a _pthread_body + 1385 libsystem_pthread.dylib 0x3af59b8a _pthread_start + 986 libsystem_pthread.dylib 0x3af57c8c thread_start + 4Thread 16:0 libsystem_kernel.dylib 0x3aef1c7c __workq_kernreturn + 81 libsystem_pthread.dylib 0x3af57dc6 _pthread_wqthread + 3062 libsystem_pthread.dylib 0x3af57c80 start_wqthread + 4Thread 0 crashed with ARM Thread State (32-bit): r0: 0x145cb7d0 r1: 0x31617754 r2: 0x3b3091a0 r3: 0x00000000 r4: 0x1918aea0 r5: 0x145cb7d0 r6: 0x00000000 r7: 0x27d134f8 r8: 0x00000000 r9: 0x619200ff r10: 0x31617754 r11: 0x145cb7ec ip: 0x3b2cd2a4 sp: 0x27d134c0 lr: 0x314a2545 pc: 0x3a92db26 cpsr: 0x60000030解决方法 看起来你好像忘记删除电影回调的观察者:
-(voID) dealloc{ [[NSNotificationCenter defaultCenter] removeObserver:self];}
电影播放器(通过NSNotificationCenter)可能是使用某些内存位置的对象,该内存位置在尝试通知其观察者时已被释放
总结以上是内存溢出为你收集整理的ios – 如何识别iPad应用程序崩溃的原因?全部内容,希望文章能够帮你解决ios – 如何识别iPad应用程序崩溃的原因?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)