flxzt / rnote

Sketch and take handwritten notes.

Home Page:https://rnote.flxzt.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't open the file, shows error message "Opening file failed". Terminal output "Caused by: decompressing bytes failed"

devxbasit opened this issue · comments

commented

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.

image

To Reproduce
Steps to reproduce the behavior:

  1. 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

Stack backtrace:
0:
1:
2:
3:
4:
5:
6:
7:
8: __clone
2024-05-13T17:35:19.425417Z ERROR rnote::overlays: Opening file failed

Screenshots

Desktop (please complete the following information):
Xubuntu
image

Additional context

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.