Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RCNConfigDBManager removeDatabase:] crash #3508

Closed
ctnataman opened this issue Aug 6, 2019 · 5 comments
Closed

[RCNConfigDBManager removeDatabase:] crash #3508

ctnataman opened this issue Aug 6, 2019 · 5 comments
Assignees
Milestone

Comments

@ctnataman
Copy link

@ctnataman ctnataman commented Aug 6, 2019

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 10.2
  • Firebase SDK version: 6.5.0
  • Firebase Component: RemoteConfig
  • Component version: 4.2.1

[REQUIRED] Step 3: Describe the problem

We're seeing some crashes when fetch remote config

Keys:

crash_info_entry_0 = BUG IN CLIENT OF LIBDISPATCH: dispatch_sync called on queue already owned by current thread

Stack Trace:


Crashed: com.google.GoogleConfigService.database
EXC_BREAKPOINT 0x00000001d549ff34

Crashed: com.google.GoogleConfigService.database
0  libdispatch.dylib              0x1d549ff34 __DISPATCH_WAIT_FOR_QUEUE__ + 444
1  libdispatch.dylib              0x1d549fad8 _dispatch_sync_f_slow + 140
2  CepSubesi                      0x10617ecf0 -[RCNConfigDBManager removeDatabase:] + 4403064048
3  CepSubesi                      0x10617e83c __42-[RCNConfigDBManager createOrOpenDatabase]_block_invoke + 4403062844
4  libdispatch.dylib              0x1d54f0a38 _dispatch_call_block_and_release + 24
5  libdispatch.dylib              0x1d54f17d4 _dispatch_client_callout + 16
6  libdispatch.dylib              0x1d549a324 _dispatch_lane_serial_drain$VARIANT$mp + 592
7  libdispatch.dylib              0x1d549ae40 _dispatch_lane_invoke$VARIANT$mp + 428
8  libdispatch.dylib              0x1d54a34ac _dispatch_workloop_worker_thread + 596
9  libsystem_pthread.dylib        0x1d56d2114 _pthread_wqthread + 304
10 libsystem_pthread.dylib        0x1d56d4cd4 start_wqthread + 4


com.apple.main-thread
0  libsystem_kernel.dylib         0x1d565093c kevent_id + 8
1  libdispatch.dylib              0x1d54afbf4 _dispatch_kq_poll + 332
2  libdispatch.dylib              0x1d54b06e0 _dispatch_event_loop_wait_for_ownership$VARIANT$mp + 412
3  libdispatch.dylib              0x1d549fea0 __DISPATCH_WAIT_FOR_QUEUE__ + 296
4  libdispatch.dylib              0x1d549fad8 _dispatch_sync_f_slow + 140
5  CepSubesi                      0x106181960 -[RCNConfigDBManager loadInternalMetadataTable] + 4403075424
6  CepSubesi                      0x1061844bc -[RCNConfigSettings initWithDatabaseManager:namespace:firebaseAppName:googleAppID:] + 4403086524
7  CepSubesi                      0x106178a08 -[FIRRemoteConfig initWithAppName:FIROptions:namespace:DBManager:configContent:] + 4403038728
8  CepSubesi                      0x10617c200 -[FIRRemoteConfigComponent remoteConfigForNamespace:] + 4403053056
9  CepSubesi                      0x106178788 +[FIRRemoteConfig remoteConfigWithFIRNamespace:app:] + 4403038088
10 CepSubesi                      0x106178848 +[FIRRemoteConfig remoteConfig] + 4403038280
11 CepSubesi                      0x104b3c0d8 -[AppDelegate fetchRemoteConfigs] + 249 (AppDelegate.m:249)
12 CepSubesi                      0x104b3b788 -[AppDelegate application:didFinishLaunchingWithOptions:] + 157 (AppDelegate.m:157)
13 UIKitCore                      0x2023b50f0 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 412
14 UIKitCore                      0x2023b6854 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3352
15 UIKitCore                      0x2023bbfe0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1540
16 UIKitCore                      0x201c7f2a4 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 776
17 UIKitCore                      0x201c8783c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160
18 UIKitCore                      0x201c7ef28 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
19 UIKitCore                      0x201c7f818 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1064
20 UIKitCore                      0x201c7db64 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 744
21 UIKitCore                      0x201c7d82c -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 428
22 UIKitCore                      0x201c8236c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
23 UIKitCore                      0x201c83150 _performActionsWithDelayForTransitionContext + 112
24 UIKitCore                      0x201c82224 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 244
25 UIKitCore                      0x201c86f24 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 360
26 UIKitCore                      0x2023ba5e8 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540
27 UIKitCore                      0x201fb6e04 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 360
28 FrontBoardServices             0x1d842e9fc -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 440
29 FrontBoardServices             0x1d843840c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 256
30 FrontBoardServices             0x1d8437c14 __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 64
31 libdispatch.dylib              0x1d54f17d4 _dispatch_client_callout + 16
32 libdispatch.dylib              0x1d54965dc _dispatch_block_invoke_direct$VARIANT$mp + 224
33 FrontBoardServices             0x1d8469040 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
34 FrontBoardServices             0x1d8468cdc -[FBSSerialQueue _performNext] + 408
35 FrontBoardServices             0x1d8469294 -[FBSSerialQueue _performNextFromRunLoopSource] + 52
36 CoreFoundation                 0x1d5a44728 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
37 CoreFoundation                 0x1d5a446a8 __CFRunLoopDoSource0 + 88
38 CoreFoundation                 0x1d5a43f90 __CFRunLoopDoSources0 + 176
39 CoreFoundation                 0x1d5a3eecc __CFRunLoopRun + 1004
40 CoreFoundation                 0x1d5a3e7c0 CFRunLoopRunSpecific + 436
41 GraphicsServices               0x1d7c3f79c GSEventRunModal + 104
42 UIKitCore                      0x2023bdc38 UIApplicationMain + 212
43 CepSubesi                      0x104ad8540 main + 25 (main.m:25)
44 libdyld.dylib                  0x1d55028e0 start + 4

@google-oss-bot

This comment has been hidden.

@dmandar
Copy link
Contributor

@dmandar dmandar commented Aug 6, 2019

This is fixed and will be available in the upcoming Firebase Release.

Loading

@dmandar dmandar closed this Aug 6, 2019
@paulb777 paulb777 added this to the M54 milestone Aug 6, 2019
@yunluoxin
Copy link

@yunluoxin yunluoxin commented Aug 12, 2019

When about releasing next version SDK?

Loading

@paulb777
Copy link
Member

@paulb777 paulb777 commented Aug 12, 2019

Firebase 6.7.0 (M54) is targeted for next week.

Loading

@yunluoxin
Copy link

@yunluoxin yunluoxin commented Aug 13, 2019

Firebase 6.7.0 (M54) is targeted for next week.
Mass changes to fix this? We just want to know how this bug occur, and is it big possibility to happen? If it's easy to occur, we need to upgrade right away in case the worse situation that most of client can't open the app. Plz tell me, thx.

Loading

@firebase firebase locked and limited conversation to collaborators Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants