https://bugs.kde.org/show_bug.cgi?id=484929

            Bug ID: 484929
           Summary: Okular crashes when changing annotations
    Classification: Applications
           Product: okular
           Version: 24.02.1
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: okular-devel@kde.org
          Reporter: hoheneg...@web.de
  Target Milestone: ---

Application: okular (24.02.1)

Qt Version: 6.6.2
Frameworks Version: 6.0.0
Operating System: Linux 6.5.0-10027-tuxedo x86_64
Windowing System: Wayland
Distribution: KDE neon 6.0
DrKonqi: 6.0.3 [KCrashBackend]

-- Information about the crash:
With all PDFs I have tried so far okular crashes when I modify annotations
since upgrade to current plasma, frameworks and apps.
I also switched from Xorg to Wayland recently.
The behaviour can be triggered by adding a note (Pop-up or Inline) and deleting
it again by selecting that option from the right-click menu.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Aborted

[KCrash Handler]
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139534905563840)
at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=139534905563840) at
./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=139534905563840, signo=signo@entry=6) at
./nptl/pthread_kill.c:89
#7  0x00007ee804042476 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#8  0x00007ee8040287f3 in __GI_abort () at ./stdlib/abort.c:79
#9  0x00007ee804cdb597 in qAbort () at ./src/corelib/global/qglobal.cpp:161
#10 0x00007ee804cd67f5 in qt_message_fatal<QString&> (message=..., context=...)
at ./src/corelib/global/qlogging.cpp:2003
#11 qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef
__va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, context=...,
msg=<optimized out>, ap=ap@entry=0x7ffc4d4c1340) at
./src/corelib/global/qlogging.cpp:378
#12 0x00007ee804cdbfc3 in QMessageLogger::fatal (this=<optimized out>,
msg=<optimized out>) at ./src/corelib/global/qlogging.cpp:901
#13 0x00007ee804ca0387 in qt_assert_x (where=<optimized out>,
what=what@entry=0x7ee7e43dae98 "Called object is not of the correct type (class
destructor may have already run)", file=file@entry=0x7ee7e43dae58
"/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h",
line=line@entry=129) at ./src/corelib/global/qassert.cpp:77
#14 0x00007ee7e43069cd in QtPrivate::assertObjectType<AnnotWindow>
(o=<optimized out>) at
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:129
#15 0x00007ee7e4306c86 in QtPrivate::assertObjectType<AnnotWindow>
(o=0x591570f151e0) at
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:526
#16 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void,
void (AnnotWindow::*)()>::call(void (AnnotWindow::*)(), AnnotWindow*, void**)
(arg=<optimized out>, o=0x591570f151e0, f=(void (AnnotWindow::*)(AnnotWindow *
const)) 0x7ee7e4308c50 <AnnotWindow::slotsaveWindowText()>) at
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:144
#17 QtPrivate::FunctionPointer<void
(AnnotWindow::*)()>::call<QtPrivate::List<>, void>(void (AnnotWindow::*)(),
AnnotWindow*, void**) (arg=<optimized out>, o=0x591570f151e0, f=(void
(AnnotWindow::*)(AnnotWindow * const)) 0x7ee7e4308c50
<AnnotWindow::slotsaveWindowText()>) at
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:182
#18 QtPrivate::QCallableObject<void (AnnotWindow::*)(), QtPrivate::List<>,
void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*)
(which=<optimized out>, this_=<optimized out>, r=0x591570f151e0, a=<optimized
out>, ret=<optimized out>) at
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:520
#19 0x00007ee804c3c3ce in QtPrivate::QSlotObjectBase::call (a=<optimized out>,
r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized
out>, a=<optimized out>) at ./src/corelib/kernel/qobjectdefs_impl.h:433
#20 doActivate<false> (sender=0x591571519e60, signal_index=7,
argv=0x7ffc4d4c1508) at ./src/corelib/kernel/qobject.cpp:4039
#21 0x00007ee804c3c6ab in doActivate<false> (sender=0x59157152fb30,
signal_index=3, argv=0x7ffc4d4c15d8) at ./src/corelib/kernel/qobject.cpp:4051
#22 0x00007ee805c13c28 in QWidgetTextControl::qt_metacall (this=0x59157152fb30,
_c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffc4d4c16d8) at
./obj-x86_64-linux-gnu/src/widgets/Widgets_autogen/include/moc_qwidgettextcontrol_p.cpp:741
#23 0x00007ee804c3c4b8 in doActivate<false> (sender=0x59157152fd10,
signal_index=4, argv=0x7ffc4d4c16d8) at ./src/corelib/kernel/qobject.cpp:4065
#24 0x00007ee80534ab3c in QTextDocumentPrivate::finishEdit
(this=0x591571390f40) at ./src/gui/text/qtextdocument_p.cpp:1218
#25 0x00007ee805329961 in QSyntaxHighlighter::setDocument
(this=this@entry=0x5915715981e0, doc=doc@entry=0x0) at
./src/gui/text/qsyntaxhighlighter.cpp:302
#26 0x00007ee805329dbd in QSyntaxHighlighter::~QSyntaxHighlighter
(this=<optimized out>, this=<optimized out>) at
./src/gui/text/qsyntaxhighlighter.cpp:284
#27 0x00007ee7e4463d5d in Sonnet::Highlighter::~Highlighter (this=<optimized
out>, this=<optimized out>) at ./src/ui/highlighter.cpp:168
#28 0x00007ee804bcb2ca in QObjectPrivate::deleteChildren
(this=this@entry=0x591571598640) at ./src/corelib/kernel/qobject.cpp:2207
#29 0x00007ee804bd2198 in QObject::~QObject (this=<optimized out>,
this=<optimized out>) at ./src/corelib/kernel/qobject.cpp:1159
#30 0x00007ee7e4464253 in Sonnet::SpellCheckDecorator::~SpellCheckDecorator
(this=<optimized out>, this=<optimized out>) at
./src/ui/spellcheckdecorator.cpp:234
#31 0x00007ee7e45dd627 in KTextDecorator::~KTextDecorator (this=<optimized
out>, this=<optimized out>) at ./src/widgets/ktextedit.cpp:32
#32 KTextDecorator::~KTextDecorator (this=<optimized out>, this=<optimized
out>) at ./src/widgets/ktextedit.cpp:32
#33 0x00007ee7e45d47f6 in KTextEditPrivate::~KTextEditPrivate (this=<optimized
out>, this=<optimized out>) at ./src/widgets/ktextedit_p.h:47
#34 0x00007ee7e45d492d in KTextEditPrivate::~KTextEditPrivate (this=<optimized
out>, this=<optimized out>) at ./src/widgets/ktextedit_p.h:56
#35 0x00007ee7e45dc5ff in std::default_delete<KTextEditPrivate>::operator()
(__ptr=<optimized out>, this=<optimized out>) at
/usr/include/c++/11/bits/unique_ptr.h:85
#36 std::unique_ptr<KTextEditPrivate, std::default_delete<KTextEditPrivate>
>::~unique_ptr (this=<optimized out>, this=<optimized out>) at
/usr/include/c++/11/bits/unique_ptr.h:361
#37 KTextEdit::~KTextEdit (this=<optimized out>, this=<optimized out>) at
./src/widgets/ktextedit.cpp:258
#38 0x00007ee7e45dc61d in KTextEdit::~KTextEdit (this=<optimized out>,
this=<optimized out>) at ./src/widgets/ktextedit.cpp:258
#39 0x00007ee804bcb2ca in QObjectPrivate::deleteChildren
(this=this@entry=0x5915714a7da0) at ./src/corelib/kernel/qobject.cpp:2207
#40 0x00007ee805e18458 in QWidget::~QWidget (this=<optimized out>,
this=<optimized out>) at ./src/widgets/kernel/qwidget.cpp:1532
#41 0x00007ee7e4308c1d in AnnotWindow::~AnnotWindow (this=<optimized out>,
this=<optimized out>) at ./part/annotwindow.cpp:272
#42 0x00007ee804bcc793 in QObject::event (this=0x591570f151e0,
e=0x591571211330) at ./src/corelib/kernel/qobject.cpp:1424
#43 0x00007ee805d6d626 in QFrame::event (this=0x591570f151e0, e=0x591571211330)
at ./src/widgets/widgets/qframe.cpp:515
#44 0x00007ee805df181b in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x591570f151e0, e=0x591571211330) at
./src/widgets/kernel/qapplication.cpp:3296
#45 0x00007ee804c75e08 in QCoreApplication::notifyInternal2
(receiver=0x591570f151e0, event=event@entry=0x591571211330) at
./src/corelib/kernel/qcoreapplication.cpp:1121
#46 0x00007ee804c75e4d in QCoreApplication::sendEvent (receiver=<optimized
out>, event=event@entry=0x591571211330) at
./src/corelib/kernel/qcoreapplication.cpp:1539
#47 0x00007ee804c76000 in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x59156ff48db0) at
./src/corelib/kernel/qcoreapplication.cpp:1901
#48 0x00007ee804a584f7 in postEventSourceDispatch (s=0x59156ffcd790) at
./src/corelib/kernel/qeventdispatcher_glib.cpp:243
#49 0x00007ee803b90d3b in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007ee803be6258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007ee803b8e3e3 in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#52 0x00007ee804a55c30 in QEventDispatcherGlib::processEvents
(this=0x59156ff78d90, flags=...) at
./src/corelib/kernel/qeventdispatcher_glib.cpp:393
#53 0x00007ee804c7fceb in QEventLoop::exec (this=0x7ffc4d4c1eb0, flags=...) at
./src/corelib/global/qflags.h:34
#54 0x00007ee804c7a36c in QCoreApplication::exec () at
./src/corelib/global/qflags.h:74
#55 0x00007ee8050e9a20 in QGuiApplication::exec () at
./src/gui/kernel/qguiapplication.cpp:1925
#56 0x00007ee805dee469 in QApplication::exec () at
./src/widgets/kernel/qapplication.cpp:2574
#57 0x000059156e8923bf in main (argc=<optimized out>, argv=<optimized out>) at
./shell/main.cpp:103
[Inferior 1 (process 3841462) detached]

Reported using DrKonqi

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to