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

Deleting IndexedDB can result in inability to connect to the database until you restart Chrome #2094

Open
rtibbles opened this issue Aug 17, 2020 · 3 comments

Comments

@rtibbles
Copy link
Member

Summary

Wiping out the IndexedDB can lead to this error happening whenever it is then accessed, even after a page refresh:
Uncaught (in promise) Error: InvalidStateError: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.

This seems to be an issue in Chrome specifically, and is widely reported on many libraries using IndexedDB:
tutao/tutanota#452
localForage/localForage#581
localForage/localForage#694
firebase/firebase-js-sdk#1926
pouchdb/pouchdb#3415
jensarps/IDBWrapper#80

And twice in Dexie.js:
dexie/Dexie.js#613
dexie/Dexie.js#934

Category

BUG

Usage Details

This seems to be somewhat difficult to reproduce, but once it does, the only way to get rid of it is to restart Chrome.

@rtibbles rtibbles added this to the Vue Refactor milestone Aug 17, 2020
@rtibbles rtibbles added this to To do in Optimizations and reliability via automation Aug 17, 2020
@rtibbles rtibbles self-assigned this Aug 17, 2020
@kollivier
Copy link
Contributor

It has reproduced quite reliably for me, and seems to not take long after I start using Studio for it to occur. I think the first time I remember seeing it was while trying to switch users, though I don't know if that's directly related in any way.

@kollivier
Copy link
Contributor

kollivier commented Aug 17, 2020

Another possibility is that I've found I often need to clear out indexedDB due to seeing incorrect data (e.g. channel list, etc.) displayed in the browser, for reasons I haven't yet completely nailed down. (I know issues with switching users is part of the cause, but does not explain all the issues.)

@nucleogenesis
Copy link
Member

nucleogenesis commented Aug 27, 2020

I am tickled that I found this issue by Googling the Chrome error message, finding jensarps/IDBWrapper#80 and scrolling down to see @rtibbles and a link to here.

the only way to get rid of it is to restart Chrome

Can confirm ^ thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

4 participants