AGXGLDriver 0x00000001a4cbb228 glrKillClient + 464 (agxu_kill_client.cpp:175) crash - swift

Recently, I get these crashes from users. I cannot figure out the root cause, please help. I'm using WebView (UIWebView for iOS 8 and WkWebview for iOS 9 and above), some javascript function will be called in runtime. I think this can be related to the crash but I cannot figure it out.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000001
VM Region Info: 0x1 is not in any region. Bytes before following region: 4304863231
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 0000000100970000-0000000100974000 [ 16K] r-x/r-x SM=COW ....app/test123456]
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread: 3
Thread 3 name:
Thread 3 Crashed:
0 libGPUSupportMercury.dylib 0x00000001a0a98ee8 gpus_ReturnNotPermittedKillClient + 12 (gpui_client_io.c:77)
1 AGXGLDriver 0x00000001a4cbb228 glrKillClient + 464 (agxu_kill_client.cpp:175)
2 libGPUSupportMercury.dylib 0x00000001a0a99ecc gpusSubmitDataBuffers + 176 (gpui_context.c:0)
3 AGXGLDriver 0x00000001a4cbc724 SubmitPackets(AGXContextRec*) + 296 (agxu_gl_command.cpp:93)
4 WebCore 0x000000018d96435c WebCore::GraphicsContext3D::reshape(int, int) + 552 (GraphicsContext3DOpenGLCommon.cpp:376)
5 WebCore 0x000000018e5f2198 WebCore::WebGLRenderingContextBase::initializeNewContext() + 888 (WebGLRenderingContextBase.cpp:598)
6 WebCore 0x000000018e5f1ba4 WebCore::WebGLRenderingContextBase::WebGLRenderingContextBase(WebCore::HTMLCanvasElement&, WTF::Ref<WebCore::GraphicsContext3D>&&, WebCore::GraphicsContext3DAttributes) + 544 (WebGLRenderingContextBase.cpp:497)
7 WebCore 0x000000018e5ec8dc WebCore::WebGLRenderingContext::WebGLRenderingContext(WebCore::HTMLCanvasElement&, WTF::Ref<WebCore::GraphicsContext3D>&&, WebCore::GraphicsContext3DAttributes) + 44 (WebGLRenderingContext.cpp:74)
8 WebCore 0x000000018e5f1160 WebCore::WebGLRenderingContextBase::create(WebCore::HTMLCanvasElement&, WebCore::GraphicsContext3DAttributes&, WTF::String const&) + 956 (memory:3006)
9 WebCore 0x000000018d9a3b28 WebCore::HTMLCanvasElement::getContextWebGL(WTF::String const&, WebCore::GraphicsContext3DAttributes&&) + 152 (HTMLCanvasElement.cpp:326)
10 WebCore 0x000000018dd1a740 WebCore::JSHTMLCanvasElement::getContext(JSC::ExecState&) + 312 (JSHTMLCanvasElementCustom.cpp:71)
11 WebCore 0x000000018d531fc0 WebCore::jsHTMLCanvasElementPrototypeFunctionGetContext(JSC::ExecState*) + 168 (JSHTMLCanvasElement.cpp:258)
12 JavaScriptCore 0x000000018c748eb4 llint_entry + 29668
13 JavaScriptCore 0x000000018c748454 llint_entry + 27012
14 JavaScriptCore 0x000000018c748454 llint_entry + 27012
15 JavaScriptCore 0x000000018c748454 llint_entry + 27012
16 JavaScriptCore 0x000000018c748454 llint_entry + 27012
17 JavaScriptCore 0x000000018c741900 vmEntryToJavaScript + 272
18 JavaScriptCore 0x000000018c620170 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 184 (JITCode.cpp:81)
19 JavaScriptCore 0x000000018c005294 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 400 (Interpreter.cpp:971)
20 JavaScriptCore 0x000000018c658a9c JSC::boundThisNoArgsFunctionCall(JSC::ExecState*) + 476 (JSBoundFunction.cpp:54)
21 JavaScriptCore 0x000000018c741a48 vmEntryToNative + 280
22 JavaScriptCore 0x000000018c0052dc JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 472 (Interpreter.cpp:973)
23 JavaScriptCore 0x000000018c2693fc JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 180 (CallData.cpp:40)
24 WebCore 0x000000018e329308 WebCore::ScheduledAction::executeFunctionInContext(JSC::JSGlobalObject*, JSC::JSValue, WebCore::ScriptExecutionContext&) + 528 (JSMainThreadExecState.h:72)
25 WebCore 0x000000018e328f44 WebCore::ScheduledAction::execute(WebCore::Document&) + 140 (ScheduledAction.cpp:126)
26 WebCore 0x000000018d408260 WebCore::DOMTimer::fired() + 728 (DOMTimer.cpp:368)
27 WebCore 0x000000018d407e18 WebCore::ThreadTimers::sharedTimerFiredInternal() + 172 (ThreadTimers.cpp:118)
28 WebCore 0x000000018d407d58 WebCore::timerFired(__CFRunLoopTimer*, void*) + 28 (MainThreadSharedTimerCF.cpp:74)
29 CoreFoundation 0x00000001855a7dc0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28 (CFRunLoop.c:1832)
30 CoreFoundation 0x00000001855a7ae4 __CFRunLoopDoTimer + 864 (CFRunLoop.c:2415)
31 CoreFoundation 0x00000001855a72e4 __CFRunLoopDoTimers + 248 (CFRunLoop.c:2562)
32 CoreFoundation 0x00000001855a4ecc __CFRunLoopRun + 1928 (CFRunLoop.c:3083)
33 CoreFoundation 0x00000001854c4c58 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
34 WebCore 0x000000018d43984c RunWebThread(void*) + 560 (WebCoreThread.mm:690)
35 libsystem_pthread.dylib 0x00000001852282b4 _pthread_body + 308 (pthread.c:740)
36 libsystem_pthread.dylib 0x0000000185228180 _pthread_start + 312 (pthread.c:799)
37 libsystem_pthread.dylib 0x0000000185226b74 thread_start + 4
Thank you very much.

