Posts

Post not yet marked as solved
1 Replies
2.0k Views
The app is crashing only on iOS 13 and when I saw the detailed report, Reports are mentioning the app was in the background when it was crashed. No reference of the line of code mentioned in the crash logs where I can find the line which is causing the crash.Crashed: com.apple.main-threadEXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000f5e5f9c3cCrashed: com.apple.main-thread 0 libobjc.A.dylib 0x1aed79d10 objc_opt_respondsToSelector + 20 1 Foundation 0x1af423588 _NSDescriptionWithStringProxyFunc + 56 2 CoreFoundation 0x1aefdc534 __CFStringAppendFormatCore + 7960 3 CoreFoundation 0x1aefddb10 _CFStringCreateWithFormatAndArgumentsAux2 + 152 4 Foundation 0x1af2f63c4 +[NSString stringWithFormat:] + 72 5 UIKitCore 0x1b30d95d8 -[_UIBackgroundTaskInfo description] + 144 6 UIKitCore 0x1b30e302c _fireBackgroundExpirationHandlers + 1068 7 UIKitCore 0x1b30e2b2c -[UIApplication workspaceNoteAssertionExpirationImminent:] + 136 8 FrontBoardServices 0x1b41adc50 __45-[FBSUIApplicationWorkspaceShim setDelegate:]_block_invoke_3 + 48 9 libdispatch.dylib 0x1aed01524 _dispatch_client_callout + 16 10 libdispatch.dylib 0x1aecaa434 _dispatch_block_invoke_direct$VARIANT$mp + 224 11 FrontBoardServices 0x1b41fe440 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40 12 FrontBoardServices 0x1b41fe10c -[FBSSerialQueue _queue_performNextIfPossible] + 404 13 FrontBoardServices 0x1b41fe634 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 14 CoreFoundation 0x1aefb9b64 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 15 CoreFoundation 0x1aefb9abc __CFRunLoopDoSource0 + 80 16 CoreFoundation 0x1aefb9244 __CFRunLoopDoSources0 + 184 17 CoreFoundation 0x1aefb4274 __CFRunLoopRun + 788 18 CoreFoundation 0x1aefb3c34 CFRunLoopRunSpecific + 424 19 GraphicsServices 0x1b90fd38c GSEventRunModal + 160 20 UIKitCore 0x1b30e622c UIApplicationMain + 1932 21 MagicBox Learning 0x104644058 main + 14 (main.m:14) 22 libdyld.dylib 0x1aee3b800 start + 4
Posted Last updated
.
Post not yet marked as solved
2 Replies
1.6k Views
The method called from app delegate didfinishlaunching and at the line, initWithRootViewController app is crashing on iOS 13.4, iPad 5th Generation. This problem is not coming every time. I got this stack trace of exception from firebase crashlytics.- (void)userLoginUsingNewData{ LoginViewController *loginViewController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil]; self.mainNavigationController = [[UINavigationController alloc] initWithRootViewController:loginViewController]; [self.mainNavigationController setNavigationBarHidden:YES]; [self.window setRootViewController:_MAGICBOX.mainNavigationController]; [self.window makeKeyAndVisible];}Fatal Exception: NSInvalidArgumentException-[__NSCFType fontDescriptorByAddingAttributes:]: unrecognized selector sent to instance 0x280183420Fatal Exception: NSInvalidArgumentException0 CoreFoundation 0x197058a48 __exceptionPreprocess1 libobjc.A.dylib 0x196d7ffa4 objc_exception_throw2 CoreFoundation 0x196f5c5a8 -[NSOrderedSet initWithSet:copyItems:]3 CoreFoundation 0x19705caf4 ___forwarding___4 CoreFoundation 0x19705ea7c _CF_forwarding_prep_05 UIFoundation 0x19a67530c __UIFontDescriptorWithTextStyle6 UIFoundation 0x19a62f6f0 +[UIFontDescriptor preferredFontDescriptorWithTextStyle:addingSymbolicTraits:options:]7 UIKitCore 0x19b42fe40 _ensureLargeFontGlobals.llvm.12845394627407255538 UIKitCore 0x19b42f9ec __UIInnerNavTitleAppearanceAddDefaultLargeTitleAttributes9 UIKitCore 0x19a8350f0 -[_UINavigationBarVisualProviderModernIOS prepare]10 UIKitCore 0x19a7e5bac -[UINavigationBar _commonNavBarInit]11 UIKitCore 0x19a7e5d04 -[UINavigationBar initWithFrame:]12 UIKitCore 0x19aa24828 -[UINavigationController _navigationBarHiddenByDefault:]13 UIKitCore 0x19aa2b8e4 -[UINavigationController loadView]14 UIKitCore 0x19aac3c5c -[UIViewController loadViewIfRequired]15 UIKitCore 0x19aac4360 -[UIViewController view]16 UIKitCore 0x19aa39c54 -[UINavigationController pushViewController:transition:forceImmediate:]17 UIKitCore 0x19aa398ac -[UINavigationController pushViewController:animated:]18 UIKitCore 0x19aa1cdd8 -[UINavigationController initWithRootViewController:]19 SMP eReader 0x100a4dff4 +[AppLaunch userLoginUsingNewData] + 160 (AppLaunch.m:160)20 SMP eReader 0x100a4d894 +[AppLaunch setupAppRootViewWithAppUpgrade] + 108 (AppLaunch.m:108)21 SMP eReader 0x100ae5140 -[AppDelegate application:didFinishLaunchingWithOptions:] + 42 (AppDelegate.m:42)22 UIKitCore 0x19b0d4ee4 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:]23 UIKitCore 0x19b0d6ca0 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:]24 UIKitCore 0x19b0dc42c -[UIApplication _runWithMainScene:transitionContext:completion:]25 UIKitCore 0x19a8a9208 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:]26 UIKitCore 0x19ad3f698 _UIScenePerformActionsWithLifecycleActionMask27 UIKitCore 0x19a8a9cf0 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke28 UIKitCore 0x19a8a9748 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]29 UIKitCore 0x19a8a9b1c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]30 UIKitCore 0x19a8a93d8 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]31 UIKitCore 0x19a8ad8c4 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_232 UIKitCore 0x19ac70f08 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:]33 UIKitCore 0x19ad58c84 _UISceneSettingsDiffActionPerformChangesWithTransitionContext34 UIKitCore 0x19a8ad5fc __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke35 UIKitCore 0x19ad58b80 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext36 UIKitCore 0x19a8ad468 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]37 UIKitCore 0x19a71f2c0 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke38 UIKitCore 0x19a71de28 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]39 UIKitCore 0x19a71eff8 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:]40 UIKitCore 0x19b0da7e4 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:]41 UIKitCore 0x19ac91900 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:]42 FrontBoardServices 0x19c18b7a0 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:]43 FrontBoardServices 0x19c1b0838 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.15444 FrontBoardServices 0x19c195f04 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]45 FrontBoardServices 0x19c1b04f4 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke46 libdispatch.dylib 0x196d25184 _dispatch_client_callout47 libdispatch.dylib 0x196ccdfd8 _dispatch_block_invoke_direct$VARIANT$mp48 FrontBoardServices 0x19c1d5418 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__49 FrontBoardServices 0x19c1d50e4 -[FBSSerialQueue _queue_performNextIfPossible]50 FrontBoardServices 0x19c1d560c -[FBSSerialQueue _performNextFromRunLoopSource]51 CoreFoundation 0x196fd6a00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__52 CoreFoundation 0x196fd6958 __CFRunLoopDoSource053 CoreFoundation 0x196fd60f0 __CFRunLoopDoSources054 CoreFoundation 0x196fd123c __CFRunLoopRun55 CoreFoundation 0x196fd0adc CFRunLoopRunSpecific56 GraphicsServices 0x1a0f71328 GSEventRunModal57 UIKitCore 0x19b0de63c UIApplicationMain58 SMP eReader 0x100b5f82c main + 14 (main.m:14)59 libdyld.dylib 0x196e5a360 start
Posted Last updated
.