Skip to content

IndexedDB Can Get Corrupted On Schema Changes, Should Backup Full State Regularly #228

Closed

Description

@CrystalSplitter

Describe the bug
IndexedDB can occasionally report the error (in this case it happened because I changed versions between my Nix build and my AppImage build, which used different electron versions):

[626881:1004/225239.134592:ERROR:content/browser/indexed_db/instance/leveldb/backing_store.cc:1594] IndexedDB backing store had unknown schema, treating it as failure to open.
[626881:1004/225239.134683:ERROR:content/browser/indexed_db/instance/leveldb/backing_store.cc:1649] Got corruption for { origin: file:// [internally: file://], top-level site: file://, nonce: <null>, ancestor chain bit: Same-Site }, Unknown corruption
[626881:1004/225239.136437:ERROR:content/browser/indexed_db/instance/leveldb/backing_store.cc:1515] IndexedDB recovering from a corrupted (and deleted) database.

This is bad! We absolutely don't want to delete the user's sources just because.
I suspect this issue is rare, but it's a very, very bad failure mode.

To Reproduce
Running the app from a Nix build, then as an AppImage seems to do it (for the same version).

Expected behaviour
Either detect that the database is broken, and warn the user before deleting,
or auto-pull from a backup on disk.

Platform (please complete the following information):

  • OS: Linux
  • Version: v2.2.0-dev.2 and ToT
  • (optional) Package type: Nix then AppImage seems to cause the bug

Additional context
Finding a way to regularly have state backups in general seems like a good idea?

Activity

  1. added
    bug
    enhancement
    on Oct 5, 2026
  2. changed the issue type fromtoon Oct 5, 2026
  3. CrystalSplitter commented on Oct 16, 2026

    @CrystalSplitter
    CollaboratorAuthor

    Fixed as far as I can tell. Autosaves are now located in $userData/autosaves/ (on linux, this in ~/.config/fluentflame-reader/autosaves)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions