cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.75k stars 176 forks source link

thread 'main' panicked : database disk image is malformed #375

Closed JimnyGitHub closed 1 month ago

JimnyGitHub commented 9 months ago

sometimes I get the following error

thread 'main' panicked at 'McFly error: Creation of temp table to work (database disk image is malformed)', src/history/histo
ry.rs:595:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

to solve it I do rm ~/.local/share/mcfly/history.db

do you know why this happens?

cantino commented 9 months ago

I don't know why this would have happened? Maybe a disk error?

JimnyGitHub commented 9 months ago

I don't know why this would have happened? Maybe a disk error?

I sincerely don't think

my disk is the one I use every day

I have no errors on this one

the database is SQLite by default

maybe if I get the error again, I can try to open this .db with another tool

cantino commented 1 month ago

Unable to reproduce.