Chrome Extension: What is a "Database corrupted" error?

78 views
Skip to first unread message

Anthony Liu

unread,
Aug 9, 2024, 3:56:52 PMAug 9
to chromium-...@chromium.org
Hi all,

We recently started to see a "Database corrupted" exception in the Sentry logs hooked up to our extension recently.

Is anyone familiar with that / if that's something to be worried about?

The only reference I could find online was the "Database corrupted" error from the Chromium source code: https://chromium.googlesource.com/chromium/src/+/f9f711ebee4b7945d156694110b84e70a09e9e3e/extensions/browser/value_store/lazy_leveldb.cc#229

From this, it seems like it may be more of a browser-related issue than something our extension is causing, but I want to make sure.

Sincerely,
Anthony

woxxom

unread,
Aug 10, 2024, 2:53:25 AMAug 10
to Chromium Extensions, Anthony Liu
There are two occurrences, the second one is emitted by the service worker loader, in which case the workaround would be to remove the extension and install it again. If that doesn't help, try manually moving "Service Worker" folder out of the user data directory after exiting Chrome. It'll unregister all service workers though, but it shouldn't be a problem, so you can delete the folder you've moved out after verifying this is indeed so.
Reply all
Reply to author
Forward
0 new messages