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

Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing. #1533

Closed
sengoontoh opened this issue Feb 12, 2019 · 23 comments

Comments

@sengoontoh
Copy link

  • Operating System version: Android
  • Browser version: Webkit (Ionic v3)
  • Firebase SDK version: 5.8.2
  • Firebase Product: storage

I'm getting the following errors on a subset of clients as soon as the app starts.

Error: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
at Function.t.open (file:///android_asset/www/build/vendor.js:1:1435639)\n at e.runTransaction (file:///android_asset/www/build/vendor.js:1:1434439)
at t.updateClientMetadataAndTryBecomePrimary (file:///android_asset/www/build/vendor.js:1:1470615)
at file:///android_asset/www/build/vendor.js:1:1477331
at file:///android_asset/www/build/vendor.js:1:1427105
at t.invoke (file:///android_asset/www/build/polyfills.js:3:14976)
at r.run (file:///android_asset/www/build/polyfills.js:3:10143)
at file:///android_asset/www/build/polyfills.js:3:20242
at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:15660)
at r.runTask (file:///android_asset/www/build/polyfills.js:3:10834)

I have multi-tab persistence enabled. The error keeps on happening in the session. Any ideas what might be happening and how to mitigate?

@schmidt-sebastian
Copy link
Contributor

Hi @sengoontoh! Sorry to hear about your issue. Can you confirm that this is not happening if you do not have experimentalTabSynchronization enabled? If would help us further if you could enable logging and provide the logs. Thank you!

@wilhuff
Copy link
Contributor

wilhuff commented Mar 20, 2019

@sengoontoh I'm going to close this issue for lack of activity. We are still interested in this issue, but need logs to be able to diagnose what's going on. We'll reopen if you can supply them.

@wilhuff wilhuff closed this as completed Mar 20, 2019
@alexplumb
Copy link

I just wanted to chime in and say "me too!", although not in any way that I'm able to reproduce. I'm currently logging errors through Sentry and unfortunately all I'm able to get from it is the error message - no stack trace. I can confirm that I do not have experimentalTabSynchronization set, nor am I using offline persistence at all.

You can see the error report here: https://sentry.io/share/issue/63f683911d7b4b428d164a7deee62d52/

User agent that this happened to:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

I wish I could provide more information, but I hope this helps!

@LucasEThomas
Copy link

LucasEThomas commented Apr 15, 2019

Same error message using ionic v3, ios12.2, & firebase 5.9.3. We get a failed to execute transaction on IDBDatabase error if a login is attempted during the app's first launch. It must be a fresh install of the app. After the app is closed and reopened the error will no longer occur.
It's happening when we try to call
firebase.auth().signInAndRetrieveDataWithCredential(cred)
where cred contains a token obtained from either the google or facebook oauth flow.

@AverageHelper
Copy link

I'm having the same issue on attempted login, but only when Google is the OAuth provider. Regular email login works fine. We use cordova-ios 4.5.5 on iOS 12.2. Tested consistently on iPhone 7 so far. Whether I use Firebase's pre-built login UI or roll our own, we get an error (code 11) "Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing."

When I run from Xcode, we get several console errors:

ERROR: [2019-04-15T22:43:06.138Z]  @firebase/firestore: Firestore (5.9.3): INTERNAL UNHANDLED ERROR:  An internal error was encountered in the Indexed Database server
Unable to connect to FCM. Error Domain=com.google.fcm Code=2001 "FIRMessaging is already connected" UserInfo={NSLocalizedFailureReason=FIRMessaging is already connected}
ERROR: [2019-04-15T22:43:16.705Z]  @firebase/firestore: Firestore (5.9.3): FIRESTORE (5.9.3) INTERNAL ASSERTION FAILED: AsyncQueue is already failed: An internal error was encountered in the Indexed Database server

... and the like.

@var-const
Copy link
Contributor

var-const commented Apr 15, 2019

@vaporizationator @SparrowBlaze Could you please enable logging and provide the logs? Please be sure to remove any sensitive information.

@AverageHelper
Copy link

@var-const I'm having trouble with the link you sent. Is there a method or function to set firebase auth's log level?

@var-const
Copy link
Contributor

var-const commented Apr 15, 2019

@SparrowBlaze Fixed the link in the comment, sorry about that! The call looks like

firebase.firestore.setLogLevel('debug');

@AverageHelper
Copy link

@var-const Thanks! Running it now.

@AverageHelper
Copy link

AverageHelper commented Apr 15, 2019

Here's all I got. The error happened on the first login attempt.

2019-04-15 17:09:45.704382-0600 Inventory[42228:8754205] [Accessibility] ****************** Loading GAX Client Bundle ****************
2019-04-15 17:09:45.813048-0600 Inventory[42228:8754205] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2019-04-15 17:09:45.820599-0600 Inventory[42228:8754205] Apache Cordova native platform version 4.5.5 is starting.
2019-04-15 17:09:45.820976-0600 Inventory[42228:8754205] Multi-tasking -> Device: YES, App: YES
2019-04-15 17:09:45.829741-0600 Inventory[42228:8754205] 

Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/documentation/data-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file
2019-04-15 17:09:45.921432-0600 Inventory[42228:8754205] CDVWKWebViewEngine will reload WKWebView if required on resume
2019-04-15 17:09:45.921482-0600 Inventory[42228:8754205] Using WKWebView
2019-04-15 17:09:45.921815-0600 Inventory[42228:8754205] [CDVTimer][console] 0.066042ms
2019-04-15 17:09:45.921912-0600 Inventory[42228:8754205] [CDVTimer][handleopenurl] 0.064969ms
2019-04-15 17:09:45.923981-0600 Inventory[42228:8754205] Unlimited access to network resources
2019-04-15 17:09:45.924054-0600 Inventory[42228:8754205] [CDVTimer][intentandnavigationfilter] 2.118945ms
2019-04-15 17:09:45.924174-0600 Inventory[42228:8754205] [CDVTimer][gesturehandler] 0.095963ms
2019-04-15 17:09:45.924849-0600 Inventory[42228:8754205] Starting Firebase plugin
2019-04-15 17:09:45.924884-0600 Inventory[42228:8754205] [CDVTimer][firebaseplugin] 0.681996ms
2019-04-15 17:09:45.930190-0600 Inventory[42228:8754205] [CDVTimer][statusbar] 5.262971ms
2019-04-15 17:09:45.931039-0600 Inventory[42228:8754205] [CDVTimer][universallinks] 0.779986ms
2019-04-15 17:09:45.931073-0600 Inventory[42228:8754205] [CDVTimer][TotalPluginStartup] 9.367943ms
2019-04-15 17:09:45.969114-0600 Inventory[42228:8754205] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x28073dd40, domain=1, instance=1>
2019-04-15 17:09:46.015415-0600 Inventory[42228:8754319] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x28073a080, domain=1, instance=1>
2019-04-15 17:09:46.340021-0600 Inventory[42228:8754278] 4.13.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
2019-04-15 17:09:46.340130-0600 Inventory[42228:8754278] 4.13.0 - [Firebase/Crash][I-CRA000004] Successfully initialized
2019-04-15 17:09:46.340169-0600 Inventory[42228:8754278] 4.13.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2019-04-15 17:09:46.340202-0600 Inventory[42228:8754278] 4.13.0 - [Firebase/Messaging][I-FCM002023] The object <AppDelegate: 0x280714620> does not respond to -messaging:didReceiveRegistrationToken:, nor -messaging:didRefreshRegistrationToken:. Please implement -messaging:didReceiveRegistrationToken: to be provided with an FCM token.
2019-04-15 17:09:46.344224-0600 Inventory[42228:8754288] 4.13.0 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40200000 started
2019-04-15 17:09:46.344322-0600 Inventory[42228:8754288] 4.13.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2019-04-15 17:09:46.553955-0600 Inventory[42228:8754205] BuildInfo packageName    : "com.cleanupservices.inventory"
2019-04-15 17:09:46.553993-0600 Inventory[42228:8754205] BuildInfo basePackageName: "com.cleanupservices.inventory"
2019-04-15 17:09:46.554030-0600 Inventory[42228:8754205] BuildInfo displayName    : "Inventory"
2019-04-15 17:09:46.554048-0600 Inventory[42228:8754205] BuildInfo name           : "Inventory"
2019-04-15 17:09:46.554065-0600 Inventory[42228:8754205] BuildInfo version        : "1.3.0"
2019-04-15 17:09:46.554081-0600 Inventory[42228:8754205] BuildInfo versionCode    : "1.3.0"
2019-04-15 17:09:46.554092-0600 Inventory[42228:8754205] BuildInfo debug          : YES
2019-04-15 17:09:46.554102-0600 Inventory[42228:8754205] BuildInfo buildType      : ""
2019-04-15 17:09:46.554111-0600 Inventory[42228:8754205] BuildInfo buildDate      : "2019-04-15T17:09:22-06:00"
2019-04-15 17:09:46.554120-0600 Inventory[42228:8754205] BuildInfo installDate    : "2018-12-25T09:21:52-07:00"
2019-04-15 17:09:46.554129-0600 Inventory[42228:8754205] BuildInfo flavor         : ""
2019-04-15 17:09:46.554410-0600 Inventory[42228:8754205] BuildInfo init: 0.0017 sec(1717875 nsec): Return
2019-04-15 17:09:47.162399-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.159Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: Opening database: firestore/[DEFAULT]/cleanup-inventory/main
2019-04-15 17:09:47.208339-0600 Inventory[42228:8754205] [{"provider":"password"},{"provider":"google.com","customParameters":{"prompt":"select_account"}}]
2019-04-15 17:09:47.288487-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.287Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: PUT clientMetadata <auto-key> {"clientId":"jwg5rPTuVDRxdUUHYqoJ","updateTimeMs":1555369787287,"networkEnabled":true,"inForeground":false,"lastProcessedDocumentChangeId":0}
2019-04-15 17:09:47.316586-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.310Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET owner owner {"ownerId":"XjFaKZz98ovMfxiOsueJ","allowTabSynchronization":false,"leaseTimestampMs":1555369707840}
2019-04-15 17:09:47.337261-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.335Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client 'jwg5rPTuVDRxdUUHYqoJ' is not zombied in LocalStorage
2019-04-15 17:09:47.338146-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.335Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client is eligible for a primary lease.
2019-04-15 17:09:47.339326-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.335Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: PUT owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369787335}
2019-04-15 17:09:47.505990-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.505Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET targetGlobal targetGlobalKey {"highestTargetId":136,"highestListenSequenceNumber":10952,"lastRemoteSnapshotVersion":{"seconds":1555368172,"nanoseconds":688431000},"targetCount":68}
2019-04-15 17:09:47.511609-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.511Z]  @firebase/firestore: Firestore (5.9.3) [FirestoreClient]: Initializing. user= null
2019-04-15 17:09:47.514920-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.514Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Starting transaction: Get last stream token
2019-04-15 17:09:47.516701-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.516Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369787335}
2019-04-15 17:09:47.519309-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.518Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client 'jwg5rPTuVDRxdUUHYqoJ' is not zombied in LocalStorage
2019-04-15 17:09:47.522051-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.521Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET mutationQueues  null
2019-04-15 17:09:47.528187-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.527Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Starting transaction: Get next mutation batch
2019-04-15 17:09:47.530387-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.529Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369787335}
2019-04-15 17:09:47.531236-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.530Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client 'jwg5rPTuVDRxdUUHYqoJ' is not zombied in LocalStorage
2019-04-15 17:09:47.534018-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.533Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET mutationQueues  null
2019-04-15 17:09:47.564412-0600 Inventory[42228:8754205] [2019-04-15T23:09:47.563Z]  @firebase/firestore: Firestore (5.9.3) [LruGarbageCollector]: Garbage collection scheduled in 60000ms
2019-04-15 17:09:49.426543-0600 Inventory[42228:8754205] Connected to FCM.
2019-04-15 17:09:49.434035-0600 Inventory[42228:8754205] InstanceID token: <token>
2019-04-15 17:09:50.364749-0600 Inventory[42228:8754205] THREAD WARNING: ['BrowserTab'] took '45.149902' ms. Plugin should use a background thread.
2019-04-15 17:09:50.436625-0600 Inventory[42228:8754205] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-04-15 17:09:50.439451-0600 Inventory[42228:8754205] [MC] Reading from public effective user settings.
2019-04-15 17:09:50.930035-0600 Inventory[42228:8754205] [2019-04-15T23:09:50.927Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: PUT clientMetadata <auto-key> {"clientId":"jwg5rPTuVDRxdUUHYqoJ","updateTimeMs":1555369790926,"networkEnabled":true,"inForeground":false,"lastProcessedDocumentChangeId":0}
2019-04-15 17:09:51.014311-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.013Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369787335}
2019-04-15 17:09:51.016823-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.016Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369787335}
2019-04-15 17:09:51.023129-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.022Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client 'jwg5rPTuVDRxdUUHYqoJ' is not zombied in LocalStorage
2019-04-15 17:09:51.024640-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.024Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: PUT owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369791023}
2019-04-15 17:09:51.595531-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.593Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: PUT clientMetadata <auto-key> {"clientId":"jwg5rPTuVDRxdUUHYqoJ","updateTimeMs":1555369791593,"networkEnabled":true,"inForeground":false,"lastProcessedDocumentChangeId":0}
2019-04-15 17:09:51.609161-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.608Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369791023}
2019-04-15 17:09:51.610655-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.610Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369791023}
2019-04-15 17:09:51.611335-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.610Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client 'jwg5rPTuVDRxdUUHYqoJ' is not zombied in LocalStorage
2019-04-15 17:09:51.612034-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.611Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: PUT owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369791610}
2019-04-15 17:09:51.625842-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.624Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Starting transaction: maybeGarbageCollectMultiClientState
2019-04-15 17:09:51.628001-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.627Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: GET owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369791610}
2019-04-15 17:09:51.639920-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.638Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client '79qYQUITLcCm5ZjxpQ9u' is not zombied in LocalStorage
2019-04-15 17:09:51.640612-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.639Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client 'L0gBstQzr27XPK4RSFxH' is not zombied in LocalStorage
2019-04-15 17:09:51.640767-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.639Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client 'XjFaKZz98ovMfxiOsueJ' is not zombied in LocalStorage
2019-04-15 17:09:51.640854-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.640Z]  @firebase/firestore: Firestore (5.9.3) [IndexedDbPersistence]: Client 'jwg5rPTuVDRxdUUHYqoJ' is not zombied in LocalStorage
2019-04-15 17:09:51.643089-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.642Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: DELETE remoteDocumentChanges {}
2019-04-15 17:09:51.649334-0600 Inventory[42228:8754205] [2019-04-15T23:09:51.648Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: PUT owner owner {"ownerId":"jwg5rPTuVDRxdUUHYqoJ","allowTabSynchronization":false,"leaseTimestampMs":1555369791648}
2019-04-15 17:09:57.449550-0600 Inventory[42228:8754205] [2019-04-15T23:09:57.447Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: PUT clientMetadata <auto-key> {"clientId":"jwg5rPTuVDRxdUUHYqoJ","updateTimeMs":1555369797447,"networkEnabled":true,"inForeground":false,"lastProcessedDocumentChangeId":0}
2019-04-15 17:10:03.056853-0600 Inventory[42228:8754205] [2019-04-15T23:10:03.033Z]  @firebase/firestore: Firestore (5.9.3) [SimpleDb]: Aborting transaction: An internal error was encountered in the Indexed Database server
2019-04-15 17:10:03.056968-0600 Inventory[42228:8754205] ERROR: [2019-04-15T23:10:03.035Z]  @firebase/firestore: Firestore (5.9.3): INTERNAL UNHANDLED ERROR:  An internal error was encountered in the Indexed Database server
2019-04-15 17:10:32.466229-0600 Inventory[42228:8754537] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x15fe53d10] get output frames failed, state 8196
2019-04-15 17:10:32.473191-0600 Inventory[42228:8754537] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x15fe53d10] get output frames failed, state 8196
2019-04-15 17:10:32.475718-0600 Inventory[42228:8754537] TIC Read Status [4:0x0]: 1:57
2019-04-15 17:10:32.475879-0600 Inventory[42228:8754537] TIC Read Status [4:0x0]: 1:57
2019-04-15 17:10:32.487079-0600 Inventory[42228:8754537] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C5.1:2][0x15fe551b0] get output frames failed, state 8196
2019-04-15 17:10:32.487752-0600 Inventory[42228:8754537] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C5.1:2][0x15fe551b0] get output frames failed, state 8196
2019-04-15 17:10:32.491110-0600 Inventory[42228:8754537] TIC Read Status [5:0x0]: 1:57
2019-04-15 17:10:32.491168-0600 Inventory[42228:8754537] TIC Read Status [5:0x0]: 1:57
2019-04-15 17:10:47.572515-0600 Inventory[42228:8754205] ERROR: [2019-04-15T23:10:47.568Z]  @firebase/firestore: Firestore (5.9.3): FIRESTORE (5.9.3) INTERNAL ASSERTION FAILED: AsyncQueue is already failed: An internal error was encountered in the Indexed Database server

