Bug 447409 - okular crash when try to insert annotation stamp
Summary: okular crash when try to insert annotation stamp
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.12.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
: 448864 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-23 08:28 UTC by tommaso
Modified: 2022-01-21 12:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (12.34 KB, text/plain)
2021-12-24 16:50 UTC, Carlos Castro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tommaso 2021-12-23 08:28:01 UTC
Application: okular (21.12.0)

Qt Version: 5.15.3
Frameworks Version: 5.89.0
Operating System: Linux 5.11.0-43-generic x86_64
Windowing System: X11
Distribution: KDE neon User - Plasma 25th Anniversary Edition
DrKonqi: 5.23.4 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
in annotation option i selected stamp to insert and okular is crashed

The crash can be reproduced every time.

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

[New LWP 24844]
[New LWP 24851]
[New LWP 24852]
[New LWP 24853]
[New LWP 24854]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fd1df7fdaff in __GI___poll (fds=0x7ffc0f5b23f8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7fd1dbc92980 (LWP 24839))]

Thread 6 (Thread 0x7fd1c6048700 (LWP 24854)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e06661ac18) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e06661abc8, cond=0x55e06661abf0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55e06661abf0, mutex=0x55e06661abc8) at pthread_cond_wait.c:638
#3  0x00007fd1d0f56e7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007fd1d0f56a7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fd1ded18609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fd1df80a293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fd1c6849700 (LWP 24853)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e06661ac18) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e06661abc8, cond=0x55e06661abf0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55e06661abf0, mutex=0x55e06661abc8) at pthread_cond_wait.c:638
#3  0x00007fd1d0f56e7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007fd1d0f56a7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fd1ded18609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fd1df80a293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fd1c2849700 (LWP 24852)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e06661ac18) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e06661abc8, cond=0x55e06661abf0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55e06661abf0, mutex=0x55e06661abc8) at pthread_cond_wait.c:638
#3  0x00007fd1d0f56e7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007fd1d0f56a7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fd1ded18609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fd1df80a293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fd1d0bbc700 (LWP 24851)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e06661ac18) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e06661abc8, cond=0x55e06661abf0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55e06661abf0, mutex=0x55e06661abc8) at pthread_cond_wait.c:638
#3  0x00007fd1d0f56e7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007fd1d0f56a7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fd1ded18609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fd1df80a293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fd1d9792700 (LWP 24844)):
#0  0x00007fd1df7fdaff in __GI___poll (fds=0x7fd1cc004e60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fd1de2f636e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fd1de2f64a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd1dfdcb61b in QEventDispatcherGlib::processEvents (this=0x7fd1cc000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fd1dfd6f8ab in QEventLoop::exec (this=this@entry=0x7fd1d9791bf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fd1dfb892c2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fd1e002cf4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fd1dfb8a45c in QThreadPrivate::start (arg=0x7fd1e00b0d80) at thread/qthread_unix.cpp:329
#8  0x00007fd1ded18609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fd1df80a293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fd1dbc92980 (LWP 24839)):
[KCrash Handler]
#4  0x00007fd1d846ec69 in StampAnnotationWidget::createStyleWidget (this=0x55e0669c6be0, formlayout=0x55e0669c8d60) at ./part/annotationwidgets.cpp:442
#5  0x00007fd1d84699c4 in AnnotationWidget::createAppearanceWidget (this=this@entry=0x55e0669c6be0) at ./part/annotationwidgets.cpp:247
#6  0x00007fd1d84699e9 in AnnotationWidget::appearanceWidget (this=0x55e0669c6be0) at ./part/annotationwidgets.cpp:219
#7  0x00007fd1d8422207 in EditAnnotToolDialog::rebuildAppearanceBox (this=this@entry=0x7ffc0f5b4490) at ./part/editannottooldialog.cpp:337
#8  0x00007fd1d8424045 in EditAnnotToolDialog::slotTypeChanged (this=0x7ffc0f5b4490) at ./part/editannottooldialog.cpp:460
#9  0x00007fd1dfda7dce in QtPrivate::QSlotObjectBase::call (a=0x7ffc0f5b3370, r=0x7ffc0f5b4490, this=0x55e0669c2170) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false> (sender=0x55e06699cab0, signal_index=12, argv=0x7ffc0f5b3370) at kernel/qobject.cpp:3886
#11 0x00007fd1dfda1197 in QMetaObject::activate (sender=sender@entry=0x55e06699cab0, m=m@entry=0x7fd1e0e01a60 <QComboBox::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7ffc0f5b3370) at kernel/qobject.cpp:3946
#12 0x00007fd1e09f3035 in QComboBox::currentIndexChanged (this=this@entry=0x55e06699cab0, _t1=<optimized out>) at .moc/moc_qcombobox.cpp:538
#13 0x00007fd1e09f5526 in QComboBoxPrivate::_q_emitCurrentIndexChanged (this=this@entry=0x55e0669ae930, index=...) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:62
#14 0x00007fd1e09f7f8d in QComboBoxPrivate::setCurrentIndex (this=this@entry=0x55e0669ae930, mi=...) at widgets/qcombobox.cpp:2327
#15 0x00007fd1e09f81ad in QComboBoxPrivate::_q_itemSelected (this=0x55e0669ae930, item=...) at widgets/qcombobox.cpp:1428
#16 0x00007fd1e09fde35 in QComboBox::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffc0f5b3620) at widgets/qcombobox.h:276
#17 0x00007fd1dfda7e00 in doActivate<false> (sender=0x7fd1d4008f00, signal_index=7, argv=0x7ffc0f5b3620) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#18 0x00007fd1dfda1197 in QMetaObject::activate (sender=sender@entry=0x7fd1d4008f00, m=m@entry=0x7fd1e0e019a0 <QComboBoxPrivateContainer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc0f5b3620) at kernel/qobject.cpp:3946
#19 0x00007fd1e09f30e6 in QComboBoxPrivateContainer::itemSelected (this=this@entry=0x7fd1d4008f00, _t1=...) at .moc/moc_qcombobox_p.cpp:348
#20 0x00007fd1e09f395a in QComboBoxPrivateContainer::eventFilter (this=0x7fd1d4008f00, o=0x55e0669bad50, e=0x7ffc0f5b3b90) at widgets/qcombobox.cpp:820
#21 0x00007fd1dfd70b13 in QCoreApplicationPrivate::sendThroughObjectEventFilters (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1190
#22 QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x55e0669bad50, event=event@entry=0x7ffc0f5b3b90) at kernel/qcoreapplication.cpp:1179
#23 0x00007fd1e08e8db2 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55e0669bad50, e=0x7ffc0f5b3b90) at kernel/qapplication.cpp:3626
#24 0x00007fd1e08f1e77 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3076
#25 0x00007fd1dfd70daa in QCoreApplication::notifyInternal2 (receiver=0x55e0669bad50, event=0x7ffc0f5b3b90) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#26 0x00007fd1e08f10a7 in QApplicationPrivate::sendMouseEvent (receiver=0x55e0669bad50, event=event@entry=0x7ffc0f5b3b90, alienWidget=0x55e0669bad50, nativeWidget=0x7fd1d4008f00, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#27 0x00007fd1e09479de in QWidgetWindow::handleMouseEvent (this=0x55e066803370, event=0x7ffc0f5b4010) at /usr/include/c++/9/bits/atomic_base.h:413
#28 0x00007fd1e094a264 in QWidgetWindow::event (event=0x7ffc0f5b4010, this=0x55e066803370) at kernel/qwidgetwindow.cpp:300
#29 QWidgetWindow::event (this=0x55e066803370, event=0x7ffc0f5b4010) at kernel/qwidgetwindow.cpp:239
#30 0x00007fd1e08e8dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55e066803370, e=0x7ffc0f5b4010) at kernel/qapplication.cpp:3632
#31 0x00007fd1e08f1bb8 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3156
#32 0x00007fd1dfd70daa in QCoreApplication::notifyInternal2 (receiver=0x55e066803370, event=0x7ffc0f5b4010) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#33 0x00007fd1e01f24d8 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at kernel/qguiapplication.cpp:2282
#34 0x00007fd1e01f3b45 in QGuiApplicationPrivate::processWindowSystemEvent (e=0x55e0669b6330) at kernel/qguiapplication.cpp:2002
#35 0x00007fd1e01cb7ac in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#36 0x00007fd1db870eae in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#37 0x00007fd1de2f617d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007fd1de2f6400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fd1de2f64a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007fd1dfdcb602 in QEventDispatcherGlib::processEvents (this=0x55e065d2f300, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#41 0x00007fd1dfd6f8ab in QEventLoop::exec (this=this@entry=0x7ffc0f5b43b0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#42 0x00007fd1e0af48fd in QDialog::exec (this=0x7ffc0f5b4490) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#43 0x00007fd1d8427fed in WidgetAnnotTools::slotAdd (this=0x55e0668f63c0) at ./part/widgetannottools.cpp:143
#44 0x00007fd1dfda7dce in QtPrivate::QSlotObjectBase::call (a=0x7ffc0f5b4630, r=0x55e0668f63c0, this=0x55e0668ffe30) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#45 doActivate<false> (sender=0x55e0668fce40, signal_index=9, argv=0x7ffc0f5b4630) at kernel/qobject.cpp:3886
#46 0x00007fd1dfda1197 in QMetaObject::activate (sender=sender@entry=0x55e0668fce40, m=m@entry=0x7fd1e0dff600 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffc0f5b4630) at kernel/qobject.cpp:3946
#47 0x00007fd1e09e0cb6 in QAbstractButton::clicked (this=this@entry=0x55e0668fce40, _t1=<optimized out>) at .moc/moc_qabstractbutton.cpp:308
#48 0x00007fd1e09e0ede in QAbstractButtonPrivate::emitClicked (this=0x55e0668fd910) at widgets/qabstractbutton.cpp:415
#49 0x00007fd1e09e23b3 in QAbstractButtonPrivate::click (this=0x55e0668fd910) at widgets/qabstractbutton.cpp:408
#50 0x00007fd1e09e2575 in QAbstractButton::mouseReleaseEvent (this=0x55e0668fce40, e=0x7ffc0f5b4bf0) at widgets/qabstractbutton.cpp:1044
#51 0x00007fd1e092bcf6 in QWidget::event (this=0x55e0668fce40, event=0x7ffc0f5b4bf0) at kernel/qwidget.cpp:8664
#52 0x00007fd1e09e37a3 in QAbstractButton::event (this=this@entry=0x55e0668fce40, e=e@entry=0x7ffc0f5b4bf0) at widgets/qabstractbutton.cpp:1001
#53 0x00007fd1e0a86dd3 in QPushButton::event (this=0x55e0668fce40, e=0x7ffc0f5b4bf0) at widgets/qpushbutton.cpp:709
#54 0x00007fd1e08e8dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55e0668fce40, e=0x7ffc0f5b4bf0) at kernel/qapplication.cpp:3632
#55 0x00007fd1e08f1e77 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3076
#56 0x00007fd1dfd70daa in QCoreApplication::notifyInternal2 (receiver=0x55e0668fce40, event=0x7ffc0f5b4bf0) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#57 0x00007fd1e08f10a7 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x55e0668fce40, event=event@entry=0x7ffc0f5b4bf0, alienWidget=alienWidget@entry=0x55e0668fce40, nativeWidget=0x55e0667c3e50, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#58 0x00007fd1e0946f44 in QWidgetWindow::handleMouseEvent (this=0x55e06681c470, event=0x7ffc0f5b5070) at /usr/include/c++/9/bits/atomic_base.h:413
#59 0x00007fd1e094a264 in QWidgetWindow::event (event=0x7ffc0f5b5070, this=0x55e06681c470) at kernel/qwidgetwindow.cpp:300
#60 QWidgetWindow::event (this=0x55e06681c470, event=0x7ffc0f5b5070) at kernel/qwidgetwindow.cpp:239
#61 0x00007fd1e08e8dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55e06681c470, e=0x7ffc0f5b5070) at kernel/qapplication.cpp:3632
#62 0x00007fd1e08f1bb8 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3156
#63 0x00007fd1dfd70daa in QCoreApplication::notifyInternal2 (receiver=0x55e06681c470, event=0x7ffc0f5b5070) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#64 0x00007fd1e01f24d8 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at kernel/qguiapplication.cpp:2282
#65 0x00007fd1e01f3b45 in QGuiApplicationPrivate::processWindowSystemEvent (e=0x55e0669a56c0) at kernel/qguiapplication.cpp:2002
#66 0x00007fd1e01cb7ac in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#67 0x00007fd1db870eae in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#68 0x00007fd1de2f617d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#69 0x00007fd1de2f6400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#70 0x00007fd1de2f64a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#71 0x00007fd1dfdcb602 in QEventDispatcherGlib::processEvents (this=0x55e065d2f300, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#72 0x00007fd1dfd6f8ab in QEventLoop::exec (this=this@entry=0x7ffc0f5b5410, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#73 0x00007fd1dfd77a64 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#74 0x000055e064da0e3a in main (argc=<optimized out>, argv=<optimized out>) at ./shell/main.cpp:103
[Inferior 1 (process 24839) detached]

