Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
devxbasit opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@devxbasit
Copy link

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

@flxzt
Copy link
Owner

flxzt commented May 13, 2024

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.

@flxzt flxzt added the bug Something isn't working label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants