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
I've lost all the notes of a pdf after PC hard reset #5664
Comments
I'm sad this happened and deeply sorry for you. It's curious how this was possible. We have quite some safety measurements in the code. Can you also check whether there is a file named There could also be a If none of these files are present, the most likely scenario seems to be that Xournal++ finished saving and autosaving without error messages and falsely believed that everything went fine. It's hard to image this is possible (and also seems unlikely on a hard reset), but we should not rule out that possibility. |
thanks for your help, but unfortunately no such file is in my directory. just the .xopp and .autosave.xopp both of 0 bytes |
Do you have a reproducible way to get a "PC hard reset"? From the code I don't understand how it is possible that a 0-byte file is written, but if it is reproducible in some way I can debug the problem and try to fix it. |
Ok I did what you said. I killed with Is there any situation in which xournalpp erases the .xopp file in some case? Maybe if some particular xopp read or write does not succeed? I really don't know what to think. I also did a:
and this is what I get, I don't know if any of this is useful:
but I compared them to other journalctl xournalpp logs, and they seem fine to me: they are pretty common log rows. EDIT: |
Operating System
Linux
(Linux only) Distribution
Fedora
(Linux only) Desktop Environment
GNOME
(Linux Only) Display Server
Wayland
Installation Method
Flatpak
Xournal++ Version
1.2.3
libgtk Version
3.24.41
Bug Description
I had a xopp file (some KB of data) in which I worked on since days.
I was adding some notes to it, but my laptop auto hard reset itself. When I power on again, I suprisingly found that my xopp file wasn't opening, then I realized that it was 0 bytes..... all was gone. It's strange, it never happened to me. I don't understand why even the previous notes in xopp file are gone. I understand that the notes that I haven't saved are not there, but here everything is GONE. Also the .autosave is 0 bytes.
I've also checked in
/home/user/.var/app/com.github.xournalpp.xournalpp/cache/xournalpp/autosaves
folder, but there is no a autosave for my pdf xopp there.Expected Behaviour
I shouldn't have lost ALL THE NOTES of that xopp file, but only the non-saved notes of that xopp.
Steps to Reproduce
Additional Context
Is there any other place I can check? Is it everything gone for ever?
To decrease the possibility that this happens again, should I increase the autosave minutes interval? Or should I decrease it to the minimum? I think I should increase it from 3 to 5 because I guess that this problem was given by the fact that laptop auto hard-reset at the same time that it was saving. Can this be right? What you think? The strange thing is that both .autosave and .xopp files are 0 bytes.....
The text was updated successfully, but these errors were encountered: