firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.67k stars 1.49k forks source link

iOS 14.2 crashed while initializing the configure call #13259

Closed tulip09020618 closed 4 months ago

tulip09020618 commented 4 months ago

Description

image

thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000107e8f378 FirebaseSessions`SessionStartEvent.convertMobileSubtype(mobileSubtype="", self=0x00000002807bc840) at SessionStartEvent.swift:288:29
    frame #1: 0x0000000107e8ca3c FirebaseSessions`SessionStartEvent.init(sessionInfo=FirebaseSessions.SessionInfo @ 0x000000016ba57d08, appInfo=0x00000002816b76c0, time=0x00000002830b72f0) at SessionStartEvent.swift:73:25
    frame #2: 0x0000000107e8bb60 FirebaseSessions`SessionStartEvent.__allocating_init(sessionInfo:appInfo:time:) at SessionStartEvent.swift:0
    frame #3: 0x0000000107e7a888 FirebaseSessions`closure #1 in Sessions.init(self=0x00000002807b9500, loggedEventCallback=0x0000000107e79944 FirebaseSessions`closure #1 (Swift.Result<(), FirebaseSessions.FirebaseSessionsError>) -> () in FirebaseSessions.Sessions.init(appID: Swift.String, installations: FirebaseSessions.InstallationsProtocol) -> FirebaseSessions.Sessions at FirebaseSessions.swift:93) at FirebaseSessions.swift:170:19
    frame #4: 0x0000000107e891b8 FirebaseSessions`SessionInitiator.beginListening(initiateSessionStart=0x0000000107e7d068 FirebaseSessions`partial apply forwarder for closure #1 () -> () in FirebaseSessions.Sessions.init(appID: Swift.String, sessionGenerator: FirebaseSessions.SessionGenerator, coordinator: FirebaseSessions.SessionCoordinatorProtocol, initiator: FirebaseSessions.SessionInitiator, appInfo: FirebaseSessions.ApplicationInfoProtocol, settings: FirebaseSessions.SettingsProtocol, loggedEventCallback: (Swift.Result<(), FirebaseSessions.FirebaseSessionsError>) -> ()) -> FirebaseSessions.Sessions at <compiler-generated>, self=0x00000002816b77e0) at SessionInitiator.swift:55:10
    frame #5: 0x0000000107e7a49c FirebaseSessions`Sessions.init(appID="1:474968852501:ios:c4690b88a26f6c9466661c", sessionGenerator=0x000000028119c960, coordinator=0x00000002816b7780, initiator=0x00000002816b77e0, appInfo=0x00000002816b76c0, settings=0x0000000281c9f980, loggedEventCallback=0x0000000107e79944 FirebaseSessions`closure #1 (Swift.Result<(), FirebaseSessions.FirebaseSessionsError>) -> () in FirebaseSessions.Sessions.init(appID: Swift.String, installations: FirebaseSessions.InstallationsProtocol) -> FirebaseSessions.Sessions at FirebaseSessions.swift:93) at FirebaseSessions.swift:161:20
    frame #6: 0x0000000107e79e6c FirebaseSessions`Sessions.__allocating_init(appID:sessionGenerator:coordinator:initiator:appInfo:settings:loggedEventCallback:) at FirebaseSessions.swift:0
    frame #7: 0x0000000107e795c0 FirebaseSessions`Sessions.__allocating_init(appID="1:474968852501:ios:c4690b88a26f6c9466661c", installations=0x000000028329c640) at FirebaseSessions.swift:88:10
    frame #8: 0x0000000107e7c110 FirebaseSessions`closure #1 in static Sessions.componentsToRegister(container=0x0000000283cc4f60, isCacheable=0x16ba58813, self=@thick FirebaseSessions.Sessions.Type) at FirebaseSessions.swift:281:21
    frame #9: 0x0000000107e7c2c0 FirebaseSessions`thunk for @escaping @callee_guaranteed (@guaranteed FIRComponentContainer, @unowned UnsafeMutablePointer<ObjCBool>) -> (@out Any?) at <compiler-generated>:0
    frame #10: 0x0000000107b39e70 FirebaseCore`-[FIRComponentContainer instantiateInstanceForProtocol:withBlock:](self=0x0000000283cc4f60, _cmd="instantiateInstanceForProtocol:withBlock:", protocol=0x0000000107ea6600, creationBlock=0x0000000107e7c274) at FIRComponentContainer.m:160:17
    frame #11: 0x0000000107b3a13c FirebaseCore`-[FIRComponentContainer instanceForProtocol:](self=0x0000000283cc4f60, _cmd="instanceForProtocol:", protocol=0x0000000107ea6600) at FIRComponentContainer.m:199:24
    frame #12: 0x0000000107b3aa2c FirebaseCore`+[FIRComponentType instanceForProtocol:inContainer:](self=FIRComponentType, _cmd="instanceForProtocol:inContainer:", protocol=0x0000000107ea6600, container=0x0000000283cc4f60) at FIRComponentType.m:26:10
    frame #13: 0x0000000107d46bb0 FirebasePerformance`__33+[FPRClient componentsToRegister]_block_invoke(.block_descriptor=0x0000000283cc4fc0, container=0x0000000283cc4f60, isCacheable=NO) at FPRClient.m:71:40
    frame #14: 0x0000000107b39e70 FirebaseCore`-[FIRComponentContainer instantiateInstanceForProtocol:withBlock:](self=0x0000000283cc4f60, _cmd="instantiateInstanceForProtocol:withBlock:", protocol=0x0000000107d8e7b0, creationBlock=0x0000000107d46b10) at FIRComponentContainer.m:160:17
    frame #15: 0x0000000107b3a13c FirebaseCore`-[FIRComponentContainer instanceForProtocol:](self=0x0000000283cc4f60, _cmd="instanceForProtocol:", protocol=0x0000000107d8e7b0) at FIRComponentContainer.m:199:24
    frame #16: 0x0000000107b39ce0 FirebaseCore`-[FIRComponentContainer instantiateEagerComponents](self=0x0000000283cc4f60, _cmd="instantiateEagerComponents") at FIRComponentContainer.m:137:36
    frame #17: 0x0000000107b34aec FirebaseCore`+[FIRApp configureWithName:options:](self=FIRApp, _cmd="configureWithName:options:", name=@"__FIRAPP_DEFAULT", options=0x0000000283cc5fe0) at FIRApp.m:199:5
    frame #18: 0x0000000107b344e0 FirebaseCore`+[FIRApp configureWithOptions:](self=FIRApp, _cmd="configureWithOptions:", options=0x0000000283cc5fe0) at FIRApp.m:132:3
    frame #19: 0x0000000107b34444 FirebaseCore`+[FIRApp configure](self=FIRApp, _cmd="configure") at FIRApp.m:124:3
    frame #20: 0x0000000104664614 app-ios`-[AppDelegate(self=0x0000000283c3d6b0, _cmd="eLocalConfig_application:didFinishLaunchingWithOptions:callback:", application=0x000000010bf04710, launchOptions=0x0000000000000000, callback=0x00000001045d06d8) eLocalConfig_application:didFinishLaunchingWithOptions:callback:] at AppDelegate+ELocalConfig.m:23:5
    frame #21: 0x00000001045d0644 app-ios`-[AppDelegate application:didFinishLaunchingWithOptions:](self=0x0000000283c3d6b0, _cmd="application:didFinishLaunchingWithOptions:", application=0x000000010bf04710, launchOptions=0x0000000000000000) at AppDelegate.m:47:5
    frame #22: 0x00000001a401c9dc UIKitCore`-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 356
    frame #23: 0x00000001a401e97c UIKitCore`-[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 5076
    frame #24: 0x00000001a40240dc UIKitCore`-[UIApplication _runWithMainScene:transitionContext:completion:] + 1244
    frame #25: 0x00000001a36feeb4 UIKitCore`-[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 148
    frame #26: 0x00000001a3c24bf8 UIKitCore`_UIScenePerformActionsWithLifecycleActionMask + 100
    frame #27: 0x00000001a36ff99c UIKitCore`__101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 196
    frame #28: 0x00000001a36ff4a4 UIKitCore`-[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 472
    frame #29: 0x00000001a36ff7c8 UIKitCore`-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 740
    frame #30: 0x00000001a36ff084 UIKitCore`-[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 336
    frame #31: 0x00000001a3706c88 UIKitCore`__186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 188
    frame #32: 0x00000001a3b3e338 UIKitCore`+[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 812
    frame #33: 0x00000001a3c3c35c UIKitCore`_UISceneSettingsDiffActionPerformChangesWithTransitionContext + 244
    frame #34: 0x00000001a3706a20 UIKitCore`-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 348
    frame #35: 0x00000001a35479c4 UIKitCore`__64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 772
    frame #36: 0x00000001a3546464 UIKitCore`-[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248
    frame #37: 0x00000001a3547610 UIKitCore`-[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 220
    frame #38: 0x00000001a40222b4 UIKitCore`-[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 548
    frame #39: 0x00000001a3b64c2c UIKitCore`-[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 360
    frame #40: 0x00000001b060fcb4 FrontBoardServices`-[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 404
    frame #41: 0x00000001b06376e0 FrontBoardServices`__94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 100
    frame #42: 0x00000001b061d410 FrontBoardServices`-[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
    frame #43: 0x00000001b06373f4 FrontBoardServices`__94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 312
    frame #44: 0x000000010bd795f4 libdispatch.dylib`_dispatch_client_callout + 16
    frame #45: 0x000000010bd7cabc libdispatch.dylib`_dispatch_block_invoke_direct + 232
    frame #46: 0x00000001b065c4b8 FrontBoardServices`__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
    frame #47: 0x00000001b065c180 FrontBoardServices`-[FBSSerialQueue _targetQueue_performNextIfPossible] + 404
    frame #48: 0x00000001b065c654 FrontBoardServices`-[FBSSerialQueue _performNextFromRunLoopSource] + 28
    frame #49: 0x00000001a1750d18 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    frame #50: 0x00000001a1750c18 CoreFoundation`__CFRunLoopDoSource0 + 204
    frame #51: 0x00000001a174ffc4 CoreFoundation`__CFRunLoopDoSources0 + 356
    frame #52: 0x00000001a174a508 CoreFoundation`__CFRunLoopRun + 776
    frame #53: 0x00000001a1749cc8 CoreFoundation`CFRunLoopRunSpecific + 572
    frame #54: 0x00000001b7f35598 GraphicsServices`GSEventRunModal + 160
    frame #55: 0x00000001a4020488 UIKitCore`-[UIApplication _run] + 1052
    frame #56: 0x00000001a4025a08 UIKitCore`UIApplicationMain + 164
    frame #57: 0x0000000104631c5c app-ios`main(argc=2, argv=0x000000016ba5b5c0) at main.m:17:12
    frame #58: 0x00000001a1429588 libdyld.dylib`start + 4

Reproducing the issue

No response

Firebase SDK Version

10.29.0

Xcode Version

15.2

Installation Method

CocoaPods

Firebase Product(s)

Analytics, Crashlytics, Performance

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
```json Replace this line with the contents of your Package.resolved. ```

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 4 months ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.