xournalpp
xournalpp copied to clipboard
Crash when reading a PDF
Affects versions :
- OS: Arch Linux
- (Linux only) Desktop environment: Gnome 42.2 Wayland
- Which version of libgtk do you use: 3.24.34
- Version of Xournal++: 1.1.1
- Installation method: flatpak
Describe the bug Hard crash when just scrolling through the PDF
To Reproduce Simply scroll and navigate through the PDF.
Additional context I have the PDF that causes the crash but I'm not sure I'm allowed to post it on github since it is a copyrighted textbook. I can send it to you individually though if anyone would like. There's a number p2p file transfer services out there.
Here are the crash logs: https://pastebin.com/u0zd1FMU
What is also interesting, is that Evince (gnome pdf reader) also crashes when reading the same PDF. Never crashes immediately, just after a few seconds of scrolling.
Have you tried running xournalpp
or evince
from terminal and see if there are any messages about it there?
I've got the same issue. Scrolling in evince
results in a segmentation fault.
Scrolling in xournalpp
gives various error messages (with a subsequent save&exit of the program), but I can't pinpoint what kind of behaviour triggers which of them (there was, I think, a third one, that I didn't manage to reproduce, and I can't find it in my console logs, either); here's the two that I managed to repeat (albeit with no consistency as to which'd show up):
** (xournalpp:243040): WARNING **: 23:51:02.548: [Crash Handler] Crashed with signal 11
xournalpp: ../cairo/src/cairo-error.c:68: _cairo_error: Assertion `_cairo_status_is_error (status)' failed.
** (xournalpp:243094): WARNING **: 23:51:52.457: [Crash Handler] Crashed with signal 6
If it's of any value, here's my initial log of xournalpp
(i.e. what appears in my console before I crash the program by scrolling the document):
** Message: 23:53:16.060: TEXTDOMAINDIR = (null), Platform-specific locale dir = /usr/share/xournalpp/../locale, chosen directory = /usr/share/xournalpp/../locale
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_a52.c:1001:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
** Message: 23:53:16.477: Plugin "MigrateFontSizes" UI initialized
** (xournalpp:243302): WARNING **: 23:53:16.564: Failed to load "colornames.ini" (/home/hayven/.config/xournalpp/colornames.ini): No such file or directory
Same problem here. Cairo crashing while using the same pdf, both with xournalpp and evince.
This seems to be a cairo or poppler issue, if it also affects evince. Is anyone able to share a pdf file for which this happens? Then we'd also need the versions of cairo and poppler used.
@K4LCIFER Is this problem still affecting you?
Closing for inactivity, assuming this issue has been solved (either upstream in Xournal++'s latest version)