@AverageHelper
Copy link

I should mention that this behavior varies from run to run for me. Sometimes, the login works at the first attempt. Usually, this error comes up, and any login is prevented until the app is restarted. Sometimes it requires eight reloads in a row before login works. It's inconsistent.

@AverageHelper
Copy link

Here's the log from Safari's inspector:

[Log] [2019-04-15T23:33:53.174Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: Opening database:" – "firestore/[DEFAULT]/cleanup-inventory/main" (cordova.js, line 1732)
[Log] [{provider: "password"}, {provider: "google.com", customParameters: {prompt: "select_account"}}] (2) (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.218Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: PUT" – "clientMetadata" – "<auto-key>" – "{\"clientId\":\"IxNo7wI3ry2k5BCtNTDh\",\"updateTimeMs\":1555371233218,\"networkEnabled\":true,\"inForeground\":false,\"lastProcessedDocumentChangeId\":0…" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.226Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: GET" – "owner" – "owner" – "{\"ownerId\":\"dstxBPijgctF3Kc14G6U\",\"allowTabSynchronization\":false,\"leaseTimestampMs\":1555371230982}" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.227Z]  @firebase/firestore: – "Firestore (5.9.3) [IndexedDbPersistence]: Client 'dstxBPijgctF3Kc14G6U' is zombied in LocalStorage" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.240Z]  @firebase/firestore: – "Firestore (5.9.3) [IndexedDbPersistence]: Client 'IxNo7wI3ry2k5BCtNTDh' is not zombied in LocalStorage" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.240Z]  @firebase/firestore: – "Firestore (5.9.3) [IndexedDbPersistence]: Client 'dstxBPijgctF3Kc14G6U' is zombied in LocalStorage" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.241Z]  @firebase/firestore: – "Firestore (5.9.3) [IndexedDbPersistence]: Client is eligible for a primary lease." (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.241Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: PUT" – "owner" – "owner" – "{\"ownerId\":\"IxNo7wI3ry2k5BCtNTDh\",\"allowTabSynchronization\":false,\"leaseTimestampMs\":1555371233241}" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.333Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: GET" – "targetGlobal" – "targetGlobalKey" – "{\"highestTargetId\":136,\"highestListenSequenceNumber\":11010,\"lastRemoteSnapshotVersion\":{\"seconds\":1555371218,\"nanoseconds\":975877000},\"targe…" (cordova.js, line 1732)
[Info] Firestore Persistence: Enabled (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.340Z]  @firebase/firestore: – "Firestore (5.9.3) [FirestoreClient]: Initializing. user=" – "null" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.344Z]  @firebase/firestore: – "Firestore (5.9.3) [IndexedDbPersistence]: Starting transaction:" – "Get last stream token" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.346Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: GET" – "owner" – "owner" – "{\"ownerId\":\"IxNo7wI3ry2k5BCtNTDh\",\"allowTabSynchronization\":false,\"leaseTimestampMs\":1555371233241}" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.348Z]  @firebase/firestore: – "Firestore (5.9.3) [IndexedDbPersistence]: Client 'IxNo7wI3ry2k5BCtNTDh' is not zombied in LocalStorage" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.350Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: GET" – "mutationQueues" – "" – "null" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.355Z]  @firebase/firestore: – "Firestore (5.9.3) [IndexedDbPersistence]: Starting transaction:" – "Get next mutation batch" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.356Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: GET" – "owner" – "owner" – "{\"ownerId\":\"IxNo7wI3ry2k5BCtNTDh\",\"allowTabSynchronization\":false,\"leaseTimestampMs\":1555371233241}" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.357Z]  @firebase/firestore: – "Firestore (5.9.3) [IndexedDbPersistence]: Client 'IxNo7wI3ry2k5BCtNTDh' is not zombied in LocalStorage" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.359Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: GET" – "mutationQueues" – "" – "null" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:53.379Z]  @firebase/firestore: – "Firestore (5.9.3) [LruGarbageCollector]: Garbage collection scheduled in 60000ms" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:55.048Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: PUT" – "clientMetadata" – "<auto-key>" – "{\"clientId\":\"IxNo7wI3ry2k5BCtNTDh\",\"updateTimeMs\":1555371235048,\"networkEnabled\":true,\"inForeground\":false,\"lastProcessedDocumentChangeId\":0…" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:55.091Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: GET" – "owner" – "owner" – "{\"ownerId\":\"IxNo7wI3ry2k5BCtNTDh\",\"allowTabSynchronization\":false,\"leaseTimestampMs\":1555371233241}" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:55.096Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: GET" – "owner" – "owner" – "{\"ownerId\":\"IxNo7wI3ry2k5BCtNTDh\",\"allowTabSynchronization\":false,\"leaseTimestampMs\":1555371233241}" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:55.097Z]  @firebase/firestore: – "Firestore (5.9.3) [IndexedDbPersistence]: Client 'IxNo7wI3ry2k5BCtNTDh' is not zombied in LocalStorage" (cordova.js, line 1732)
[Log] [2019-04-15T23:33:55.098Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: PUT" – "owner" – "owner" – "{\"ownerId\":\"IxNo7wI3ry2k5BCtNTDh\",\"allowTabSynchronization\":false,\"leaseTimestampMs\":1555371235098}" (cordova.js, line 1732)
[Log] [2019-04-15T23:34:01.159Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: PUT" – "clientMetadata" – "<auto-key>" – "{\"clientId\":\"IxNo7wI3ry2k5BCtNTDh\",\"updateTimeMs\":1555371241146,\"networkEnabled\":true,\"inForeground\":false,\"lastProcessedDocumentChangeId\":0…" (cordova.js, line 1732)
[Log] [2019-04-15T23:34:01.945Z]  @firebase/firestore: – "Firestore (5.9.3) [SimpleDb]: Aborting transaction:" – "An internal error was encountered in the Indexed Database server" (cordova.js, line 1732)
[Error] [2019-04-15T23:34:01.948Z]  @firebase/firestore: – "Firestore (5.9.3): INTERNAL UNHANDLED ERROR: " – "An internal error was encountered in the Indexed Database server"
	(anonymous function) (cordova.js:1732)
	a (chunk-vendors.acf9dfbf.js:691:693)
	error (chunk-vendors.acf9dfbf.js:691:2085)
	m (chunk-vendors.acf9dfbf.js:885:59464)
	(anonymous function) (chunk-vendors.acf9dfbf.js:1224:2557)
	promiseReactionJob
[Error] Unhandled Promise Rejection: UnknownError: An internal error was encountered in the Indexed Database server
	(anonymous function)
	rejectPromise
	promiseReactionJob
[Error] UnknownError: An internal error was encountered in the Indexed Database server
	(anonymous function) (chunk-vendors.acf9dfbf.js:1224:2666)
[Error] InvalidStateError: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
	(anonymous function) (chunk-vendors.acf9dfbf.js:708:24768)
[Error] [2019-04-15T23:34:15.764Z]  @firebase/firestore: – "Firestore (5.9.3): FIRESTORE (5.9.3) INTERNAL ASSERTION FAILED: AsyncQueue is already failed: An internal error was encountered in th…"
	(anonymous function) (cordova.js:1732)
	a (chunk-vendors.acf9dfbf.js:691:693)
	error (chunk-vendors.acf9dfbf.js:691:2085)
	m (chunk-vendors.acf9dfbf.js:885:59464)
	v (chunk-vendors.acf9dfbf.js:901:684)
	verifyNotFailed (chunk-vendors.acf9dfbf.js:1224:3189)
	enqueue (chunk-vendors.acf9dfbf.js:1224:2395)
	enqueueAndForget (chunk-vendors.acf9dfbf.js:1224:2327)
	documentVisibilityHandler (chunk-vendors.acf9dfbf.js:1368:15932)
[Error] Error: FIRESTORE (5.9.3) INTERNAL ASSERTION FAILED: AsyncQueue is already failed: An internal error was encountered in the Indexed Database server
	v (chunk-vendors.acf9dfbf.js:901:700)
	verifyNotFailed (chunk-vendors.acf9dfbf.js:1224:3189)
	enqueue (chunk-vendors.acf9dfbf.js:1224:2395)
	enqueueAndForget (chunk-vendors.acf9dfbf.js:1224:2327)
	documentVisibilityHandler (chunk-vendors.acf9dfbf.js:1368:15932)
[Error]  [ 25.364s] [firebaseui] signInWithRedirect: 11
	Ar (chunk-vendors.acf9dfbf.js:219:158649)
	h (chunk-vendors.acf9dfbf.js:219:158527)
	(anonymous function)
	log (chunk-vendors.acf9dfbf.js:219:157188)
	xr (chunk-vendors.acf9dfbf.js:219:158696)
	a (chunk-vendors.acf9dfbf.js:219:237540)
	(anonymous function) (chunk-vendors.acf9dfbf.js:708:28061)
	Ut (chunk-vendors.acf9dfbf.js:708:29013)
	Ht (chunk-vendors.acf9dfbf.js:708:28881)
	Yb (chunk-vendors.acf9dfbf.js:708:29517)
	gt (chunk-vendors.acf9dfbf.js:708:26363)
	promiseReactionJob

@ahmedogela
Copy link

it happens with firestore when you use enablePersistence, even when using experimentalTabSynchronization: true

@rsgowman
Copy link
Member

rsgowman commented May 7, 2019

iOS 12.2 and "an internal error was encountered in the indexed database server"?

So, I don't think this is related to the original issue. But it does look an awful lot like this one: #1670.

If that's the case, then the cause is possibly a safari bug. We reported it to Apple here: https://bugs.webkit.org/show_bug.cgi?id=197050. Although it seems likely that this is a duplicate of: https://bugs.webkit.org/show_bug.cgi?id=196372.

If this seems to be the likely culprit, follow along on #1670. If this doesn't seem like a reasonable explanation (i.e. these errors are showing up for android users, or non iOS 12.2 users) feel free to re-open.

@rsgowman rsgowman closed this as completed May 7, 2019
@alexplumb
Copy link

@rsgowman I'm looking at my error reports and this is happening to people in Chrome on Android and Windows as well.

@rsgowman
Copy link
Member

Hey @alexplumb,

Are you able to provide logs? (You'll have to enable logging; see above.) Though this will be difficult if you can't reproduce the issue yourself.

Looking at your above message, it sounds like you're not even enabling persistence? Is that still the case? I'll verify with the rest of the team, but I don't think we even attempt to do anything with the local indexdb in this case, so this would be really surprising. Are you certain the error is coming from Firestore?

Looking over this issue's history, there seems to be a bunch of different problems jumbled together. If you're able to provide more details, it might be helpful to do so in a new issue rather than continuing here.

@alexplumb
Copy link

I'm not enabling offline persistence, no. I'm also not able to reproduce, as this issue isn't happening to me - I'm simply seeing these messages popping up in my Sentry log.

I have no way of knowing that this is something that Firestore specifically is doing, but I'm pretty sure something about the Firebase platform is creating a local indexdb. I use Firebase hosting and I'm using Auth, Storage, and Firestore. If I clear my cookies and delete my local + database storage, when I refresh the page I still see a local database.

Capture

Looking through my logs in Sentry, I see the following two messages always appearing one after the other:

Capture

You can find the Firestore log below - I removed all of the lines that showed the data it was fetching.

VM7814:1 XHR finished loading: GET "http://localhost:5000/sockjs-node/info?t=1561734231765".
index.esm.js:71 [2019-06-28T15:03:51.780Z]  @firebase/firestore: Firestore (6.2.2) [FirestoreClient]: Initializing. user= null
index.esm.js:71 [2019-06-28T15:03:51.791Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Get last stream token
index.esm.js:71 [2019-06-28T15:03:51.794Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Get next mutation batch
index.esm.js:71 [2019-06-28T15:03:51.796Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.797Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.798Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.800Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: Creating WebChannel: https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channel [object Object]
index.esm.js:71 [2019-06-28T15:03:51.801Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.801Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.802Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.802Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.802Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.803Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.803Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.803Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.804Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.804Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.804Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.804Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.805Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.805Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.805Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.805Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.805Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.806Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.806Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.806Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.807Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.807Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.808Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.808Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.809Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.809Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.809Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.810Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.810Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.811Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.817Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: Opening WebChannel transport.
index.esm.js:71 [2019-06-28T15:03:51.861Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel transport opened.
VM7814:1 XHR finished loading: POST "https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channel?database=[redacted]&VER=8&RID=25557&CVER=22&X-HTTP-Session-Id=gsessionid&%24httpHeaders=X-Goog-Api-Client%3Agl-js%2F%20fire%2F6.2.2%0D%0A&zx=ammruqghb1hm&t=1".
index.esm.js:71 [2019-06-28T15:03:51.991Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Allocate query
index.esm.js:71 [2019-06-28T15:03:51.996Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Execute query
index.esm.js:71 [2019-06-28T15:03:51.996Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Remote document keys
index.esm.js:71 [2019-06-28T15:03:51.997Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel sending: {"database":"[redacted]","addTarget":{"query":{"structuredQuery":{"from":[{"collectionId":"PublicShows"}],"where":{"compositeFilter":{"op":"AND","filters":[{"fieldFilter":{"field":{"fieldPath":"isCancelled"},"op":"EQUAL","value":{"booleanValue":false}}},{"fieldFilter":{"field":{"fieldPath":"isIncomplete"},"op":"EQUAL","value":{"booleanValue":false}}}]}},"orderBy":[{"field":{"fieldPath":"__name__"},"direction":"ASCENDING"}]},"parent":"[redacted]"},"targetId":24}}
index.esm.js:71 [2019-06-28T15:03:52.022Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[2]}}
index.esm.js:71 [2019-06-28T15:03:52.023Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[4]}}
index.esm.js:71 [2019-06-28T15:03:52.023Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[6]}}
index.esm.js:71 [2019-06-28T15:03:52.024Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[8]}}
index.esm.js:71 [2019-06-28T15:03:52.024Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[10]}}
index.esm.js:71 [2019-06-28T15:03:52.024Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[12]}}
index.esm.js:71 [2019-06-28T15:03:52.025Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[14]}}
index.esm.js:71 [2019-06-28T15:03:52.025Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[16]}}
index.esm.js:71 [2019-06-28T15:03:52.025Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[18]}}
index.esm.js:71 [2019-06-28T15:03:52.026Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[20]}}
index.esm.js:71 [2019-06-28T15:03:52.026Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"ADD","targetIds":[22]}}
index.esm.js:71 [2019-06-28T15:03:52.028Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[8],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.030Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[18],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.036Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[12],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.038Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[2],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.040Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[10],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.040Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[8],"resumeToken":"CgkIkcT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777809Z"}}
index.esm.js:71 [2019-06-28T15:03:52.040Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[18],"resumeToken":"CgkIkcT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777809Z"}}
index.esm.js:71 [2019-06-28T15:03:52.040Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[12],"resumeToken":"CgkIkcT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777809Z"}}
index.esm.js:71 [2019-06-28T15:03:52.041Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[2],"resumeToken":"CgkIkcT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777809Z"}}
index.esm.js:71 [2019-06-28T15:03:52.041Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[10],"resumeToken":"CgkIkcT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777809Z"}}
index.esm.js:71 [2019-06-28T15:03:52.117Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[14],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.117Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[14],"resumeToken":"CgkIksT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777810Z"}}
index.esm.js:71 [2019-06-28T15:03:52.118Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[12,2,10,18,8],"resumeToken":"CgkIksT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777810Z"}}
index.esm.js:71 [2019-06-28T15:03:52.118Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[20],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.118Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[20],"resumeToken":"CgkIksT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777810Z"}}
index.esm.js:71 [2019-06-28T15:03:52.121Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[16],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.122Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[22],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.122Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[16],"resumeToken":"CgkIksT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777810Z"}}
index.esm.js:71 [2019-06-28T15:03:52.124Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[22],"resumeToken":"CgkIksT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777810Z"}}
index.esm.js:71 [2019-06-28T15:03:52.127Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[4],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.128Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[4],"resumeToken":"CgkIksT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777810Z"}}
VM7814:1 XHR finished loading: POST "https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channel?database=[redacted]&VER=8&gsessionid=4c3C5zdZ2VtenZvv1SNSdhHwFcjkxW91&SID=VTn8fJVxMAVskv4e0WuWQg&RID=25558&AID=0&zx=lkn4p8d309cr&t=1".
index.esm.js:71 [2019-06-28T15:03:52.217Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[6],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.217Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[6],"resumeToken":"CgkIksT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777810Z"}}
index.esm.js:71 [2019-06-28T15:03:52.218Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"resumeToken":"CgkIksT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777810Z"}}
index.esm.js:71 [2019-06-28T15:03:52.300Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Get last remote snapshot version
index.esm.js:71 [2019-06-28T15:03:52.302Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Apply remote event
index.esm.js:71 [2019-06-28T15:03:52.317Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: notifyLocalViewChangesindex.esm.js:71 [2019-06-28T15:03:52.752Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetIds":[24],"resumeToken":"CgkIqa/2sLmM4wI=","readTime":"2019-06-28T15:03:51.725993Z"}}
index.esm.js:71 [2019-06-28T15:03:52.752Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"resumeToken":"CgkIksT5sLmM4wI=","readTime":"2019-06-28T15:03:51.777810Z"}}
index.esm.js:71 [2019-06-28T15:03:52.832Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Get last remote snapshot version
index.esm.js:71 [2019-06-28T15:03:52.838Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Apply remote event
index.esm.js:71 [2019-06-28T15:03:52.877Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: notifyLocalViewChanges
index.esm.js:71 [2019-06-28T15:03:53.312Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"targetChangeType":"CURRENT","targetIds":[24],"resumeToken":"CgkIjOGcsbmM4wI=","readTime":"2019-06-28T15:03:52.354956Z"}}
index.esm.js:71 [2019-06-28T15:03:53.312Z]  @firebase/firestore: Firestore (6.2.2) [Connection]: WebChannel received: {"targetChange":{"resumeToken":"CgkIjOGcsbmM4wI=","readTime":"2019-06-28T15:03:52.354956Z"}}
index.esm.js:71 [2019-06-28T15:03:53.312Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Get last remote snapshot version
index.esm.js:71 [2019-06-28T15:03:53.313Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: Apply remote event
index.esm.js:71 [2019-06-28T15:03:53.313Z]  @firebase/firestore: Firestore (6.2.2) [MemoryPersistence]: Starting transaction: notifyLocalViewChanges

@rsgowman
Copy link
Member

Is the name of the indexdb "firebaseLocalStorageDb"? (If you're running chrome, you can check that by opening developer tools -> 'application' tab, storage (on the left), indexdb). If so, that's likely the auth database and a separate issue from anything else in this ticket.

@alexplumb
Copy link

alexplumb commented Jun 28, 2019

Yup, that's the name of the one in my Application tab.

@rsgowman
Copy link
Member

@alexplumb; Since this seems to be a separate (albeit related) issue, I've migrated your issue to #1926 and tagged it with auth. Lets continue over there.

@alexlouden
Copy link

alexlouden commented Aug 20, 2019

I've just seen this issue reported through Sentry too, on Mac, Chrome v76:

Crumbs:

Anything I can do to help debug it?

@mikelehen
Copy link
Contributor

@alexlouden If this is the same auth issue that was discussed above, that's being tracked by #1926 so that would be the place to look. Thanks.

@alexlouden
Copy link

@alexlouden If this is the same auth issue that was discussed above, that's being tracked by #1926 so that would be the place to look. Thanks.

Sorry, will do!

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

No branches or pull requests