Related

NSInvalidArgumentException', reason: '-[__SwiftValue set]

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

Invalid address

My app is crashing a lot lately and it's throwing this as an error:
NSOperationQueue 0x2806fd260 (QOS: UNSPECIFIED) EXC_BAD_ACCESS
KERN_INVALID_ADDRESS 0x0000000000000000.
I can't find the call that causes this problem. Can someone help me solve this problem please?
This is the crash stacktrace:
0 AlamofireNetworkLogger 0x10203c7b4 (Missing)
1 AlamofireNetworkLogger 0x10203d910 (Missing)
2 CoreFoundation 0x1829715bc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
3 CoreFoundation 0x182971588 ___CFXRegistrationPost_block_invoke + 64
4 CoreFoundation 0x182970a7c _CFXRegistrationPost + 392
5 CoreFoundation 0x182970728 ___CFXNotificationPost_block_invoke + 96
6 CoreFoundation 0x1828ea524 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1496
7 CoreFoundation 0x1829701d8 _CFXNotificationPost + 696
8 Foundation 0x183358814 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
9 Alamofire 0x101fd7a84 closure #1 in SessionDelegate.urlSession(_:task:didCompleteWithError:) (SessionDelegate.swift:451)
10 Alamofire 0x101fd7460 SessionDelegate.urlSession(_:task:didCompleteWithError:) (SessionDelegate.swift:495)
11 Alamofire 0x101fd83c0 #objc SessionDelegate.urlSession(_:task:didCompleteWithError:) (<compiler-generated>)
12 myApp 0x10157e9d4 __InstrumentURLSessionTaskDidCompleteWithError_block_invoke + 4311443924
13 CFNetwork 0x183183420 __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke.182 + 252
14 Foundation 0x183464f68 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
15 Foundation 0x183371420 -[NSBlockOperation main] + 72
16 Foundation 0x183370908 -[__NSOperationInternal _start:] + 740
17 Foundation 0x183466cec __NSOQSchedule_f + 272
18 libdispatch.dylib 0x182440a38 _dispatch_call_block_and_release + 24
19 libdispatch.dylib 0x1824417d4 _dispatch_client_callout + 16
20 libdispatch.dylib 0x1823e6018 _dispatch_continuation_pop$VARIANT$mp + 412
21 libdispatch.dylib 0x1823e56dc _dispatch_async_redirect_invoke + 600
22 libdispatch.dylib 0x1823f202c _dispatch_root_queue_drain + 372
23 libdispatch.dylib 0x1823f28d0 _dispatch_worker_thread2 + 128
24 libsystem_pthread.dylib 0x1826211b4 _pthread_wqthread + 464
25 libsystem_pthread.dylib 0x182623cd4 start_wqthread + 4

SecTrustCreateWithCertificates EXC_BAD_ACCESS crash

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.

iOS Xcode App crashes after release to App Store but not when testing

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

UITextField (sometimes) crashes the app while typing

