firebase-ios-sdk: [FIRApp configure] crashes app when running in xcode 9
Stack trace below.
The stacktrace occurs whenever i run my app through xcode [FIRApp configure] is executed in the didFinishLaunchingWithOptions
Thread 14: EXC_BAD_ACCESS (code=1, address=0xfff8000000080000)
#0 0x0000000184599bd8 in _platform_memmove ()
#1 0x0000000184414e78 in __memcpy_chk ()
#2 0x0000000184414e78 in __memcpy_chk ()
#3 0x0000000105bb9e28 in pb_field_set_to_default at /Users/liuzhen/Documents/CharlyCode/charlyUser/Pods/nanopb/pb_decode.c:808
#4 0x0000000105bb8550 in pb_message_set_to_defaults at /Users/liuzhen/Documents/CharlyCode/charlyUser/Pods/nanopb/pb_decode.c:844
#5 0x0000000105bb84ec in pb_decode at /Users/liuzhen/Documents/CharlyCode/charlyUser/Pods/nanopb/pb_decode.c:958
#6 0x0000000105dfd7b8 in firapb_decode_measurement_config ()
#7 0x0000000105e02444 in -[FIRAPBMeasurementConfig initWithBuffer:] ()
#8 0x0000000105dcb30c in -[FIRADatabase queryMeasurementConfigWithError:] ()
#9 0x0000000105de5f40 in -[FIRARemoteConfig measurementConfigFromDatabase] ()
#10 0x0000000105de46d0 in -[FIRARemoteConfig initWithGMPAppID:database:measurementConfig:] ()
#11 0x0000000105de4440 in -[FIRARemoteConfig initWithGMPAppID:database:] ()
#12 0x0000000105dd2940 in __48-[FIRAMeasurement startMeasurementOnWorkerQueue]_block_invoke ()
#13 0x0000000108a9545c in _dispatch_client_callout ()
#14 0x0000000108a9617c in dispatch_once_f ()
#15 0x0000000105dd2544 in -[FIRAMeasurement startMeasurementOnWorkerQueue] ()
#16 0x0000000105dd2310 in -[FIRAMeasurement setEnabledOnWorkerQueue:] ()
#17 0x0000000105de6c24 in __52-[FIRAScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke ()
#18 0x0000000108a9549c in _dispatch_call_block_and_release ()
#19 0x0000000108a9545c in _dispatch_client_callout ()
#20 0x0000000108aa4110 in _dispatch_queue_serial_drain ()
#21 0x0000000108a989a4 in _dispatch_queue_invoke ()
#22 0x0000000108aa5104 in _dispatch_root_queue_drain_deferred_wlh ()
#23 0x0000000108aac100 in _dispatch_workloop_worker_thread ()
#24 0x00000001845a2fe0 in _pthread_wqthread ()
#25 0x00000001845a2c30 in start_wqthread ()
Enqueued from FIRAnalyticsQueue (Thread 5) Queue : FIRAnalyticsQueue (serial)
#0 0x0000000108aa4c50 in _dispatch_queue_push ()
#1 0x0000000105de6bc4 in -[FIRAScheduler scheduleOnWorkerQueueBlockID:block:] ()
#2 0x0000000105dd2254 in -[FIRAMeasurement setEnabled:] ()
#3 0x0000000105dd205c in -[FIRAMeasurement initWithDatabaseName:persistedConfig:network:scheduler:alarm:options:] ()
#4 0x0000000105dd1e40 in -[FIRAMeasurement initWithOptions:] ()
#5 0x0000000105dd0e4c in __55+[FIRAMeasurement initializeSharedInstanceWithOptions:]_block_invoke ()
#6 0x0000000108a9545c in _dispatch_client_callout ()
#7 0x0000000108a9617c in dispatch_once_f ()
#8 0x0000000105dd0db8 in +[FIRAMeasurement initializeSharedInstanceWithOptions:] ()
#9 0x0000000105de83c4 in __47+[FIRAnalytics startWithConfiguration:options:]_block_invoke_2 ()
#10 0x0000000108a9549c in _dispatch_call_block_and_release ()
#11 0x0000000108a9545c in _dispatch_client_callout ()
#12 0x0000000108aa4110 in _dispatch_queue_serial_drain ()
#13 0x0000000108a989a4 in _dispatch_queue_invoke ()
#14 0x0000000108aa5104 in _dispatch_root_queue_drain_deferred_wlh ()
#15 0x0000000108aac100 in _dispatch_workloop_worker_thread ()
#16 0x00000001845a2fe0 in _pthread_wqthread ()
#17 0x00000001845a2c30 in start_wqthread ()
Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)
#0 0x0000000108aa4c50 in _dispatch_queue_push ()
#1 0x0000000105de8500 in +[FIRAnalytics dispatchAsyncOnSerialQueue:] ()
#2 0x0000000105de8340 in __47+[FIRAnalytics startWithConfiguration:options:]_block_invoke ()
#3 0x0000000108a9545c in _dispatch_client_callout ()
#4 0x0000000108a9617c in dispatch_once_f ()
#5 0x0000000105de813c in +[FIRAnalytics startWithConfiguration:options:] ()
#6 0x0000000105e09600 in -[FIRApp configureCore] ()
#7 0x0000000105e091d4 in +[FIRApp addAppToAppDictionary:] ()
#8 0x0000000105e08890 in +[FIRApp configureDefaultAppWithOptions:sendingNotifications:] ()
#9 0x0000000105e08554 in +[FIRApp configure] ()
#10 0x00000001050d2cc8 in -[AppDelegate setupFirebase] at /Users/liuzhen/Documents/CharlyCode/charlyUser/charlyUser/AppDelegate.m:122
#11 0x00000001050d2bfc in -[AppDelegate application:didFinishLaunchingWithOptions:] at /Users/liuzhen/Documents/CharlyCode/charlyUser/charlyUser/AppDelegate.m:108
#12 0x000000018ddf7050 in -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] ()
#13 0x000000018dfea898 in -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] ()
#14 0x000000018dfef6e4 in -[UIApplication _runWithMainScene:transitionContext:completion:] ()
#15 0x000000018e27d454 in __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke ()
#16 0x000000018e54d1f0 in +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] ()
#17 0x000000018e27d0b8 in -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] ()
#18 0x000000018e27d928 in -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] ()
#19 0x000000018e9e66e8 in __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke ()
#20 0x000000018e9e658c in -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] ()
#21 0x000000018e7629c0 in __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke ()
#22 0x000000018e8f7fc8 in _performActionsWithDelayForTransitionContext ()
#23 0x000000018e762870 in -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] ()
#24 0x000000018e54c850 in -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] ()
#25 0x000000018dfede28 in -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] ()
#26 0x000000018e3f16ec in -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] ()
#27 0x0000000187019768 in -[FBSSceneImpl _didCreateWithTransitionContext:completion:] ()
#28 0x0000000187022070 in __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 ()
#29 0x0000000108a9545c in _dispatch_client_callout ()
#30 0x0000000108aa1b74 in _dispatch_block_invoke_direct ()
#31 0x000000018704da04 in __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ ()
#32 0x000000018704d6a8 in -[FBSSerialQueue _performNext] ()
#33 0x000000018704dc44 in -[FBSSerialQueue _performNextFromRunLoopSource] ()
#34 0x0000000184920358 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#35 0x00000001849202d8 in __CFRunLoopDoSource0 ()
#36 0x000000018491fb60 in __CFRunLoopDoSources0 ()
#37 0x000000018491d738 in __CFRunLoopRun ()
#38 0x000000018483e2d8 in CFRunLoopRunSpecific ()
#39 0x00000001866cff84 in GSEventRunModal ()
#40 0x000000018ddeb880 in UIApplicationMain ()
#41 0x00000001051374bc in main at /Users/liuzhen/Documents/CharlyCode/charlyUser/charlyUser/main.m:14
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (8 by maintainers)
For posterity sake,
I did a clean and updated my firebase to 4.3.0
Everything seems to work fine.
Sorry for the distraction guys.
We’ve fixed this internally and it’ll be out in an upcoming minor release.
If you’re still running into this issue, please comment and I’ll reopen it.
Thanks for the backtrace @georgbachmann. Seems to be a different problem than was originally reported here, so I’ll reopen and recategorize it.