Bug 459729 - Ocular crashes wenn saving a file after downloading it from the web
Summary: Ocular crashes wenn saving a file after downloading it from the web
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 22.08.1
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-09-27 08:21 UTC by Alexander
Modified: 2023-01-21 21:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (12.60 KB, text/plain)
2023-01-21 21:54 UTC, Roberto Tarter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2022-09-27 08:21:26 UTC
Application: okular (22.08.1)

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 5.17.5-surface x86_64
Windowing System: Wayland
Distribution: KDE neon User - 5.25
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
Crash after saving a pdf-file which was downloaded from the internet.
No unusual usage of ocular.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault

[New LWP 15867]
[New LWP 15868]
[New LWP 15869]
[New LWP 15874]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fb38b5eb99f in poll () from /lib/x86_64-linux-gnu/libc.so.6
__preamble__
[Current thread is 1 (Thread 0x7fb387a5f9c0 (LWP 15866))]

Thread 5 (Thread 0x7fb35ccbe700 (LWP 15874)):
#0  0x00007fb38aaf4376 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fb36263a5eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#2  0x00007fb36263a1eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#3  0x00007fb38aaed609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007fb38b5f8133 in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7fb3855ad700 (LWP 15869)):
#0  0x00007fb38b56d666 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fb38b5eb9b3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fb389cb0d66 in ?? () from /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#3  0x00007fb38b97b543 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fb38aaed609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007fb38b5f8133 in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7fb385dae700 (LWP 15868)):
#0  0x00007fb38aaf4376 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fb38b9815eb in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fb389cb0d0d in ?? () from /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#3  0x00007fb38b97b543 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fb38aaed609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007fb38b5f8133 in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7fb387790700 (LWP 15867)):
#0  0x00007fb38a11f4dd in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fb38a0d13f4 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb38a0d2225 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb38a0d24a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb38bbbcb9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fb38bb60b3b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fb38b97a342 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fb38be1ef4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007fb38b97b543 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fb38aaed609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00007fb38b5f8133 in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7fb387a5f9c0 (LWP 15866)):
[KCrash Handler]
#4  0x00007fb377d582a8 in Okular::Document::setHistoryClean(bool) () from /lib/x86_64-linux-gnu/libOkular5Core.so.10
#5  0x00007fb377edf3cb in Okular::Part::saveAs(QUrl const&, QFlags<Okular::Part::SaveAsFlag>) () from /usr/lib/x86_64-linux-gnu/qt5/plugins/okularpart.so
#6  0x00007fb377ee0818 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/okularpart.so
#7  0x00007fb377e913d7 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/okularpart.so
#8  0x00007fb38bb99324 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fb38c6df986 in QAction::triggered(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007fb38c6e2038 in QAction::activate(QAction::ActionEvent) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007fb38c86f89a in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007fb38c876fae in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007fb38c878242 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007fb38c728db6 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fb38c87a85b in QMenu::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007fb38c6e5e43 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007fb38c6eee47 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fb38bb6203a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fb38c6ee147 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fb38c744a3e in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007fb38c7472c4 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007fb38c6e5e43 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007fb38c6eec58 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007fb38bb6203a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007fb38bfe67c0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#26 0x00007fb38bfe7e65 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#27 0x00007fb38bfbe6bc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#28 0x00007fb389cf1564 in ?? () from /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#29 0x00007fb38a0d217d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fb38a0d2400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fb38a0d24a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fb38bbbcb82 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007fb38bb60b3b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007fb38bb68ce4 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00005620161f7cba in ?? ()
#36 0x00007fb38b4fd083 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#37 0x00005620161f8cae in ?? ()
[Inferior 1 (process 15866) detached]

Reported using DrKonqi
Comment 1 Albert Astals Cid 2022-09-30 14:36:05 UTC
Would you be able to install the debug symbols for okularpart.so ?

See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports for some potential instructions
Comment 2 Albert Astals Cid 2022-09-30 14:36:38 UTC
Once you do that make it crash again (I understand you can make it crash all the time) and upload the backtrace again please.
Comment 3 Roberto Tarter 2023-01-21 21:54:21 UTC
Created attachment 155486 [details]
New crash information added by DrKonqi

okular (22.12.1) using Qt 5.15.8

Same as original poster, after trying to save a file under a different name aapplicatin crashes.
Okular was also sluggish while opening the file itself

-- Backtrace (Reduced):
#2  0x00007fcb1aaeb754 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
[...]
#2  0x00007fcb1aaeb754 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
[...]
#2  0x00007fcb1aaeb754 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
[...]
#2  0x00007fcb1aaeb754 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
[...]
#2  0x00007fcb1aaeb754 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5