I am facing a problem with UITextField. It crashing the app (sometimes, not all the time) when I type in the UITextField. I suspect that this could be a memory issue as this happens only when I use the app continuously for 15 min. I hope I am correctly doing the memory management. And the app crashes particularly when I type something in the text field, not when doing some other action in the app. I am not sure what is causing the problem.
I've googled and found discussions about some related crashes with UITextField, but they didn't help my problem.
This is my crash log.
0 libobjc.A.dylib 0x3260a5b0 objc_msgSend + 16
1 CoreFoundation 0x32d8e034 _CFXNotificationPost + 1424
2 Foundation 0x37d93d8c -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
3 Foundation 0x37d9784e -[NSNotificationCenter postNotificationName:object:] + 26
4 UIKit 0x35a9d268 -[UITextField fieldEditorDidChange:] + 284
5 UIKit 0x35a9cac0 -[UIFieldEditor webViewDidChange:] + 76
6 CoreFoundation 0x32d8e034 _CFXNotificationPost + 1424
7 Foundation 0x37d93d8c -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
8 WebCore 0x33bee1e0 WebThreadPostNotification + 64
9 WebCore 0x33dc0d66 WebCore::Editor::appliedEditing(WTF::PassRefPtr<WebCore::CompositeEditCommand>) + 234
10 WebCore 0x33dc2efe WebCore::TypingCommand::insertTextRunWithoutNewlines(WTF::String const&, bool) + 130
11 WebCore 0x33dc2e18 WebCore::TypingCommandLineOperation::operator()(unsigned long, unsigned long, bool) const + 44
12 WebCore 0x33dc2cfa WebCore::TypingCommand::doApply() + 150
13 WebCore 0x33db84da WebCore::CompositeEditCommand::apply() + 118
14 WebCore 0x33dc2c38 WebCore::TextInsertionBaseCommand::applyTextInsertionCommand(WebCore::Frame*, WTF::PassRefPtr<WebCore::TextInsertionBaseCommand>, WebCore::VisibleSelection const&, WebCore::VisibleSelection const&) + 124
15 WebCore 0x33dc294a WebCore::TypingCommand::insertText(WebCore::Document*, WTF::String const&, WebCore::VisibleSelection const&, unsigned int, WebCore::TypingCommand::TextCompositionType) + 438
16 WebCore 0x33dc23da WebCore::Editor::insertTextWithoutSendingTextEvent(WTF::String const&, bool, WebCore::TextEvent*) + 382
17 WebCore 0x33dc2232 WebCore::Editor::handleTextEvent(WebCore::TextEvent*) + 274
18 WebCore 0x33dc2110 WebCore::EventHandler::defaultTextInputEventHandler(WebCore::TextEvent*) + 12
19 WebCore 0x33b8b7b8 WebCore::Node::defaultEventHandler(WebCore::Event*) + 244
20 WebCore 0x33b8b132 WebCore::EventDispatcher::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 894
21 WebCore 0x33b8ad8a WebCore::EventDispatchMediator::dispatchEvent(WebCore::EventDispatcher*) const + 26
22 WebCore 0x33b8ad4e WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, WTF::PassRefPtr<WebCore::EventDispatchMediator>) + 94
23 WebCore 0x33b8ac7e WebCore::Node::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 30
24 WebCore 0x33d42d14 WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr<WebCore::Event>, int&) + 68
25 WebCore 0x33dc1f26 WebCore::EventHandler::handleTextInputEvent(WTF::String const&, WebCore::Event*, WebCore::TextEventInputType) + 198
26 WebCore 0x33dc1e58 WebCore::Editor::insertText(WTF::String const&, WebCore::Event*) + 12
27 WebKit 0x3526a684 -[WebHTMLView(WebNSTextInputSupport) insertText:] + 304
28 WebCore 0x33db7206 -[WAKResponder tryToPerform:with:] + 58
29 WebKit 0x352905ea -[WebView(WebViewEditingActions) _performResponderOperation:with:] + 98
30 UIKit 0x35ad803c -[UIWebDocumentView insertText:] + 40
31 UIKit 0x35ad7ff4 -[UIKeyboardImpl insertText:] + 76
32 UIKit 0x35aa514c -[UIKeyboardImpl addInputString:fromVariantKey:] + 2816
33 UIKit 0x35aa3044 -[UIKeyboardImpl handleKeyEvent:] + 1636
34 UIKit 0x35aa28b2 -[UIKeyboardLayoutStar sendStringAction:forKey:isPopupVariant:] + 482
35 UIKit 0x35aa13a8 -[UIKeyboardLayoutStar touchUp:] + 3096
36 UIKit 0x35aa0732 -[UIKeyboardLayout touchesEnded:withEvent:] + 382
37 UIKit 0x359885f4 -[UIWindow _sendTouchesForEvent:] + 520
38 UIKit 0x35975804 -[UIApplication sendEvent:] + 376
39 UIKit 0x3597511e _UIApplicationHandleEvent + 6150
40 GraphicsServices 0x33aed5a0 _PurpleEventCallback + 588
41 CoreFoundation 0x32e12680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
42 CoreFoundation 0x32e11ee4 __CFRunLoopDoSources0 + 208
43 CoreFoundation 0x32e10cb2 __CFRunLoopRun + 642
44 CoreFoundation 0x32d83eb8 CFRunLoopRunSpecific + 352
45 CoreFoundation 0x32d83d44 CFRunLoopRunInMode + 100
46 GraphicsServices 0x33aec2e6 GSEventRunModal + 70
47 UIKit 0x359c92fc UIApplicationMain + 1116
48 MyApp 0x00087578 0x1000 + 550264
49 MyApp 0x000030f4 0x1000 + 8436
Any help?
Thanks.
Edit: I have several text fields, in different view controllers, in my app. The app crashes randomly no matter which text text field I am typing in. And it crashes only when I type in any of the text fields. I feel that there is some other issue with UITextField.
Any ideas?
Judging by the crash log, are you hooking up some notification observers for your UITextField(s), right?
Are you cleaning up (i.e. removing the notification observers) afterwards?
In any case it is good practice to clean up afterwards.
Seems like a leak, you are sending a objc msg to some instance that doesnot conforms to the passed message.
Check whether all the delegates are assigned correctly and messaged are send to alive objects