The crash tools report a weird crash of my app.
It crashed at MDOSWebViewDelegate.
After listed all the symbols of binary with command nm -a myApp,
and still can't locate it from the crash stack.
I don't even know what features of these modules, it seems this module is from an System framework.
(mdDoRequest mdlExchange mdlRemoteExec)
Following is the crash stack.
crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x6e2e6483
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x37305f46 objc_msgSend + 5
1 MyApp 0x00d59ca3 mdDoRequest (MDOSWebViewDelegate.m:129)
2 MyApp 0x00d5dafb mdlExchange (lang.c:57)
3 MyApp 0x00d5df4f mdlRemoteExec (lang.c:110)
4 MyApp 0x00d592e5 forwardInvocation (MDOSProxy.m:213)
5 CoreFoundation 0x2943d62f ___forwarding___ + 354
6 CoreFoundation 0x2936f008 _CF_forwarding_prep_0 + 24
7 CoreFoundation 0x293f2e31 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
8 CoreFoundation 0x2934e6cd _CFXNotificationPost + 1784
9 Foundation 0x2a0a4dd9 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
10 UIKit 0x2cbbba65 -[UIApplication _handleApplicationDectivationWithScene:shouldForceExit:transitionContext:completion:] + 980
11 UIKit 0x2cbc2d8d __88-[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_invoke + 76
12 UIKit 0x2cbc2d39 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 360
13 UIKit 0x2cbb7ef3 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 478
14 FrontBoardServices 0x2fd83169 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke_2 + 40
15 FrontBoardServices 0x2fd920a9 __31-[FBSSerialQueue performAsync:]_block_invoke + 12
16 CoreFoundation 0x29400fe5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
17 CoreFoundation 0x294002a9 __CFRunLoopDoBlocks + 216
18 CoreFoundation 0x293fede3 __CFRunLoopRun + 1714
19 CoreFoundation 0x2934c3b1 CFRunLoopRunSpecific + 476
20 CoreFoundation 0x2934c1c3 CFRunLoopRunInMode + 106
21 GraphicsServices 0x30939201 GSEventRunModal + 136
22 UIKit 0x2c9b643d UIApplicationMain + 1440
23 MyApp 0x0003696f main (main.m:19)
Any suggestion?
Related
We have encountered the crash : -[WKSyntheticTapGestureRecognizer setState:] in our app.I am also attaching crash report for the reference:
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1540 objc_msgSend + 32
1 WebKit 0x4a6bd8 -[WKSyntheticTapGestureRecognizer setState:] + 100
2 UIKitCore 0x2bb320 -[UITapRecognizer tooSlow:] + 76
3 Foundation 0x365fc __NSFireDelayedPerform + 460
4 CoreFoundation 0xae318 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
5 CoreFoundation 0x32cf0 __CFRunLoopDoTimer + 1076
6 CoreFoundation 0x2d4ec __CFRunLoopDoTimers + 328
7 CoreFoundation 0xbd08 __CFRunLoopRun + 1944
8 CoreFoundation 0x1f468 CFRunLoopRunSpecific + 600
9 GraphicsServices 0x138c GSEventRunModal + 164
10 UIKitCore 0x51a088 -[UIApplication _run] + 1100
11 UIKitCore 0x298958 UIApplicationMain + 2092
12 Adoddle Field Plus 0x1238f0 main + 17 (main.mm:17)
13 ??? 0x10817daa4 (Missing)
KERN_INVALID_ADDRESS at 0x0000000000000010
Like WKSyntheticTapGesturestabilizer has been released and is still accessing its member variables
I am trying to fix a bug that I am not able to recreate, it doesn't happen to my device (iPhone 5s) or in any iOS simulator but happened only once in an iPhone 7 of my client. When the client deleted and downloaded again the app, the bug disappeared, so I am searching for a ghost now.
I was able to get the crash log file from the clients phone and symbolicate it. Here are some useful informations I extracted:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
In the un-symbolicated crash report: (check 2 and 3 line)
Last Exception Backtrace:
0 CoreFoundation 0x18c92efe0 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x18b390538 objc_exception_throw + 56
2 CoreFoundation 0x18c92ef28 +[NSException raise:format:] + 116
3 Foundation 0x18d324df0 -[NSString stringByAppendingString:] + 112
4 myApp 0x100119ea8 0x100004000 + 1138344
5 myApp 0x100119784 0x100004000 + 1136516
6 UIKit 0x192ad1204 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 380
7 UIKit 0x192cdd738 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3452
8 UIKit 0x192ce31e0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1684
9 UIKit 0x192cf7d18 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3151 + 48
10 UIKit 0x192ce0474 -[UIApplication workspaceDidEndTransaction:] + 168
11 FrontBoardServices 0x18e4d7884 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
12 FrontBoardServices 0x18e4d76f0 -[FBSSerialQueue _performNext] + 176
13 FrontBoardServices 0x18e4d7aa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
14 CoreFoundation 0x18c8dd42c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
15 CoreFoundation 0x18c8dcd9c __CFRunLoopDoSources0 + 540
16 CoreFoundation 0x18c8da9a8 __CFRunLoopRun + 744
17 CoreFoundation 0x18c80ada4 CFRunLoopRunSpecific + 424
18 UIKit 0x192aca384 -[UIApplication _run] + 652
19 UIKit 0x192ac5058 UIApplicationMain + 208
20 myApp 0x10014b8ac 0x100004000 + 1341612
21 libdyld.dylib 0x18b81959c start + 4
and in the symbolicated crash report:(check 4 and 5 line)
Last Exception Backtrace:
0 CoreFoundation 0x185f7fd38 0x185e3e000 + 1318200
1 libobjc.A.dylib 0x185494528 0x18548c000 + 34088
2 CoreFoundation 0x185f7fc80 0x185e3e000 + 1318016
3 Foundation 0x18686e760 0x186862000 + 51040
4 myApp 0x10469f928 -[AppDelegate initViewController] (AppDelegate.m:96)
5 myApp 0x10469f520 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:30)
6 UIKit 0x18f3ff050 0x18f380000 + 520272
7 UIKit 0x18f5f2898 0x18f380000 + 2566296
8 UIKit 0x18f5f76e4 0x18f380000 + 2586340
9 UIKit 0x18f885454 0x18f380000 + 5264468
10 UIKit 0x18fb551f0 0x18f380000 + 8212976
11 UIKit 0x18f8850b8 0x18f380000 + 5263544
12 UIKit 0x18f885928 0x18f380000 + 5265704
13 UIKit 0x18ffee6e8 0x18f380000 + 13035240
14 UIKit 0x18ffee58c 0x18f380000 + 13034892
15 UIKit 0x18fd6a9c0 0x18f380000 + 10398144
16 UIKit 0x18fefffc8 0x18f380000 + 12058568
17 UIKit 0x18fd6a870 0x18f380000 + 10397808
18 UIKit 0x18fb54850 0x18f380000 + 8210512
19 UIKit 0x18f5f5e28 0x18f380000 + 2580008
20 UIKit 0x18f9f96ec 0x18f380000 + 6788844
21 FrontBoardServices 0x188621768 0x188615000 + 51048
22 FrontBoardServices 0x18862a070 0x188615000 + 86128
23 libdispatch.dylib 0x185905048 0x185904000 + 4168
24 libdispatch.dylib 0x18590c6c8 0x185904000 + 34504
25 FrontBoardServices 0x188655a04 0x188615000 + 264708
26 FrontBoardServices 0x1886556a8 0x188615000 + 263848
27 FrontBoardServices 0x188655c44 0x188615000 + 265284
28 CoreFoundation 0x185f28358 0x185e3e000 + 959320
29 CoreFoundation 0x185f282d8 0x185e3e000 + 959192
30 CoreFoundation 0x185f27b60 0x185e3e000 + 957280
31 CoreFoundation 0x185f25738 0x185e3e000 + 948024
32 CoreFoundation 0x185e462d8 0x185e3e000 + 33496
33 GraphicsServices 0x187cd7f84 0x187ccd000 + 44932
34 UIKit 0x18f3f3880 0x18f380000 + 473216
35 myApp 0x1046bc124 main (main.m:14)
36 libdyld.dylib 0x18596a56c 0x185969000 + 5484
So at the third line of the un-symbolicated crash report it says:
0x18d324df0 -[NSString stringByAppendingString:] + 112
and at the 4th line of the symbolicated crash report:
0x10469f928 -[AppDelegate initViewController] (AppDelegate.m:96)
In my AppDelegate at the 96 line I have this code:
NSString *backColorString = [#"#" stringByAppendingString:[myModel sharedInstance].theme.BackColor];
So the only thing that can be wrong with this, if the problem is indeed here(?) is that the
[HotelStay sharedInstance].theme.BackColor
must return nil or "".
The thing is that I tried both and I couldn't be able to recreate the problem. Is there something I am missing or doing wrong here?
if you use stringByAppendingString on an NSString than you end up with leaks because the pointer associated with the initial NSString moves around, pointing to the new string created by the append, whereas with NSMutableString, your pointer always points to that mutable string. I guess it should be the issue but what I am thinking is according to Apple Documentation The string to append to the receiver. This value must not be nil if its nil it will Raise a NSInvalidArgumentException.
After I released a new version of my app using XCode8, this crash was reported in Fabric:
#0. Crashed: com.apple.main-thread
0 libdispatch.dylib 0x187c89834 dispatch_source_cancel + 4
1 Appname 0x1003d866c -[FIRAAlarm cancel] + 4298868332
2 Appname 0x1003d8318 -[FIRAAlarm runAfterDelay:withBlock:] + 4298867480
3 Appname 0x1003fc054 -[FIRASessionReporter rescheduleSessionStartTimer] + 4299014228
4 CoreFoundation 0x188d9622c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
5 CoreFoundation 0x188d95930 _CFXRegistrationPost + 400
6 CoreFoundation 0x188d956ac ___CFXNotificationPost_block_invoke + 60
7 CoreFoundation 0x188e04b9c -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1504
8 CoreFoundation 0x188cd7bf4 _CFXNotificationPost + 376
9 Foundation 0x1897de6bc -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
10 UIKit 0x18ecca284 <redacted> + 1212
11 UIKit 0x18eecdd20 <redacted> + 2744
12 UIKit 0x18eee2080 <redacted> + 48
13 UIKit 0x18eeca8c4 <redacted> + 168
14 FrontBoardServices 0x18a99d8bc <redacted> + 36
15 FrontBoardServices 0x18a99d728 <redacted> + 176
16 FrontBoardServices 0x18a99dad0 <redacted> + 56
17 CoreFoundation 0x188daa278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
18 CoreFoundation 0x188da9bc0 __CFRunLoopDoSources0 + 524
19 CoreFoundation 0x188da77c0 __CFRunLoopRun + 804
20 CoreFoundation 0x188cd6048 CFRunLoopRunSpecific + 444
21 UIKit 0x18ecb05dc <redacted> + 608
22 UIKit 0x18ecab360 UIApplicationMain + 208
23 Appname 0x1000f6724 main (main.m:15)
24 libdispatch.dylib 0x187cb85b8 (Missing)
The crash detail doesn't show any specific file, just this information:
Appname
#CrashNumber-[FIRAAlarm cancel]
Any ideas what this “FIRAAlarm” is?
This is a known Firebase issue and will be fixed in their next release:
https://groups.google.com/forum/#!topic/firebase-talk/W-gPv4tmXpw
I get the following crash log from Crashlytics for my app. My code do not call msgpack_zone_free or msgpack parse method at all and so I'm confused how that happened. I'm unable to reproduce this crash myself so I'm left to analyze the issue from the crash report itself. Any pointers to what I need to check will be very helpful.
This is not a case of low memory as I see free memory from Crashlytics.
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x0000000192953bd0 objc_msgSend + 16
1 CoreFoundation 0x00000001820d5228 CFRelease + 524
2 CoreFoundation 0x00000001821e62ac -[__NSArrayM removeAllObjects] + 284
3 MyApp 0x00000001004a69e0 msgpack_zone_free
4 MyApp 0x00000001004a4afc msgpack_zone_free
5 CoreFoundation 0x000000018219cae4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
6 CoreFoundation 0x00000001820db220 _CFXNotificationPost + 2060
7 Foundation 0x0000000182fdac60 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
8 UIKit 0x0000000186c32e98 -[UIApplication _handleApplicationDectivationWithScene:shouldForceExit:transitionContext:completion:] + 1132
9 UIKit 0x0000000186c3b370 __88-[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_invoke + 92
10 UIKit 0x0000000186c3b2f8 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 380
11 UIKit 0x0000000186c2ec2c -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 512
12 FrontBoardServices 0x000000018a45d62c __31-[FBSSerialQueue performAsync:]_block_invoke + 28
13 CoreFoundation 0x00000001821aea28 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
14 CoreFoundation 0x00000001821adb30 __CFRunLoopDoBlocks + 312
15 CoreFoundation 0x00000001821ac154 __CFRunLoopRun + 1756
16 CoreFoundation 0x00000001820d90a4 CFRunLoopRunSpecific + 396
17 GraphicsServices 0x000000018b2735a4 GSEventRunModal + 168
18 UIKit 0x0000000186a0aaa4 UIApplicationMain + 1488
19 MyApp 0x00000001000cce40 main (main.m:16)
20 libdyld.dylib 0x0000000192faea08 start + 4
Thanks.
I am able to symbolicate my crash logs in xcode 4.5 EXCEPT for the last line. Specifically line 29 of the 'Last Exception Backtrace' and line 15 in the 'Thread 0' area in the crash log doesn't show the object or method call when all the other lines do. My code is CoachMe1.
Any ideas as to why this would be ?
Here is the Symbolicated code:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3165929e __exceptionPreprocess + 158
1 libobjc.A.dylib 0x355af97a objc_exception_throw + 26
2 CoreFoundation 0x316591c0 +[NSException raise:format:] + 100
3 Foundation 0x34a9ece2 -[NSKeyedUnarchiver initForReadingWithData:] + 2402
4 CoachMe1 0x000047b6 -[CoachMe1ViewController viewWillAppear:] (CoachMe1ViewController.m:322)
5 UIKit 0x32b7531c -[UIViewController _setViewAppearState:isAnimating:] + 132
6 UIKit 0x32b817a0 -[UINavigationController _startTransition:fromViewController:toViewController:] + 536
7 UIKit 0x32b814ac -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
8 UIKit 0x32b6fb8e -[UINavigationController pushViewController:transition:forceImmediate:] + 854
9 UIKit 0x32b6f82e -[UINavigationController pushViewController:animated:] + 34
10 CoachMe1 0x000183da -[FrontPageViewController loadGameDashboard] (FrontPageViewController.m:38)
11 UIKit 0x32bf90a8 -[UIApplication sendAction:to:from:forEvent:] + 68
12 UIKit 0x32bf905a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
13 UIKit 0x32bf9038 -[UIControl sendAction:to:forEvent:] + 40
14 UIKit 0x32bf88ee -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498
15 UIKit 0x32bf8de4 -[UIControl touchesEnded:withEvent:] + 484
16 UIKit 0x32b215f4 -[UIWindow _sendTouchesForEvent:] + 520
17 UIKit 0x32b0e804 -[UIApplication sendEvent:] + 376
18 UIKit 0x32b0e11e _UIApplicationHandleEvent + 6150
19 GraphicsServices 0x3085459e _PurpleEventCallback + 586
20 GraphicsServices 0x308541ce PurpleEventCallback + 30
21 CoreFoundation 0x3162e16e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
22 CoreFoundation 0x3162e112 __CFRunLoopDoSource1 + 134
23 CoreFoundation 0x3162cf94 __CFRunLoopRun + 1380
24 CoreFoundation 0x3159feb8 CFRunLoopRunSpecific + 352
25 CoreFoundation 0x3159fd44 CFRunLoopRunInMode + 100
26 GraphicsServices 0x308532e6 GSEventRunModal + 70
27 UIKit 0x32b622fc UIApplicationMain + 1116
28 CoachMe1 0x0000257e main (main.m:14)
29 CoachMe1 0x00002538 0x1000 + 5432
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3934f350 __pthread_kill + 8
1 libsystem_c.dylib 0x33cb111e pthread_kill + 54
2 libsystem_c.dylib 0x33ced96e abort + 90
3 libc++abi.dylib 0x30803d4a abort_message + 70
4 libc++abi.dylib 0x30800ff4 _ZL17default_terminatev + 20
5 libobjc.A.dylib 0x355afa74 _ZL15_objc_terminatev + 144
6 libc++abi.dylib 0x30801078 _ZL19safe_handler_callerPFvvE + 76
7 libc++abi.dylib 0x30801110 std::terminate() + 16
8 libc++abi.dylib 0x30802594 __cxa_rethrow + 84
9 libobjc.A.dylib 0x355af9cc objc_exception_rethrow + 8
10 CoreFoundation 0x3159ff1c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x3159fd44 CFRunLoopRunInMode + 100
12 GraphicsServices 0x308532e6 GSEventRunModal + 70
13 UIKit 0x32b622fc UIApplicationMain + 1116
14 CoachMe1 0x0000257e main (main.m:14)
15 CoachMe1 0x00002538 0x1000 + 5432
Your app is crashing in loadGameDashboard function in FrontPageViewController.m class line 38.
Please check this function with a break point . you see where your app is crashing....