Recently I am trying to debug with the information provided by Crash Reports. So far I have been able to identify and fix some bugs but not this one.
As I read from the crash report, it's something wrong with UIDictationController, but my code did not call UIDictationController at all. The crash report is generated by PLCrashReporter.
It seems that the user is using an iPad Mini (WiFi) and running iOS 6.0.2.
Incident Identifier: [REMOVED]
CrashReporter Key: [REMOVED]
Hardware Model: iPad2,5
Process: MyApp [2849]
Path: [REMOVED]
Identifier: com.yourcompany.MyApp
Version: 1.1
Code Type: ARM
Parent Process: launchd [1]
Date/Time: 2013-01-26 02:11:01 +0000
OS Version: iPhone OS 6.0.2 (10A550)
Report Version: 104
Exception Type: SIGABRT
Exception Codes: #0 at 0x32255350
Crashed Thread: 0
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
Last Exception Backtrace:
0 CoreFoundation 0x3882e2a3 __exceptionPreprocess + 163
1 libobjc.A.dylib 0x30d8897f objc_exception_throw + 31
2 CoreFoundation 0x387788d9 -[__NSArrayM insertObject:atIndex:] + 769
3 UIKit 0x36ad24c3 -[UIDictationMeterView initWithFrame:] + 267
4 UIKit 0x36abe699 -[UIDictationView initWithFrame:] + 281
5 UIKit 0x36abdcd1 +[UIDictationView sharedInstance] + 145
6 UIKit 0x36aae7f5 -[UIDictationController setState:] + 149
7 UIKit 0x36aaef5f -[UIDictationController setupForDictationStart] + 199
8 UIKit 0x36aae5d7 -[UIDictationController startConnectionForReason:] + 51
9 UIKit 0x36aaf173 -[UIDictationController startDictationFromLayout] + 55
10 UIKit 0x36825c09 -[UIKeyboardLayoutStar touchUp:] + 5249
11 UIKit 0x3682472f -[UIKeyboardLayout touchesEnded:withEvent:] + 387
12 UIKit 0x3670c5f1 -[UIWindow _sendTouchesForEvent:] + 525
13 UIKit 0x366f9801 -[UIApplication sendEvent:] + 381
14 UIKit 0x366f911b _UIApplicationHandleEvent + 6155
15 GraphicsServices 0x3771e5a3 _PurpleEventCallback + 591
16 GraphicsServices 0x3771e1d3 PurpleEventCallback + 35
17 CoreFoundation 0x38803173 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 35
18 CoreFoundation 0x38803117 __CFRunLoopDoSource1 + 139
19 CoreFoundation 0x38801f99 __CFRunLoopRun + 1385
20 CoreFoundation 0x38774ebd CFRunLoopRunSpecific + 357
21 CoreFoundation 0x38774d49 CFRunLoopRunInMode + 105
22 GraphicsServices 0x3771d2eb GSEventRunModal + 75
23 UIKit 0x3674d2f9 UIApplicationMain + 1121
24 MyApp 0x000032e1 main (main.m:36)
25 MyApp 0x00003230 start + 40
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x30f10350 __pthread_kill + 8
1 libsystem_c.dylib 0x304f8973 abort + 95
2 MyApp 0x000e954f uncaught_exception_handler + 27
3 CoreFoundation 0x3882e57f __handleUncaughtException + 615
4 libobjc.A.dylib 0x30d88a65 _objc_terminate() + 129
5 libc++abi.dylib 0x3719807b safe_handler_caller(void (*)()) + 79
6 libc++abi.dylib 0x37198114 std::terminate() + 20
7 libc++abi.dylib 0x37199599 __cxa_current_exception_type + 1
8 libobjc.A.dylib 0x30d889d1 objc_exception_rethrow + 13
9 CoreFoundation 0x38774f21 CFRunLoopRunSpecific + 457
10 CoreFoundation 0x38774d49 CFRunLoopRunInMode + 105
11 GraphicsServices 0x3771d2eb GSEventRunModal + 75
12 UIKit 0x3674d2f9 UIApplicationMain + 1121
13 MyApp 0x000032e1 main (main.m:36)
Is there any way that I can do with this bug? Or, at least mitigating the issue? Thanks in advance.
the problem is that somewhere in your app you have a keyboard come up and with iOS version 6.0.1 and 6.0.2, apple enabled the dictation controller even if you didn't specify it to be enabled. Two solutions to fixing it: create a custom keyboard without it or implement dictation in your app.
My suggestion is to just let it be, only affects two outdate iOS versions and hopefully the crashes will go away as the users upgrade their devices
I have the keyboard coming up for a custom TextView, and when the user pushed the dictation button, said something, pushed finish, and then they tried to dismiss the keyboard, there would be a crash. Possible this is also what you're experiencing?
Related
I have couple of crashes on startup of app and there are no code changes made since it was last installed by Xcode. When I open device logs, Xcode is not fully symbolicating crash, particularly the place where it crashed. Why is it so and how do I get the fully symbolicated crash log? The crash is unfortunately not reproducible in direct debugging session.
Date/Time: 2018-12-01 12:30:38.3874 +0400
Launch Time: 2018-12-01 12:30:36.0854 +0400
OS Version: iPhone OS 12.1 (16B92)
Baseband Version: 2.01.07
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000101abe1a4
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [43684]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x0000000101abe1a4 0x1018cc000 + 2040228
1 libswiftCore.dylib 0x0000000101abe1a4 0x1018cc000 + 2040228
2 libswiftCore.dylib 0x0000000101925db8 0x1018cc000 + 368056
3 MyApp-Swift 0x0000000100e69880 0x100d64000 + 1071232
4 MyApp-Swift 0x0000000100dfbd00 0x100d64000 + 621824
5 MyApp-Swift 0x0000000100dfbdb8 0x100d64000 + 622008
6 UIKitCore 0x00000001c29da768 -[UIApplication sendAction:to:from:forEvent:] + 96
7 UIKitCore 0x00000001c24686d0 -[UIControl sendAction:to:forEvent:] + 80
8 UIKitCore 0x00000001c24689f0 -[UIControl _sendActionsForEvents:withEvent:] + 440
9 UIKitCore 0x00000001c24679f0 -[UIControl touchesEnded:withEvent:] + 568
10 UIKitCore 0x00000001c2a1418c -[UIWindow _sendTouchesForEvent:] + 2472
11 UIKitCore 0x00000001c2a153f0 -[UIWindow sendEvent:] + 3156
12 UIKitCore 0x00000001c29f46ec -[UIApplication sendEvent:] + 340
13 UIKitCore 0x00000001c2ac057c __dispatchPreprocessedEventFromEventQueue + 1620
14 UIKitCore 0x00000001c2ac2f74 __handleEventQueueInternal + 4740
15 UIKitCore 0x00000001c2abba64 __handleHIDEventFetcherDrain + 152
16 CoreFoundation 0x00000001958ac1cc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
17 CoreFoundation 0x00000001958ac14c __CFRunLoopDoSource0 + 88
18 CoreFoundation 0x00000001958aba30 __CFRunLoopDoSources0 + 176
19 CoreFoundation 0x00000001958a68fc __CFRunLoopRun + 1040
20 CoreFoundation 0x00000001958a61cc CFRunLoopRunSpecific + 436
21 GraphicsServices 0x0000000197b1d584 GSEventRunModal + 100
22 UIKitCore 0x00000001c29d9054 UIApplicationMain + 212
23 MyApp-Swift 0x0000000100f48dec 0x100d64000 + 1986028
24 libdyld.dylib 0x0000000195366bb4 start + 4
I'm unable to detect an issue by viewing the below crash log as I'm not an expert in it.
Symbolication is applied but it seems point 24 below didn't get symbolicated. I don't know why.
Any help would be greatly appreciated.
Incident Identifier: 64AA5ACD-41A0-462C-8169-2689E4C9DFF6
CrashReporter Key: e3e88a5898a533649d98f91fa4931fa1d7c125f9
Hardware Model: iPhone5,3
Process: yanachat [3315]
Path: /private/var/mobile/Containers/Bundle/Application/F46E2E69-F521-4FDF-A1BF-FDEAAFF50C8D/yanachat.app/yanachat
Identifier: com.soccerManiac.SSChat
Version: 1 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2015-05-28 16:57:52.245 +0500
Launch Time: 2015-05-28 16:38:37.031 +0500
OS Version: iOS 8.2 (12D508)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x25f2c45a __exceptionPreprocess + 122
1 libobjc.A.dylib 0x33e02c86 objc_exception_throw + 34
2 CoreData 0x25c56b48 _PFManagedObject_coerceValueForKeyWithDescription + 2808
3 CoreData 0x25c55408 _sharedIMPL_setvfk_core + 144
4 CoreData 0x25c744c6 _PF_Handler_Public_SetProperty + 82
5 CoreData 0x25c792ce -[NSManagedObject setValue:forKey:] + 138
6 yanachat 0x002116a8 0xe1000 + 1246888
7 yanachat 0x001e5266 0xe1000 + 1065574
8 UIKit 0x29479e7a -[UIApplication sendAction:to:from:forEvent:] + 66
9 UIKit 0x29479e1c -[UIControl sendAction:to:forEvent:] + 40
10 UIKit 0x29464c3e -[UIControl _sendActionsForEvents:withEvent:] + 578
11 UIKit 0x29479888 -[UIControl touchesEnded:withEvent:] + 584
12 UIKit 0x29479562 -[UIWindow _sendTouchesForEvent:] + 518
13 UIKit 0x29472e2c -[UIWindow sendEvent:] + 540
14 UIKit 0x29449754 -[UIApplication sendEvent:] + 192
15 UIKit 0x296bd2f4 _UIApplicationHandleEventFromQueueEvent + 14164
16 UIKit 0x294481a4 _UIApplicationHandleEventQueue + 1348
17 CoreFoundation 0x25ef2fba __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 10
18 CoreFoundation 0x25ef23ca __CFRunLoopDoSources0 + 214
19 CoreFoundation 0x25ef0a30 __CFRunLoopRun + 768
20 CoreFoundation 0x25e3e3ac CFRunLoopRunSpecific + 472
21 CoreFoundation 0x25e3e1be CFRunLoopRunInMode + 102
22 GraphicsServices 0x2d46b1fc GSEventRunModal + 132
23 UIKit 0x294a8438 UIApplicationMain + 1436
24 yanachat 0x0020b02a 0xe1000 + 1220650
25 libdyld.dylib 0x3438eaaa tlv_initializer + 2
This contains essential information for developers who wish to receive and process crash reports for their iOS applications.
Report Types
Application crash
Low memory
User force-quit
Watchdog timeout
Symbolication
Symbolication
Acquiring Crash Reports
The Xcode Organizer
Understand more detail for cash log with example refer here.
The app is getting crashed while using dictation in UITextView .
While using dictation feature in keyboard the text is getting auto saved and the application getting crashed due to the same reason.
Normal Scenario:
While user uses keyboard to enter the text through dictation mode, the text will be auto saved after 2 seconds.
Current scenario
While user try long speech texts through dictation mode , the text is getting autosaved and meanwhile the application itself is getting crashed.
Please find the stack trace
Exception Type: SIGABRT
Exception Codes: #0 at 0x371bbdfc
Crashed Thread: 0
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'We were never set up properly to stream in this document.'
Last Exception Backtrace:
0 CoreFoundation 0x294205f7 __exceptionPreprocess + 127
1 libobjc.A.dylib 0x36b5ac77 objc_exception_throw + 36
2 CoreFoundation 0x294204cd +[NSException raise:format:arguments:] + 102
3 Foundation 0x2a0f4a49 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 90
4 UIKit 0x2ce48c2b -[UIDictationStreamingOperations willEndEditingInInputDelegate:] + 136
5 UIKit 0x2c8ecf4f +[UIDictationController keyboardWillChangeFromDelegate:toDelegate:] + 140
6 UIKit 0x2c8ec717 -[UIKeyboardImpl setDelegate:force:] + 320
7 UIKit 0x2c8e64d1 -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 1118
8 UIKit 0x2c9b8631 -[UIResponder _finishResignFirstResponder] + 158
9 UIKit 0x2c9634f5 -[UIResponder resignFirstResponder] + 274
10 UIKit 0x2c96327f -[UITextView resignFirstResponder] + 76
11 Classroom 0x00372f2f -[ComposerViewController autoSaveDraft] (ComposerViewController.m:1800)
12 Foundation 0x2a1349e5 __NSFireTimer + 62
13 CoreFoundation 0x293e6f07 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
14 CoreFoundation 0x293e6a89 __CFRunLoopDoTimer + 654
15 CoreFoundation 0x293e4cf3 __CFRunLoopRun + 1416
16 CoreFoundation 0x29331b31 CFRunLoopRunSpecific + 474
17 CoreFoundation 0x29331943 CFRunLoopRunInMode + 104
18 GraphicsServices 0x306e8051 GSEventRunModal + 134
19 UIKit 0x2c923f21 UIApplicationMain + 1438
20 Classroom 0x000e7493 main (main.m:13)
21 libdyld.dylib 0x370f6aaf start + 0
I got the following crash report when trying to add options to a element using jQuery 1.11 and native javascript. Any ideas? Does anyone know anything about this crash?
Date/Time: 2014-11-26 11:45:28.852 -0600
Launch Time: 2014-11-26 11:40:10.181 -0600
OS Version: iOS 8.1 (12B410)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2bb3bc1a exceptionPreprocess + 122
1 libobjc.A.dylib 0x39720c86 objc_exception_throw + 34
2 CoreFoundation 0x2bb3bb60 +[NSException raise:format:] + 108
3 UIKit 0x2f2023a2 -[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:] + 442
4 UIKit 0x2f2021be -[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:] + 34
5 WebKit 0x2f979aaa -[WKSelectTableViewController viewWillAppear:] + 146
6 UIKit 0x2f010766 -[UIViewController setViewAppearState:isAnimating:] + 434
7 UIKit 0x2f2c6dc8 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 580
8 UIKit 0x2f074c48 _applyBlockToCFArrayCopiedToStack + 304
9 UIKit 0x2eff0aa6 _afterCACommitHandler + 454
10 CoreFoundation 0x2bb023b0 _CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 16
11 CoreFoundation 0x2baffa6e __CFRunLoopDoObservers + 274
12 CoreFoundation 0x2baffe76 __CFRunLoopRun + 910
13 CoreFoundation 0x2ba4e20c CFRunLoopRunSpecific + 472
14 CoreFoundation 0x2ba4e01e CFRunLoopRunInMode + 102
15 GraphicsServices 0x32e2d0a4 GSEventRunModal + 132
16 UIKit 0x2f05a1cc UIApplicationMain + 1436
17 MobileSafari 0x0007a944 0x72000 + 35140
18 libdyld.dylib 0x39ca0aaa tlv_initializer + 2
iPad, iOS 8.1
This is one crash log I've downloaded from iTunesConnect website.
Incident Identifier: 20D5CB0F-58BE-41E5-B3F6-9BC8091E518C
Hardware Model: iPhone4,1
Process: iPill [2006]
Path: /var/mobile/Applications/4567191D-1013-40F3-A02A-0B3C2552FCD3/iPill.app/iPill
Identifier: iPill
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-07-12 20:59:23.716 +0200
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3558688f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x3792d259 objc_exception_throw + 33
2 CoreFoundation 0x354cf9db -[__NSArrayM objectAtIndex:] + 271
3 iPill 0x0008225b -[ProssimeDosi tableView:cellForRowAtIndexPath:] (ProssimeDosi.m:314)
4 UIKit 0x3301aefb -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 547
5 UIKit 0x33019fd9 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1077
6 UIKit 0x33019763 -[UITableView layoutSubviews] + 207
7 UIKit 0x32fbdf37 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 183
8 CoreFoundation 0x354e51fb -[NSObject performSelector:withObject:] + 43
9 QuartzCore 0x323b5aa5 -[CALayer layoutSublayers] + 217
10 QuartzCore 0x323b56bd CA::Layer::layout_if_needed(CA::Transaction*) + 217
11 QuartzCore 0x323b9843 CA::Context::commit_transaction(CA::Transaction*) + 227
12 QuartzCore 0x323b957f CA::Transaction::commit() + 315
13 QuartzCore 0x323b14b9 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 57
14 CoreFoundation 0x3555ab1b __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 19
15 CoreFoundation 0x35558d57 __CFRunLoopDoObservers + 259
16 CoreFoundation 0x355590b1 __CFRunLoopRun + 761
17 CoreFoundation 0x354dc4a5 CFRunLoopRunSpecific + 301
18 CoreFoundation 0x354dc36d CFRunLoopRunInMode + 105
19 GraphicsServices 0x37178439 GSEventRunModal + 137
20 UIKit 0x32fe8cd5 UIApplicationMain + 1081
21 iPill 0x000799b7 main (main.m:16)
22 iPill 0x0007996c 0x78000 + 6508
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x35e3c32c __pthread_kill + 8
1 libsystem_c.dylib 0x32988208 pthread_kill + 48
2 libsystem_c.dylib 0x32981298 abort + 88
3 libc++abi.dylib 0x3593ef64 abort_message + 40
4 libc++abi.dylib 0x3593c346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x3792d350 _objc_terminate + 140
6 libc++abi.dylib 0x3593c3be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3593c44a std::terminate() + 14
8 libc++abi.dylib 0x3593d81e __cxa_rethrow + 82
9 libobjc.A.dylib 0x3792d2a2 objc_exception_rethrow + 6
10 CoreFoundation 0x354dc506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x354dc366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x37178432 GSEventRunModal + 130
13 UIKit 0x32fe8cce UIApplicationMain + 1074
14 iPill 0x000799b0 main (main.m:16)
15 iPill 0x00079964 0x78000 + 6500
I've pasted only thread 0 because it seems it is the one which crashed.
This is all new to me and I have no idea how to interpret this log and solve the problem.
I've tested my App on my iPhones 4 and 4s and on a 3GS of a friend of mine and we didn't see any crash.
Now I'm getting 1 star reviews from some people saying iPill is crashing a lot.
Any help will be really appreciated.
Thanks.
I'd say to start in your tables cellForRowAtIndexpath method.
I'd hazard a guess that there's an issue with your data model and it's calling data from an array that is empty.
Just from this crashlog it looks as if you're having an out-of-bounds problem triggered by line 314 of ProssimeDosi.m due to something requesting more data than is available.
See the accepted answer here for a more elaborate explanation: Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray objectAtIndex:]: index 1 beyond bounds [0 .. 0]'