question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

destroy() race condition causing IndexedDB to hang

See original GitHub issue

Still 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:closed
  • Created 9 years ago
  • Comments:60 (36 by maintainers)

github_iconTop GitHub Comments

2reactions
riterranicommented, Jun 28, 2018

I am still having the same problem with this code

db.destroy().then(function (){ db = new PouchDB('test'); db.put(...); });

2reactions
pptdrcommented, Nov 28, 2017

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>)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found