Application: okular (23.04.1) Qt Version: 5.15.9 Frameworks Version: 5.106.0 Operating System: Linux 6.3.3-arch1-1 x86_64 Windowing System: X11 Distribution: "Arch Linux" DrKonqi: 5.27.5 [KCrashBackend] -- Information about the crash: I can start Okular, but when I open a PDF it will immediately crash. This affects any PDF, even a blank one. It will also occur when opening a PDF file in Dolphin. Attempting ti open the PDF through the CLI will also immediately crash. EPUB files are opening successfully, the issue seems to only affect PDFs. The crash can be reproduced every time. -- Backtrace: Application: Okular (okular), signal: Bus error [KCrash Handler] #4 0x00007f36663cb284 in ?? () from /usr/lib/libpoppler.so.128 #5 0x00007f36663ac170 in GlobalParams::GlobalParams(char const*) () from /usr/lib/libpoppler.so.128 #6 0x00007f36663b2bc1 in GlobalParamsIniter::GlobalParamsIniter(void (*)(ErrorCategory, long long, char const*)) () from /usr/lib/libpoppler.so.128 #7 0x00007f367432c732 in ?? () from /usr/lib/libpoppler-qt5.so.1 #8 0x00007f367430607c in Poppler::Document::load(QString const&, QByteArray const&, QByteArray const&) () from /usr/lib/libpoppler-qt5.so.1 #9 0x00007f3677f4ac7d in ?? () from /usr/lib/qt/plugins/okular/generators/okularGenerator_poppler.so #10 0x00007f369ff594d7 in ?? () from /usr/lib/libOkular5Core.so.10 #11 0x00007f369ff65e01 in Okular::Document::openDocument(QString const&, QUrl const&, QMimeType const&, QString const&) () from /usr/lib/libOkular5Core.so.10 #12 0x00007f369c2e7df5 in Okular::Part::doOpenFile(QMimeType const&, QString const&, bool*) () from /usr/lib/qt/plugins/okularpart.so #13 0x00007f369c2e9692 in Okular::Part::openFile() () from /usr/lib/qt/plugins/okularpart.so #14 0x00007f36ade31bad in ?? () from /usr/lib/libKF5Parts.so.5 #15 0x00007f36ade36610 in KParts::ReadOnlyPart::openUrl(QUrl const&) () from /usr/lib/libKF5Parts.so.5 #16 0x00007f369c2e61dd in Okular::Part::openUrl(QUrl const&, bool) () from /usr/lib/qt/plugins/okularpart.so #17 0x0000559e652d7455 in ?? () #18 0x0000559e652e1651 in ?? () #19 0x00007f36ac2cffe7 in ?? () from /usr/lib/libQt5Core.so.5 #20 0x00007f36ac2cffe7 in ?? () from /usr/lib/libQt5Core.so.5 #21 0x00007f36ad05c227 in QAbstractButton::clicked(bool) () from /usr/lib/libQt5Widgets.so.5 #22 0x00007f36ad05eada in ?? () from /usr/lib/libQt5Widgets.so.5 #23 0x00007f36ad05ffdc in ?? () from /usr/lib/libQt5Widgets.so.5 #24 0x00007f36ad060180 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5 #25 0x00007f36acfaf1e1 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5 #26 0x00007f36acf7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #27 0x00007f36acf7ddef in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #28 0x00007f36ac29ab18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5 #29 0x00007f36acf7c12a in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/libQt5Widgets.so.5 #30 0x00007f36acfcced5 in ?? () from /usr/lib/libQt5Widgets.so.5 #31 0x00007f36acfcec27 in ?? () from /usr/lib/libQt5Widgets.so.5 #32 0x00007f36acf7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #33 0x00007f36ac29ab18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5 #34 0x00007f36ac74121c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5 #35 0x00007f36ac72a955 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5 #36 0x00007f36a712f710 in ?? () from /usr/lib/libQt5XcbQpa.so.5 #37 0x00007f36aab0f53b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #38 0x00007f36aab6c219 in ?? () from /usr/lib/libglib-2.0.so.0 #39 0x00007f36aab0e1a2 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #40 0x00007f36ac2e9f0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #41 0x00007f36ac299824 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #42 0x00007f36ac29acc3 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5 #43 0x0000559e652d14ca in ?? () #44 0x00007f36aba39850 in ?? () from /usr/lib/libc.so.6 #45 0x00007f36aba3990a in __libc_start_main () from /usr/lib/libc.so.6 #46 0x0000559e652d2345 in ?? () [Inferior 1 (process 6134) detached] Reported using DrKonqi
Install the debug symbols thing in archlinux and give us a better backtrace. https://wiki.archlinux.org/title/Debugging/Getting_traces
Created attachment 159229 [details] Debug Trace
(In reply to Albert Astals Cid from comment #1) > Install the debug symbols thing in archlinux and give us a better backtrace. > > https://wiki.archlinux.org/title/Debugging/Getting_traces Thanks for looking at my report. I attached the trace, is this what you are looking for? gdb output this poppler memory access error before doing the full trace: Thread 1 (Thread 0x7ffff197df80 (LWP 7395) "okular"): #0 NameToCharCode::add (this=0x555556964410, name=0x7fffb091cf8d <error: Cannot access memory at address 0x7fffb091cf8d>, c=119) at /usr/src/debug/poppler/poppler-23.05.0/poppler
Yeah that is what i wanted but i'm still puzzled how it would crash there. Can you run valgrind okular myfile.pdf from a terminal and paste the output of valgrind here? (install valgrind first if you do not have it installed and be patient, valgrind is slow)
I copied all the older 23.03.0-1 poppler dependencies from another machine (archlinux calls them poppler, poppler-glib and poppler-qt5) and downgraded all 3 of them from 23.05.0-1 and the issue with PDFs stopped happening. I then updated the deps again to 23.05.0-1 and I could continue to open PDFs successfully. Perhaps something silently broke my poppler binaries during a routine update, I'm not sure. In any case, the issue is resolved and I can't recreate it anymore. This can be closed now, if it somehow returns I will attach the new traces.