brython-dev / brython

Brython (Browser Python) is an implementation of Python 3 running in the browser
BSD 3-Clause "New" or "Revised" License
6.4k stars 512 forks source link

Uncaught DOMException: Failed to execute 'createObjectStore' on 'IDBDatabase' #2488

Closed Mxuan01 closed 1 month ago

Mxuan01 commented 3 months ago

Most of the time, all is fine, but once a user encounters the bug, the bug appears frequently:

Uncaught DOMException: Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction.
    at idb.onupgradeneeded

After reading the code, I think the bug should be here:

image

The same goes for $B.idb_open_promise.

PierreQuentel commented 3 months ago

Thanks for the report @Mxuan01

With the commit above I think the risk of such bugs is reduced, but it's hard to be sure. If you still see them can you report again ?

Mxuan01 commented 3 months ago

Thanks for the report @Mxuan01

With the commit above I think the risk of such bugs is reduced, but it's hard to be sure. If you still see them can you report again ?

Ok, I will

PierreQuentel commented 1 month ago

I am closing the issue. If the bug still occurs please comment again. Thanks again !