bvaisvil / zenith

Zenith - sort of like top or htop but with zoom-able charts, CPU, GPU, network, and disk usage
MIT License
2.63k stars 67 forks source link

Database tick: 0 does not match supplied tick: 2000 (after release 0.14) #126

Open gennaro-tedesco opened 1 year ago

gennaro-tedesco commented 1 year ago

After the latest release

zenith -V
zenith 0.14.0

invoking zenith results in an exception

Database tick: 0 does not match supplied tick: 2000.
Proceed with (D)atabase tick: 0, (S)upplied tick with history disabled: 2000, (E)xit?:

independent of the arguments given.

My architecture is the following, if it helps

Machine:    MacBookPro18,1 
Kernel:     Darwin 22.3.0  
OS:         macOS 13.2.1 Ventura
Terminal:   iTerm2 (Version 3.4.19)
bvaisvil commented 1 year ago

Thanks for reporting. The newer version does compression on the history database. Apparently, it isn't reliably detecting that the current history isn't compressed. Fix for now would be to delete your store /Users/<user>/Library/Caches/zenith/store.

gennaro-tedesco commented 1 year ago

I confirm that deleting Library/Caches/zenith/store works for the moment :)

bvaisvil commented 1 year ago

Great, you wouldn't happen to have a copy of that file still? Would be helpful in tracking down the issue.

gennaro-tedesco commented 1 year ago

Unfortunately not :(

noyez commented 1 year ago

@bvaisvil I have the same issue, and still have the DB file, its 228Mb, if you'd like it, let me know.

bvaisvil commented 1 year ago

@bvaisvil I have the same issue, and still have the DB file, its 228Mb, if you'd like it, let me know.

Yes, please! It should compress rather well. Hopefully small enough to add to the issue.

noyez commented 1 year ago

@bvaisvil I have the same issue, and still have the DB file, its 228Mb, if you'd like it, let me know.

Yes, please! It should compress rather well. Hopefully small enough to add to the issue.

Sorry for the delay, here is the gzip'd zenith store, which casuses the error in the original issue above.

zenith_store_currupt_store.gz

bvaisvil commented 1 year ago

Thank you!

TheSirC commented 1 year ago

I have one too, are you interested ?

bvaisvil commented 1 year ago

Yes, that would be very helpful.

TheSirC commented 1 year ago

Here it is : sorry for the long response store.gz

bvaisvil commented 1 year ago

No worries. I've been super busy, myself. Thank you very much for the file.