destroy() race condition causing IndexedDB to hang
See original GitHub issueStill haven’t tracked this down, but opening up an issue so it doesn’t fall through the cracks.
I’ve managed to get IndexedDB in a state where it just doesn’t respond in Chrome after a few tests. Seems to be related to stale: update_after
in map/reduce causing some parallelism. Weirdly, the tests complete when the Dev Tools are open, so we may have another Heiseinbug on our hands.
https://github.com/pouchdb/pouchdb/pull/3414 does not fix this particular bug.
Issue Analytics
- State:
- Created 9 years ago
- Comments:60 (36 by maintainers)
Top Results From Across the Web
Developers - destroy() race condition causing IndexedDB to hang -
I've managed to get IndexedDB in a state where it just doesn't respond in Chrome after a few tests. Seems to be related...
Read more >Escaping the Chrome Sandbox via an IndexedDB Race ...
Exploitation of a race condition in the IndexedDB implementation of Chrome, demonstrating a full sandbox escape. On 30th of July 2019, Chromium ...
Read more >Example of memory leak in indexedDB at store.add (see ...
objectStore("quiz data"), code = new Array(), i = 0, q, l, request; ... Race condition can cause redundant IDBFS store sync operations.
Read more >Race Condition | Threat Intelligence | Threat Intelligence Feed | Brea...
A race condition was found in the Linux kernels implementation of the floppy disk drive controller driver software. The impact of this issue...
Read more >Search Results - CVE
An issue was discovered in the Linux kernel through 6.0.9. drivers/media/dvb-core/dvb_frontend.c has a race condition that can cause a use-after-free when a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am still having the same problem with this code
db.destroy().then(function (){ db = new PouchDB('test'); db.put(...); });
It is reproducible in chrome browser each time when local db is cleared manually and recreate data during sync.
DOMException: Failed to execute ‘transaction’ on ‘IDBDatabase’: The database connection is closing. at openTransactionSafely (…) at allDocsQuery (…) at allDocs (…) at idbAllDocs (…) at PouchDB.idb_allDocs [as _allDocs] (…) at PouchDB.<anonymous> (…) at PouchDB.<anonymous> (…) at PouchDB.<anonymous> (…) at … at new Promise (<anonymous>)