[Webkit-unassigned] [Bug 197050] IndexedDB: An internal error was encountered in the Indexed Database server
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 30 09:24:04 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=197050
--- Comment #68 from Josh Kelley <joshkel at gmail.com> ---
(In reply to Daken Misen from comment #67)
> Review your code to ensure that IndexedDB operations are handled correctly.
> The error “Attempt to get a record from database without an in-progress
> transaction” suggests there might be issues with how transactions are
> managed in your app. Make sure that you are properly managing transactions
> and ensuring they are active when performing database operations.
I'm far from an expert on IndexedDB, so I could be misunderstanding, but I'm not certain that this is correct. If I deliberately mismanage my IndexedDB transactions in JavaScript, I get errors similar to the following:
> InvalidStateError: Failed to execute 'objectStore' on 'IDBTransaction': The transaction finished.
> TransactionInactiveError: Failed to execute 'get' on 'IDBObjectStore': The transaction is inactive or finished.
These errors have specific names (e.g., "InvalidStateError"), and they reference JavaScript method and class names, and the WebKit source code suggests (to me, as a developer unfamiliar with the codebase) that they're thrown by the C++ code that directly implements the JavaScript APIs.
By contrast, the "UnknownError: Attempt to get a record from the database without an in-progress transaction" is thrown at a lower level, by the internal IndexedDB server's SQLite backing store; it feels like it may be an internal WebKit bug (WebKit internally mismanaging its transactions) rather than a JS bug.
I could easily be misunderstanding, though.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240730/cc82b00e/attachment-0001.htm>
More information about the webkit-unassigned
mailing list