Reported using DrKonqi
Comment 1 Albert Astals Cid 2021-12-23 21:52:02 UTC
Crashes doing that on any  file or a particular file?
Comment 2 Carlos Castro 2021-12-24 16:50:57 UTC
Created attachment 144835 [details]
New crash information added by DrKonqi

okular (21.12.0) using Qt 5.15.3

- What I was doing when the application crashed:

Okular crashes every time I try to create a new stamp.

- Unusual behavior I noticed:
 
I go to PREFERENCES and then to NOTES and when placing add I choose the option STAMPS and Okular crashes every time.

- Custom settings of the application:

None

-- Backtrace (Reduced):
#4  0x00007f91312f6c69 in StampAnnotationWidget::createStyleWidget (this=0x557ff8e1a520, formlayout=0x557ff8e2e9e0) at ./part/annotationwidgets.cpp:442
#5  0x00007f91312f19c4 in AnnotationWidget::createAppearanceWidget (this=this@entry=0x557ff8e1a520) at ./part/annotationwidgets.cpp:247
#6  0x00007f91312f19e9 in AnnotationWidget::appearanceWidget (this=0x557ff8e1a520) at ./part/annotationwidgets.cpp:219
#7  0x00007f91312aa207 in EditAnnotToolDialog::rebuildAppearanceBox (this=this@entry=0x7ffe675a0770) at ./part/editannottooldialog.cpp:337
#8  0x00007f91312ac045 in EditAnnotToolDialog::slotTypeChanged (this=0x7ffe675a0770) at ./part/editannottooldialog.cpp:460
Comment 3 Albert Astals Cid 2021-12-26 21:26:52 UTC
ohhhhhh

You're no trying to insert a stamp annotation to the document you're trying to add a stamp annotation to quick tools
Comment 4 Bug Janitor Service 2021-12-26 21:35:16 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/524
Comment 5 Albert Astals Cid 2021-12-26 22:03:04 UTC
Git commit 2a041d484591c5f832247e7036432cb6e8183324 by Albert Astals Cid.
Committed on 26/12/2021 at 21:34.
Pushed by aacid into branch 'release/21.12'.

Fix crash when adding stamps to the quick annotations

M  +14   -10   part/annotationwidgets.cpp

https://invent.kde.org/graphics/okular/commit/2a041d484591c5f832247e7036432cb6e8183324
Comment 6 Albert Astals Cid 2022-01-21 12:11:57 UTC
*** Bug 448864 has been marked as a duplicate of this bug. ***