I'm getting this crash log from Fabric but am unable to understand what causes it. Can anyone help to explain what cause this crash?
Here is the log from Fabric:
Crashed: com.apple.NSURLConnectionLoader
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000008efcaa00
Crashed: com.apple.NSURLConnectionLoader
0 libobjc.A.dylib 0x1808bdb90 objc_msgSend + 16
1 CoreFoundation 0x1811be0a4 __CFArrayCreateCopy0 + 628
2 Security 0x181685aa4 SecTrustCreateWithCertificates + 96
3 Security 0x18165974c sslCreateSecTrust + 204
4 Security 0x181659c5c tls_verify_peer_cert + 80
5 libsystem_coretls.dylib 0x180d8603c SSLProcessHandshakeRecordInner + 176
6 libsystem_coretls.dylib 0x180d8a490 tls_handshake_process + 148
7 Security 0x18165dd60 SSLHandshakeProceed + 140
8 Security 0x18165e188 SSLHandshake + 140
9 CFNetwork 0x1818299b8 SocketStream::_PerformSecurityHandshake_NoLock() + 464
10 CFNetwork 0x18180440c SocketStream::socketCallback(__CFSocket*, unsigned long, __CFData const*, void const*) + 204
11 CFNetwork 0x1818042fc SocketStream::_SocketCallBack_stream(__CFSocket*, unsigned long, __CFData const*, void const*, void*) + 88
12 CoreFoundation 0x181201750 __CFSocketPerformV0 + 1096
13 CoreFoundation 0x1811fd09c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14 CoreFoundation 0x1811fcab0 __CFRunLoopDoSources0 + 412
15 CoreFoundation 0x1811fa830 __CFRunLoopRun + 724
16 CoreFoundation 0x181124c50 CFRunLoopRunSpecific + 384
17 CFNetwork 0x1818a5c68 +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
18 Foundation 0x181c1be4c __NSThread__start__ + 1000
19 libsystem_pthread.dylib 0x180eabb28 _pthread_body + 156
20 libsystem_pthread.dylib 0x180eaba8c _pthread_body + 154
21 libsystem_pthread.dylib 0x180ea9028 thread_start + 4
As far as i know, in my app, I didn't do any call using SecTrustCreateWithCertificates. But I did use AFNewtworking.
Any help and explanation would be helpful.
Related
Scenario
I have a SwiftUI app that has been working perfectly fine.
I upgrade Xcode to 13.2.1 and I'm able to launch the application but when I navigate to a certain part of the application I'm getting this error on device and during SwiftUI preview.
'NSInvalidArgumentException', reason: '-[__SwiftValue set]: unrecognized selector sent to instance 0x600001bd9590'
Feedback / Assistance
Can anyone provide instructions / steps to debug this?
How can I find out what is instance 0x600001bd9590 and who is setting the NSInvalidArgumentException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__SwiftValue set]: unrecognized selector sent to instance 0x600001bd9590'
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/m1/Library/Developer/Xcode/DerivedData/NT-dfyuqrdtadtqdkaxajldzwimkhru/Build/Intermediates.noindex/Previews/NT/Products/Debug-iphonesimulator DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot//System/Library/PrivateFrameworks/PreviewsInjection.framework/PreviewsInjection DYLD_FRAMEWORK_PATH=/Users/m1/Library/Developer/Xcode/DerivedData/NT-dfyuqrdtadtqdkaxajldzwimkhru/Build/Intermediates.noindex/Previews/NT/Products/Debug-iphonesimulator
abort() called
Last Exception Backtrace:
0 CoreFoundation 0x1803e1174 __exceptionPreprocess + 216
1 libobjc.A.dylib 0x180193384 objc_exception_throw + 56
2 CoreFoundation 0x1803f0530 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x1803e53fc ___forwarding___ + 1408
4 CoreFoundation 0x1803e743c _CF_forwarding_prep_0 + 92
5 UIFoundation 0x18410cc7c -[NSCoreTypesetter _NSFastDrawString:length:attributes:paragraphStyle:typesetterBehavior:lineBreakMode:rect:padding:graphicsContext:baselineRendering:usesFontLeading:usesScreenFont:scrollable:syncAlignment:mirrored:boundingRectPointer:baselineOffsetPointer:drawingContext:] + 3820
6 UIFoundation 0x18410d6c0 -[NSCoreTypesetter _stringDrawingCoreTextEngineWithOriginalString:rect:padding:graphicsContext:forceClipping:attributes:stringDrawingOptions:drawingContext:stringDrawingInterface:] + 1200
7 UIFoundation 0x184107bf0 __NSStringDrawingEngine + 1480
8 UIFoundation 0x184108b24 -[NSAttributedString(NSExtendedStringDrawing) drawWithRect:options:context:] + 128
9 UIKitCore 0x18524a2b4 -[UILabel _drawTextInRect:baselineCalculationOnly:] + 3100
10 UIKitCore 0x18524abb8 -[UILabel _drawTextInRect:] + 248
11 UIKitCore 0x185249330 -[UILabel drawTextInRect:] + 536
12 UIKitCore 0x185300714 -[UIView(CALayerDelegate) drawLayer:inContext:] + 536
13 QuartzCore 0x1883ad940 CABackingStoreUpdate_ + 192
14 QuartzCore 0x1884e0078 invocation function for block in CA::Layer::display_() + 52
15 QuartzCore 0x1884d66dc -[CALayer _display] + 1688
16 QuartzCore 0x1884e8ce4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 408
17 QuartzCore 0x18843c04c CA::Context::commit_transaction(CA::Transaction*, double, double*) + 516
18 QuartzCore 0x188467860 CA::Transaction::commit() + 684
19 UIKitCore 0x184dc48f4 _afterCACommitHandler + 104
20 CoreFoundation 0x18034ef9c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
21 CoreFoundation 0x180349724 __CFRunLoopDoObservers + 556
22 CoreFoundation 0x180349c84 __CFRunLoopRun + 976
23 CoreFoundation 0x1803493a8 CFRunLoopRunSpecific + 572
24 GraphicsServices 0x18c03c5ec GSEventRunModal + 160
25 UIKitCore 0x184d937ac -[UIApplication _run] + 992
26 UIKitCore 0x184d982e8 UIApplicationMain + 112
27 SwiftUI 0x1b99bc7f4 closure #1 in KitRendererCommon(_:) + 160
28 SwiftUI 0x1b99bc750 runApp<A>(_:) + 164
29 SwiftUI 0x1b94124f4 static App.main() + 80
30 NT 0x102d46c24 static NTApp.$main() + 100
31 NT 0x102d46d38 main + 76
32 dyld_sim 0x10368dca0 start_sim + 20
33 dyld 0x1033d50f4 start + 520
34 ??? 0x4c15800000000000 ???
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x1c997ca60 __pthread_kill + 8
1 libsystem_pthread.dylib 0x1c99ce380 pthread_kill + 256
2 libsystem_c.dylib 0x1800fe3d8 abort + 120
3 libc++abi.dylib 0x18022de94 abort_message + 128
4 libc++abi.dylib 0x18021fc98 demangling_terminate_handler() + 296
5 libobjc.A.dylib 0x180176e84 _objc_terminate() + 124
6 libc++abi.dylib 0x18022d358 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x18022fd98 __cxa_rethrow + 144
8 libobjc.A.dylib 0x1801934d4 objc_exception_rethrow + 40
9 CoreFoundation 0x180349494 CFRunLoopRunSpecific + 808
10 GraphicsServices 0x18c03c5ec GSEventRunModal + 160
11 UIKitCore 0x184d937ac -[UIApplication _run] + 992
12 UIKitCore 0x184d982e8 UIApplicationMain + 112
13 SwiftUI 0x1b99bc7f4 closure #1 in KitRendererCommon(_:) + 160
14 SwiftUI 0x1b99bc750 runApp<A>(_:) + 164
15 SwiftUI 0x1b94124f4 static App.main() + 80
16 NT 0x102d46c24 static NTApp.$main() + 100 (NTApp.swift:10)
17 NT 0x102d46d38 main + 76
18 dyld_sim 0x10368dca0 start_sim + 20
19 dyld 0x1033d50f4 start + 520
I've had an app on the app store for about a month and then I recently uploaded an updated binary to the App Store, version 2.0. It uses SpriteKit and ever since that update every person who downloaded it got a crash upon startup (this was apparent in the customer reviews). So I went back through my code and realized that I forgot to change one of the code signing options to Distribution instead of developer. After archiving that new binary, 2.1, and waiting ANOTHER week to have it released again, version 2.1 crashed as well. My app has been down for 2 weeks now and I'm fed up with this. I made very minor changes including a line of code in the AppDelegate.m that allows the user to play their own music in the background:
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
return YES;
}
I am not super comfortable with Xcode and it is my first app. I get this crash report in iTunes Connect:
Incident Identifier: A0DB04E6-A62B-46AB-8896-CE77A91064EF
Hardware Model: iPhone5,3
Process: PokeJump [831]
Path: /var/mobile/Applications/BB765A31-6028-429B-9939- F69DB8B62E85/PokeJump.app/PokeJump
Identifier: PokeJump.PokeJump
Version: 2.0 (2.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-07-01 19:07:36.341 -0400
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2fe61f06 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3a5f8ce2 objc_exception_throw + 34
2 CoreFoundation 0x2fe61e48 +[NSException raise:format:] + 108
3 SpriteKit 0x325a6c12 +[SKPlaySound playSoundFileNamed:atPosition:waitForCompletion:] + 578
4 SpriteKit 0x3255f8ec +[SKAction(SKActions) playSoundFileNamed:waitForCompletion:] + 60
5 PokeJump 0x000637de 0x0005a000 + 38878
6 PokeJump 0x0006177e 0x0005a000 + 30590
7 PokeJump 0x0006e080 0x0005a000 + 82048
8 UIKit 0x32695a4e -[UIViewController loadViewIfRequired] + 514
9 UIKit 0x3269580c -[UIViewController view] + 20
10 UIKit 0x327b5292 -[UIWindow handleStatusBarChangeFromHeight:toHeight:] + 690
11 UIKit 0x3271c432 +[UIWindow _noteStatusBarHeightChanged:oldHeight:forAutolayoutRootViewsOnly:] + 234
12 UIKit 0x3281cb2c __79-[UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:]_block_invoke + 128
13 UIKit 0x326c6a36 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 486
14 UIKit 0x327ff33a +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 66
15 UIKit 0x32741de6 -[UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:] + 458
16 UIKit 0x3269c8fc -[UIApplication _updateCurrentStatusBarViewControllerAppearance] + 244
17 UIKit 0x32699d8e -[UIWindow _setHidden:forced:] + 230
18 UIKit 0x32703a4c -[UIWindow makeKeyAndVisible] + 56
19 UIKit 0x327006e0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1816
20 UIKit 0x326facc4 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 716
21 UIKit 0x32696c92 -[UIApplication handleEvent:withNewEvent:] + 3546
22 UIKit 0x32695df4 -[UIApplication sendEvent:] + 68
23 UIKit 0x326fa400 _UIApplicationHandleEvent + 612
24 GraphicsServices 0x34d03b50 _PurpleEventCallback + 604
25 GraphicsServices 0x34d0373a PurpleEventCallback + 30
26 CoreFoundation 0x2fe2c842 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
27 CoreFoundation 0x2fe2c7de __CFRunLoopDoSource1 + 342
28 CoreFoundation 0x2fe2afaa __CFRunLoopRun + 1402
29 CoreFoundation 0x2fd95764 CFRunLoopRunSpecific + 520
30 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
31 UIKit 0x326f9626 -[UIApplication _run] + 758
32 UIKit 0x326f488c UIApplicationMain + 1132
33 PokeJump 0x0006e73e 0x0005a000 + 83774
34 libdyld.dylib 0x3aaf6ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3abad1f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3ac157b2 pthread_kill + 54
2 libsystem_c.dylib 0x3ab5dff4 abort + 72
3 libc++abi.dylib 0x39fac98a abort_message + 70
4 libc++abi.dylib 0x39fc56e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3a5f8f7a _objc_terminate() + 190
6 libc++abi.dylib 0x39fc31b0 std::__terminate(void
7 libc++abi.dylib 0x39fc2d12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3a5f8e2a objc_exception_rethrow + 38
9 CoreFoundation 0x2fd957da CFRunLoopRunSpecific + 638
10 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
11 UIKit 0x326f9626 -[UIApplication _run] + 758
12 UIKit 0x326f488c UIApplicationMain + 1132
13 PokeJump 0x0006e73e 0x5a000 + 83774
14 libdyld.dylib 0x3aaf6ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3ab9a804 kevent64 + 24
1 libdispatch.dylib 0x3aae9050 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3aae32de _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x3abadc70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3ac12c1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3ac12ad8 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3abadc70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3ac12c1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3ac12ad8 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x3ab9aa50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3ab9a848 mach_msg + 36
2 CoreFoundation 0x2fe2c624 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2fe2ad44 __CFRunLoopRun + 788
4 CoreFoundation 0x2fd95764 CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2edfa45e GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2edee8fc CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x3ac14956 _pthread_body + 138
9 libsystem_pthread.dylib 0x3ac148c6 _pthread_start + 98
10 libsystem_pthread.dylib 0x3ac12ae4 thread_start + 4
Thread 5:
0 AudioToolbox 0x2f74f7d4 CrashIfClientProvidedBogusAudioBufferList + 124
1 AudioToolbox 0x2f75e1d6 AudioConverterFillComplexBuffer + 250
2 AudioToolbox 0x2f81decc AUInputFormatConverter2::PullAndConvertInput(AudioTimeStamp const&, unsigned long&, AudioBufferList&, AudioStreamPacketDescription*, bool&) + 96
3 AudioToolbox 0x2f81da74 AUConverterBase::RenderBus(unsigned long&, AudioTimeStamp const&, unsigned long, unsigned long) + 212
4 AudioToolbox 0x2f7518f4 AUBase::DoRenderBus(unsigned long&, AudioTimeStamp const&, unsigned long, AUOutputElement*, unsigned long, AudioBufferList&) + 144
5 AudioToolbox 0x2f751744 AUBase::DoRender(unsigned long&, AudioTimeStamp const&, unsigned long, unsigned long, AudioBufferList&) + 528
6 AudioToolbox 0x2f80d96c AURemoteIO::PerformIO(unsigned long, unsigned int, unsigned int, AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const*, AudioBufferList*, int&) + 484
7 AudioToolbox 0x2f80e9b8 AURIOCallbackReceiver_PerformIO + 392
8 AudioToolbox 0x2f8050b2 _XPerformIO + 174
9 AudioToolbox 0x2f77264a mshMIGPerform + 122
10 AudioToolbox 0x2f7e1b28 MSHMIGDispatchMessage + 28
11 AudioToolbox 0x2f80dbe4 AURemoteIO::IOThread::Run() + 116
12 AudioToolbox 0x2f810cc4 AURemoteIO::IOThread::Entry(void*) + 4
13 AudioToolbox 0x2f74db38 CAPThread::Entry(CAPThread*) + 208
14 libsystem_pthread.dylib 0x3ac14956 _pthread_body + 138
15 libsystem_pthread.dylib 0x3ac148c6 _pthread_start + 98
16 libsystem_pthread.dylib 0x3ac12ae4 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
I realize it says version 2.0 on this crash report but I am assuming both crashed for the same reason. I am desperate to find a fix for this and it frustrates me so much because it runs perfectly fine on all the simulators and on my iPad and iPhone when I run it when connected to my computer. Any help would mean a lot. Thanks
Running an iPhone app using the latest version of AFNetworking, the most popular crash according to Crashlytics is involving NSBlockOperation. I am unsure whether AFNetworking is responsible or not. The log from Crashlytics:
Exception Type: EXC_BAD_ACCESS Code: KERN_INVALID_ADDRESS at 0x2985118298
5com.apple.NSURLConnectionLoader Crashed
0 libobjc.A.dylib objc_msgSend + 9
1 Foundation -[NSBlockOperation main] + 200
2 Foundation -[__NSOperationInternal start] + 840
3 Foundation -[_NSCFURLProtocolBridgeWithTrampoline processEventQ] + 344
4 Foundation -[_NSCFURLProtocolBridgeWithTrampoline pushEvent:from:] + 298
5 Foundation -[_NSCFURLProtocolBridge stop] + 88
6 Foundation _bridger + 64
7 CFNetwork __block_global_7 + 24
8 CFNetwork __block_global_8 + 12
9 CFNetwork ___performAsync_block_invoke_068 + 18
10 CoreFoundation CFArrayApplyFunction + 176
11 CFNetwork RunloopBlockContext::perform() + 74
12 CFNetwork MultiplexerSource::perform() + 188
13 ... CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
14 CoreFoundation __CFRunLoopDoSources0 + 212
15 CoreFoundation __CFRunLoopRun + 646
16 CoreFoundation CFRunLoopRunSpecific + 356
17 CoreFoundation CFRunLoopRunInMode + 104
18 Foundation +[NSURLConnection(Loader) _resourceLoadLoop:] + 308
19 Foundation __NSThread__main__ + 972
20 libsystem_c.dylib _pthread_start + 308
Let me know if you need more logs. Can anybody direct me in the direction to avoid this crash? Out of 2500 users 76 users has been affected.
Update Sept 17:
Seems like this guy is having the same problem:
iOS Blocks Async Callbacks Causing Crash after View Controller is deallocated.
I don't understand why this is crashing, whenever i came back to home page this app crashes, I have a file LocationSelectViewController.m when enabling zombie it throws an error
[LocationSelectViewController respondsToSelector:]: message sent to deallocated instance 0x27b96740
Let me share a crash log
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libobjc.A.dylib 0x3b2665d0 objc_msgSend + 16
1 MapKit 0x343b7492 -[MKReverseGeocoder _notifyResult:] + 70
2 ProtocolBuffer 0x389631b6 -[PBRequester connectionDidFinishLoading:] + 1042
3 Foundation 0x33eac912 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 + 14
4 Foundation 0x33dec764 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 196
5 Foundation 0x33dec680 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
6 CFNetwork 0x3324d64c ___delegate_didFinishLoading_block_invoke_0 + 24
7 CFNetwork 0x3324cd30 ___withDelegateAsync_block_invoke_0 + 52
8 CFNetwork 0x33275010 ___performAsync_block_invoke_068 + 16
9 CoreFoundation 0x334b6aca CFArrayApplyFunction + 174
10 CFNetwork 0x3327546e RunloopBlockContext::perform() + 70
11 CFNetwork 0x331d945e MultiplexerSource::perform() + 186
12 CoreFoundation 0x335458f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
13 CoreFoundation 0x33545158 __CFRunLoopDoSources0 + 208
14 CoreFoundation 0x33543f2a __CFRunLoopRun + 642
15 CoreFoundation 0x334b7238 CFRunLoopRunSpecific + 352
16 CoreFoundation 0x334b70c4 CFRunLoopRunInMode + 100
17 GraphicsServices 0x37096336 GSEventRunModal + 70
18 UIKit 0x353d32b4 UIApplicationMain + 1116
19 PlanetTran 0x000af534 0xae000 + 5428
20 PlanetTran 0x000af4cc 0xae000 + 5324
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x3b74f5d0 kevent64 + 24
1 libdispatch.dylib 0x3b68ad22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3b686374 _dispatch_mgr_thread + 32
Try to convert your application in ARC(Automatic reference counting).
message sent to deallocated instance means you are trying to send the message that object is destroyed Automatically so you are getting this exceptions.
For converting in ARC goto Xcode
Edit->Refactor->convert to objective c ARC
I trying to figure out why my App crashes sometimes on costumers devices. It doesnt matter if the device is jailbreaked or not. My App is from the AppStore. The other crashlogs are nearly the same although their crashed threads are different.
Hardware Model: iPhone3,1
Process: [the APP] [296]
Path: /var/mobile/Applications/06DF5BC5-F9C2-49EE-B2D5-5979C09B51A2/[the APP].app/[the APP]
Identifier: [the APP]
Version: 3.3.0
Code Type: ARM
Parent Process: launchd [1]
Date/Time: 2012-07-22 15:15:18 +0000
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0xbbadbeef
Crashed Thread: 7
Thread 0:
0 libsystem_kernel.dylib 0x35c39004 mach_msg_trap + 20
1 CoreFoundation 0x353673f3 __CFRunLoopServiceMachPort + 127
2 CoreFoundation 0x353660f1 __CFRunLoopRun + 825
3 CoreFoundation 0x352e94a5 CFRunLoopRunSpecific + 301
4 CoreFoundation 0x352e936d CFRunLoopRunInMode + 105
5 GraphicsServices 0x36f85439 GSEventRunModal + 137
6 UIKit 0x32df5cd5 UIApplicationMain + 1081
7 [the APP] 0x0000b549 main (main.m:20)
Thread 1:
0 libsystem_kernel.dylib 0x35c393a8 kevent + 24
1 libdispatch.dylib 0x3422cbc9 _dispatch_mgr_wakeup + 1
Thread 2:
0 libsystem_kernel.dylib 0x35c490d8 __psynch_mutexwait + 24
1 WebCore 0x311454ef _ZL17_WebTryThreadLockb + 215
2 WebCore 0x311a4173 _ZL19SendDelegateMessageP12NSInvocation + 707
3 WebKit 0x3507ad87 -[_WebSafeForwarder forwardInvocation:] + 119
4 CoreFoundation 0x35395a83 ___forwarding___ + 667
5 CoreFoundation 0x352f0650 _CF_forwarding_prep_0 + 48
6 WebKit 0x350816a1 WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(void (WebCore::PolicyChecker::*)(WebCore::PolicyAction), WebCore::NavigationAction const&, WebCore::ResourceRequest const&, WTF::PassRefPtr) + 221
7 WebCore 0x3120b8b9 WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&, WebCore::DocumentLoader*, WTF::PassRefPtr, void (*)(void*, WebCore::ResourceRequest const&, WTF::PassRefPtr, bool), void*) + 873
8 WebCore 0x3120ae4d WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WTF::PassRefPtr) + 913
9 WebCore 0x312092b9 WebCore::FrameLoader::load(WebCore::DocumentLoader*) + 169
10 WebCore 0x312091e5 WebCore::FrameLoader::load(WebCore::ResourceRequest const&, WebCore::SubstituteData const&, bool) + 241
11 WebKit 0x350b3f5f -[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:] + 1119
12 WebKit 0x350b3797 -[WebFrame _loadHTMLString:baseURL:unreachableURL:] + 79
13 WebKit 0x350b37bb -[WebFrame loadHTMLString:baseURL:] + 31
14 WebCore 0x311950b5 HandleRunSource + 365
15 CoreFoundation 0x35367ad3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
16 CoreFoundation 0x35367335 __CFRunLoopDoSources0 + 365
17 CoreFoundation 0x35366045 __CFRunLoopRun + 653
18 CoreFoundation 0x352e94a5 CFRunLoopRunSpecific + 301
19 CoreFoundation 0x352e936d CFRunLoopRunInMode + 105
20 WebCore 0x311e8ca3 _ZL12RunWebThreadPv + 403
21 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 3:
0 libsystem_kernel.dylib 0x35c39004 mach_msg_trap + 20
1 CoreFoundation 0x353673f3 __CFRunLoopServiceMachPort + 127
2 CoreFoundation 0x3536612b __CFRunLoopRun + 883
3 CoreFoundation 0x352e94a5 CFRunLoopRunSpecific + 301
4 CoreFoundation 0x352e936d CFRunLoopRunInMode + 105
5 Foundation 0x34e22bb9 +[NSURLConnection(Loader) _resourceLoadLoop:] + 309
6 Foundation 0x34e22a81 -[NSThread main] + 73
7 Foundation 0x34eb6591 __NSThread__main__ + 1049
8 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 4:
0 libsystem_kernel.dylib 0x35c49570 __select + 20
1 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 5:
0 libsystem_kernel.dylib 0x35c39004 mach_msg_trap + 20
1 CoreFoundation 0x353673f3 __CFRunLoopServiceMachPort + 127
2 CoreFoundation 0x3536612b __CFRunLoopRun + 883
3 CoreFoundation 0x352e94a5 CFRunLoopRunSpecific + 301
4 CoreFoundation 0x352e936d CFRunLoopRunInMode + 105
5 YouTube 0x33e336c9 -[YTImageLoader(Internal) _startLoader] + 245
6 Foundation 0x34e22a81 -[NSThread main] + 73
7 Foundation 0x34eb6591 __NSThread__main__ + 1049
8 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 6:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 7 Crashed:
0 WebCore 0x311454e2 _ZL17_WebTryThreadLockb + 202
1 WebCore 0x3114540f WebThreadLock + 55
2 UIKit 0x32e5537b -[UIWebTiledView layoutSubviews] + 43
3 UIKit 0x32e5534b -[UIWebDocumentView layoutSubviews] + 127
4 UIKit 0x32dcaf37 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 183
5 CoreFoundation 0x352f21fb -[NSObject performSelector:withObject:] + 43
6 QuartzCore 0x321c2aa5 -[CALayer layoutSublayers] + 217
7 QuartzCore 0x321c26bd CA::Layer::layout_if_needed(CA::Transaction*) + 217
8 QuartzCore 0x321c6843 CA::Context::commit_transaction(CA::Transaction*) + 227
9 QuartzCore 0x321c657f CA::Transaction::commit() + 315
10 QuartzCore 0x3220dd01 CA::Transaction::release_thread(void*) + 37
11 libsystem_c.dylib 0x327490ff _pthread_tsd_cleanup + 171
12 libsystem_c.dylib 0x32748d7b _pthread_exit + 123
13 libsystem_c.dylib 0x3275a0f3 pthread_exit + 31
14 Foundation 0x34e3237b +[NSThread exit] + 11
15 Foundation 0x34eb65af __NSThread__main__ + 1079
16 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 8:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 9:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 10:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 11:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 7 crashed with ARM Thread State:
r0: 0xffffffff r1: 0x00001100 r2: 0x2ffc850c r3: 0x00000000
r4: 0xbbadbeef r5: 0x00000000 r6: 0x0054b000 r7: 0x2ffc8b4c
r8: 0x0ca32800 r9: 0x3399fc2c r10: 0x2ffc8be4 r11: 0x2ffc8ebc
ip: 0x3ee8e270 sp: 0x2ffc8b40 lr: 0x35790fef pc: 0x32c7f4e2
cpsr: 0x60000030
Binary Images:
[cut cause of char limit]
I have no idea what happend, anyone an idea?
The problem is that you send messages to UI objects from a background thread, which is forbidden.
Thread 7 crashed with a stack trace into UIView's layout mechanism. The fact that thread 7 is in this code probably results from a setNeedsLayout or some other method being sent from this background thread.
I think web view finished loading and trying to reload view but view controller was poped and released,you need to add this in viewWillDisappear method:
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
if ([webView isLoading]) {
[webView stopLoading];
}
}
The project that I am on sees a similar exception for a WinTel based GWT App running on the WebKit. It has been determined that this particular problem only occurs when the WebKit runs out of memory.