Weird crash on iOS using Firebase Crashlytics - ios

Firebase Crashlytics shows a weird crash on iOS app, I can't understand what causing it:
Crashed: com.apple.main-thread
0 LogoQuizAC 0x10047f6a0 _hidden#18_ + 135 (__hidden#957_:135)
1 LogoQuizAC 0x1004771f4 _hidden#17_ + 96 (__hidden#454_:96)
2 LogoQuizAC 0x100477328 _hidden#20_ + 4304712488 (__hidden#456_:4304712488)
3 Foundation 0x19b094b20 __NSFireTimer + 68
4 CoreFoundation 0x199c79fa0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
5 CoreFoundation 0x199c79ba0 __CFRunLoopDoTimer + 1064
6 CoreFoundation 0x199c78ffc __CFRunLoopDoTimers + 328
7 CoreFoundation 0x199c72ee4 __CFRunLoopRun + 1936
8 CoreFoundation 0x199c7221c CFRunLoopRunSpecific + 600
9 GraphicsServices 0x1b183e784 GSEventRunModal + 164
10 UIKitCore 0x19c6b2ee8 -[UIApplication _run] + 1072
11 UIKitCore 0x19c6b875c UIApplicationMain + 168
12 LogoQuizAC 0x1002b503c main + 20 (RLockedCell.swift:20)
13 libdyld.dylib 0x1999326b0 start + 4
How can I figure it out? any strategy of solving this issue?

Related

-[WKSyntheticTapGestureRecognizer setState:] crash

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

How to fix WebKit crash on objective-c

I try to fix an error on firebase.
My sources are based on objective-c, and "webkit" is a problem in my code
I try and try to find what is cause of it, but I can't. Because these errors appears in a different places but same error.
stack trace : com.apple.main-thread
**EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000028**
keyboard_arrow_up
arrow_right 0
WebKit
WebKit::ProcessThrottler::setAssertionType(WebKit::ProcessAssertionType) + 544
I know it has only few clues for finding. Sorry.
My codes have a lot of request datas to Server and response from Server on mainthread.
I expect it occurs this problem but I'm not sure.
Thanks.
full call stack
Crashed: com.apple.main-thread
0 WebKit 0x199361fcc WebKit::ProcessThrottler::setAssertionType(WebKit::ProcessAssertionType) + 544
1 WebKit 0x199361fb4 WebKit::ProcessThrottler::setAssertionType(WebKit::ProcessAssertionType) + 520
2 WebKit 0x199362484 WebKit::ProcessThrottler::sendPrepareToSuspendIPC(WebKit::IsSuspensionImminent) + 596
3 WebKit 0x199367620 WTF::Detail::CallableWrapper<WebKit::ProcessThrottler::setAssertionType(WebKit::ProcessAssertionType)::$_1, void>::call() + 144
4 WebKit 0x199435e40 -[WKProcessAssertionBackgroundTaskManager _notifyAssertionsOfImminentSuspension] + 436
5 WebKit 0x1994364b0 -[WKProcessAssertionBackgroundTaskManager _handleBackgroundTaskExpirationOnMainThread] + 312
6 JavaScriptCore 0x197034278 WTF::Detail::CallableWrapper<WTF::callOnMainAndWait(WTF::Function<void ()>&&, WTF::MainStyle)::$_0, void>::call() + 48
7 JavaScriptCore 0x197049324 WTF::RunLoop::performWork() + 484
8 JavaScriptCore 0x197049f24 WTF::RunLoop::performWork(void*) + 36
9 CoreFoundation 0x18cfdb81c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
10 CoreFoundation 0x18cfdb718 __CFRunLoopDoSource0 + 208
11 CoreFoundation 0x18cfdaa28 __CFRunLoopDoSources0 + 268
12 CoreFoundation 0x18cfd4d20 __CFRunLoopRun + 824
13 CoreFoundation 0x18cfd44bc CFRunLoopRunSpecific + 600
14 GraphicsServices 0x1a3ae6820 GSEventRunModal + 164
15 UIKitCore 0x18f981164 -[UIApplication _run] + 1072
16 UIKitCore 0x18f986840 UIApplicationMain + 168
17 MyApp 0x10235f3d0 main + 29 (main.m:29)
18 libdyld.dylib 0x18cc9be40 start + 4

