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
SegFault when opening a corrupt file (produced by Xournal++ webapp) #5183
Comments
It looks like xournalpp_mobile produced an invalid .xopp-file. Maybe we can repair the .xopp-file for you if you provide it. The bug most probably has to be fixed in xournalpp_mobile. Be warned that the (single) developer of xournalpp_mobile appears to be unreachable. |
Thanks for quick reply. PS. in order to be able to send the file, I have changed the name of it from |
The issue is as reported in the Terminal:
When specifying the PDF background the attribute So instead of
it should be
The content doesn't look of interest though. You had only 1 page, didn't you? |
correct. |
I have also noticed that the only page got Unfortunately I don't know of a better software on Android to handle .xopp-files. |
Thanks so much for your time by the way. |
We can't do anything about the Android webapp, however we have to fix the SegFault and report the corrupted file to the user. |
What should the behavior on this be? Default to "absolute" domain? xournalpp/src/core/control/xojfile/LoadHandler.cpp Lines 443 to 453 in 5fd2dd3
There is at least a duplicate in LoadHandler::parseBgPixmap() , and a few other attributes that are passed to strcmp() without checking for nullptr
|
We should report an error. Someone could also implement a "Repare file" functionality, but that's beyond this ticket I think. |
I have opened an issue on the xournalpp_mobile issue tracker https://gitlab.com/TheOneWithTheBraid/xournalpp_mobile/-/issues/58. |
Yes, we must make "absolute" the default domain, otherwise we can't fix this issue from our side. |
I'm not sure to understand how everything works in this file parsing. I have a "hot fix" for this issue and a few other similar code places, but it's not pretty, consistent, interactive with the user, or whatever. It just shouldn't throw a segfault right away. See https://github.com/tmoerschell/xournalpp/tree/fix-load-handler-segfaults. |
Operating System
Linux
(Linux only) Distribution
Ubuntu 22.04
(Linux only) Desktop Environment
Gnome
(Linux Only) Display Server
X.Org
Installation Method
Snap package
Xournal++ Version
1.2.1
libgtk Version
3.24.38
Bug Description
I have tried to annotate a pdf file with Xournal on my android cell phone, and then open it via xournal app on linux.
I can not make it open, the xournal linux app crashes when I want to open the file of xournal mobile!
Expected Behaviour
open and work the
.xopp
file!Steps to Reproduce
Additional Context
here is the log of my error:
thanks for help.
The text was updated successfully, but these errors were encountered: