[okular] [Bug 470230] Okular instantly crashes when opening any PDF file

2023-05-25 Thread Mikal
https://bugs.kde.org/show_bug.cgi?id=470230

--- Comment #5 from Mikal  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[okular] [Bug 470230] Okular instantly crashes when opening any PDF file

2023-05-24 Thread Mikal
https://bugs.kde.org/show_bug.cgi?id=470230

--- Comment #3 from Mikal  ---
(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 0x7197df80 (LWP 7395) "okular"):
#0  NameToCharCode::add (this=0x56964410, name=0x7fffb091cf8d , c=119) at
/usr/src/debug/poppler/poppler-23.05.0/poppler

-- 
You are receiving this mail because:
You are watching all bug changes.

[okular] [Bug 470230] Okular instantly crashes when opening any PDF file

2023-05-24 Thread Mikal
https://bugs.kde.org/show_bug.cgi?id=470230

--- Comment #2 from Mikal  ---
Created attachment 159229
  --> https://bugs.kde.org/attachment.cgi?id=159229=edit
Debug Trace

-- 
You are receiving this mail because:
You are watching all bug changes.

[okular] [Bug 470230] New: Okular instantly crashes when opening any PDF file

2023-05-24 Thread Mikal
https://bugs.kde.org/show_bug.cgi?id=470230

Bug ID: 470230
   Summary: Okular instantly crashes when opening any PDF file
Classification: Applications
   Product: okular
   Version: 23.04.1
  Platform: Archlinux
OS: Linux
Status: REPORTED
  Keywords: drkonqi
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: okular-de...@kde.org
  Reporter: msjamo...@gmail.com
  Target Milestone: ---

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  0x7f36663cb284 in ?? () from /usr/lib/libpoppler.so.128
#5  0x7f36663ac170 in GlobalParams::GlobalParams(char const*) () from
/usr/lib/libpoppler.so.128
#6  0x7f36663b2bc1 in GlobalParamsIniter::GlobalParamsIniter(void
(*)(ErrorCategory, long long, char const*)) () from /usr/lib/libpoppler.so.128
#7  0x7f367432c732 in ?? () from /usr/lib/libpoppler-qt5.so.1
#8  0x7f367430607c in Poppler::Document::load(QString const&, QByteArray
const&, QByteArray const&) () from /usr/lib/libpoppler-qt5.so.1
#9  0x7f3677f4ac7d in ?? () from
/usr/lib/qt/plugins/okular/generators/okularGenerator_poppler.so
#10 0x7f369ff594d7 in ?? () from /usr/lib/libOkular5Core.so.10
#11 0x7f369ff65e01 in Okular::Document::openDocument(QString const&, QUrl
const&, QMimeType const&, QString const&) () from /usr/lib/libOkular5Core.so.10
#12 0x7f369c2e7df5 in Okular::Part::doOpenFile(QMimeType const&, QString
const&, bool*) () from /usr/lib/qt/plugins/okularpart.so
#13 0x7f369c2e9692 in Okular::Part::openFile() () from
/usr/lib/qt/plugins/okularpart.so
#14 0x7f36ade31bad in ?? () from /usr/lib/libKF5Parts.so.5
#15 0x7f36ade36610 in KParts::ReadOnlyPart::openUrl(QUrl const&) () from
/usr/lib/libKF5Parts.so.5
#16 0x7f369c2e61dd in Okular::Part::openUrl(QUrl const&, bool) () from
/usr/lib/qt/plugins/okularpart.so
#17 0x559e652d7455 in ?? ()
#18 0x559e652e1651 in ?? ()
#19 0x7f36ac2cffe7 in ?? () from /usr/lib/libQt5Core.so.5
#20 0x7f36ac2cffe7 in ?? () from /usr/lib/libQt5Core.so.5
#21 0x7f36ad05c227 in QAbstractButton::clicked(bool) () from
/usr/lib/libQt5Widgets.so.5
#22 0x7f36ad05eada in ?? () from /usr/lib/libQt5Widgets.so.5
#23 0x7f36ad05ffdc in ?? () from /usr/lib/libQt5Widgets.so.5
#24 0x7f36ad060180 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
from /usr/lib/libQt5Widgets.so.5
#25 0x7f36acfaf1e1 in QWidget::event(QEvent*) () from
/usr/lib/libQt5Widgets.so.5
#26 0x7f36acf7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /usr/lib/libQt5Widgets.so.5
#27 0x7f36acf7ddef in QApplication::notify(QObject*, QEvent*) () from
/usr/lib/libQt5Widgets.so.5
#28 0x7f36ac29ab18 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /usr/lib/libQt5Core.so.5
#29 0x7f36acf7c12a in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) ()
from /usr/lib/libQt5Widgets.so.5
#30 0x7f36acfcced5 in ?? () from /usr/lib/libQt5Widgets.so.5
#31 0x7f36acfcec27 in ?? () from /usr/lib/libQt5Widgets.so.5
#32 0x7f36acf7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /usr/lib/libQt5Widgets.so.5
#33 0x7f36ac29ab18 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /usr/lib/libQt5Core.so.5
#34 0x7f36ac74121c in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
() from /usr/lib/libQt5Gui.so.5
#35 0x7f36ac72a955 in
QWindowSystemInterface::sendWindowSystemEvents(QFlags)
() from /usr/lib/libQt5Gui.so.5
#36 0x7f36a712f710 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#37 0x7f36aab0f53b in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#38 0x7f36aab6c219 in ?? () from /usr/lib/libglib-2.0.so.0
#39 0x7f36aab0e1a2 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#40 0x7f36ac2e9f0c in
QEventDispatcherGlib::processEvents(QFlags) ()
from /usr/lib/libQt5Core.so.5
#41 0x7f36ac299824 in
QEventLoop::exec(QFlags) () from
/usr/lib/libQt5Core.so.5
#42 0x7f36ac29acc3 in QCoreApplication::exec() () from
/usr/lib/libQt5Core.so.5
#43 0x559e652d14ca in ?? ()
#44 0x7f36aba39850 in ?? () from /usr/lib/libc.so.6
#45 0x7f36aba3990a in __libc_start_main () from