get a probeGC crash in Fabric Crashlytics

This crash is happening only on iOS 13.3.1 & 13.4.0
This crash is happening randomly and is a real deterrent to my customers.
I have update fabric library to lastest version (1.10.2).
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1947be090 objc_msgSend + 16
1 Foundation 0x194e564f0 probeGC + 120
2 Foundation 0x194d6cd64 -[NSConcreteMapTable rehashAround:] + 204
3 Foundation 0x194d6cc68 -[NSConcreteMapTable removeObjectForKey:] + 248
4 UIKitCore 0x198fbd484 _UIAnalyticsGatherMultitouchAnalytics + 632
5 UIKitCore 0x198b38a10 -[UIApplication sendEvent:] + 204
6 UIKitCore 0x198bb0c20 __dispatchPreprocessedEventFromEventQueue + 5880
7 UIKitCore 0x198bb317c __handleEventQueueInternal + 4924
8 UIKitCore 0x198babff0 __handleHIDEventFetcherDrain + 108
9 CoreFoundation 0x194a18a00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
10 CoreFoundation 0x194a18958 __CFRunLoopDoSource0 + 80
11 CoreFoundation 0x194a180f0 __CFRunLoopDoSources0 + 180
12 CoreFoundation 0x194a1323c __CFRunLoopRun + 1080
13 CoreFoundation 0x194a12adc CFRunLoopRunSpecific + 464
14 GraphicsServices 0x19e9b3328 GSEventRunModal + 104
15 UIKitCore 0x198b2063c UIApplicationMain + 1936
16 xxxxxxxxxxxxxxx 0x1029863dc main + 17 (main.m:17)
17 libdyld.dylib 0x19489c360 start + 4
probably you can get some information here:
https://forums.developer.apple.com/thread/130095

How to understand IOS trace logs

How to understand a trace from an IOS application
top to bottom (or) bottom to top
0 libobjc.A.dylib 0x0000000195b77bc8 objc_msgSend + 4
1 Foundation 0x0000000184edfc84 _NSDescriptionWithStringProxyFunc + 68
2 CoreFoundation 0x0000000183fa9b50 __CFStringAppendFormatCore + 6948
3 CoreFoundation 0x0000000183fa7ff0 _CFStringCreateWithFormatAndArgumentsAux2 + 244
4 CoreFoundation 0x0000000183fc59dc _CFLogvEx2 + 148
5 Foundation 0x0000000184dff660 NSLogv + 104
6 Foundation 0x0000000184dff5e8 NSLog + 20
7 My Mobile 0x00000001005819b0 -[MySDK didFailWithError:] + 272
8 My Mobile 0x00000001005d3974 -[MyServiceManager validate:didFailWithError:] + 1200
9 My Mobile 0x00000001005bb20c __60-[MyHttpCliebt validate]_block_invoke110 + 528
10 MyTIM Mobile 0x00000001005c2ca8 __84-[AFHTTPSessionManager dataTaskWithHTTPMethod:URLString:parameters:success:failure:]_block_invoke87 + 160
11 My Mobile 0x00000001005a7ef0 __72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke + 220
12 libdispatch.dylib 0x00000001961e1994 _dispatch_call_block_and_release + 20
13 libdispatch.dylib 0x00000001961e1954 _dispatch_client_callout + 12
14 libdispatch.dylib 0x00000001961e620c _dispatch_main_queue_callback_4CF + 1604
15 CoreFoundation 0x0000000183f97544 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
16 CoreFoundation 0x0000000183f955ec __CFRunLoopRun + 1488
17 CoreFoundation 0x0000000183ec0f74 CFRunLoopRunSpecific + 392
18 GraphicsServices 0x000000018d7f36fc GSEventRunModal + 164
19 UIKit 0x0000000188ac2d94 UIApplicationMain + 1484
20 MyTIM Mobile 0x00000001000de4a0 main (main.m:12)
21 libdyld.dylib 0x000000019620ea08 start + 0
Please help me in identifying where the problem actually starts, is it starts at AFURLSessionManagerTaskDelegate (or) MySDK ?
Which is causing the issue, is NSLog causing issue ? or blocks and threads causing this issue?
How to analyze a crash report is described in Technical Note TN2151.

EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x000000008346beb8

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.

Resources