You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I get the below error when I try to open a file. I'm not sure, but yesterday after pressing the [CTRL+ S] to save the file, I quickly closed the app. Any way to recover the file back it contains my study notes. Thank you for this awesome app, it is so helpful.
To Reproduce
Steps to reproduce the behavior:
open the file
Expected behavior
Console Output
Run the app in the terminal with flatpak --env=RUST_LOG=rnote=debug --env=RUST_BACKTRACE=1 run com.github.flxzt.rnote
and post the output.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
2024-05-13T17:35:15.035678Z DEBUG rnote: .. tracing subscriber initialized.
2024-05-13T17:35:19.422295Z ERROR rnote::appwindow: Opening file with dialogs failed, Err: loading RnoteFile from bytes failed.
Caused by:
0: decompressing bytes failed.
1: unexpected end of file
Unfortunately it reads like the file hasn't finished saving when you closed the app.
We should definitely fix this by blocking closing the app while a save is in progress.
If there is really important content on it, you could try recovering it through a gzip-recovery tool because the save file is just a gzip archive which contains json data. If it is possible to recover the partially written document then it might be possible to append missing data to it to be able to import it again.
I think I just had this happen to me, though I don't think there's much to recover as all it's left is an empty file :(
Looks like it truncates the file before saving, it'd be a lot safer to write all to a separate file, and then move the file over the original file (LibreOffice seems to do it this way)
That way if something fails all that gets lost is the latest changes, not the whole file (and you could also autosave into this file)
Describe the bug
I get the below error when I try to open a file. I'm not sure, but yesterday after pressing the [CTRL+ S] to save the file, I quickly closed the app. Any way to recover the file back it contains my study notes. Thank you for this awesome app, it is so helpful.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Console Output
Run the app in the terminal with
flatpak --env=RUST_LOG=rnote=debug --env=RUST_BACKTRACE=1 run com.github.flxzt.rnote
and post the output.
Screenshots
Desktop (please complete the following information):
Xubuntu
Additional context
The text was updated successfully, but these errors were encountered: