https://bugs.kde.org/show_bug.cgi?id=394352
--- Comment #3 from Fabio ---
I debugged this issue a bit.
There's a workaround, just disabling "Input auto-resize" from the "Format" menu
avoids the crash when closing the chat window.
The crash is due to KopeteRichTextWidget triggering a size recalc on the
chatview of the window that has just been closed; this leads to a call to
ChatMessagePart::keepScrolledDown() to ensure the view is scrolled down to the
last message. Here's the backtrace up to the method emitting the signal:
#0 ChatMessagePart::keepScrolledDown (this=0xd76ba0) at
/home/fabio/prj/kopete/kopete/chatwindow/chatmessagepart.cpp:650
#1 0x7fffd81c4324 in ChatView::slotRecalculateSize (this=0x10bda20,
difference=0) at /home/fabio/prj/kopete/kopete/chatwindow/chatview.cpp:488
#2 0x7fffd81bf0ab in ChatView::qt_static_metacall (_o=0x10bda20,
_c=QMetaObject::InvokeMetaMethod, _id=25, _a=0x7fffbf30)
at
/home/fabio/prj/kopete/buid/kopete/chatwindow/kopete_chatwindow_autogen/EWIEGA46WW/moc_chatview.cpp:275
#3 0x755d4845 in ?? () from /usr/lib64/libQt5Core.so.5
#4 0x7fffd81641b4 in KopeteRichTextWidget::documentSizeUpdated
(this=0xf474c0, _t1=0)
at
/home/fabio/prj/kopete/buid/kopete/chatwindow/kopetechatwindow_shared_autogen/EWIEGA46WW/moc_kopeterichtextwidget.cpp:250
#5 0x7fffd817c093 in KopeteRichTextWidget::slotDocumentSizeUpdated
(this=0xf474c0) at
/home/fabio/prj/kopete/kopete/chatwindow/kopeterichtextwidget.cpp:152
#6 0x7fffd8163e6d in KopeteRichTextWidget::qt_static_metacall
(_o=0xf474c0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fffc070)
at
/home/fabio/prj/kopete/buid/kopete/chatwindow/kopetechatwindow_shared_autogen/EWIEGA46WW/moc_kopeterichtextwidget.cpp:163
#7 0x755d4845 in ?? () from /usr/lib64/libQt5Core.so.5
#8 0x755d4845 in ?? () from /usr/lib64/libQt5Core.so.5
#9 0x76294a83 in QWidgetTextControl::qt_metacall(QMetaObject::Call,
int, void**) () from /usr/lib64/libQt5Widgets.so.5
#10 0x755d455d in ?? () from /usr/lib64/libQt5Core.so.5
#11 0x75aa8a1c in QTextDocumentPrivate::finishEdit() () from
/usr/lib64/libQt5Gui.so.5
#12 0x76292401 in ?? () from /usr/lib64/libQt5Widgets.so.5
#13 0x7628a32a in QWidgetTextControl::processEvent(QEvent*, QPointF
const&, QWidget*) () from /usr/lib64/libQt5Widgets.so.5
#14 0x7626e219 in QTextEdit::inputMethodEvent(QInputMethodEvent*) ()
from /usr/lib64/libQt5Widgets.so.5
#15 0x760fdace in QWidget::event(QEvent*) () from
/usr/lib64/libQt5Widgets.so.5
#16 0x761a204e in QFrame::event(QEvent*) () from
/usr/lib64/libQt5Widgets.so.5
#17 0x7fffd817dd27 in KopeteRichTextWidget::event (this=0xf474c0,
event=0x7fffc6d0) at
/home/fabio/prj/kopete/kopete/chatwindow/kopeterichtextwidget.cpp:463
#18 0x760c126f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /usr/lib64/libQt5Widgets.so.5
#19 0x755a034a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /usr/lib64/libQt5Core.so.5
#20 0x7372051f in ?? () from /usr/lib64/libQt5WaylandClient.so.5
#21 0x760c4f6d in QApplication::setActiveWindow(QWidget*) () from
/usr/lib64/libQt5Widgets.so.5
#22 0x760e69e7 in QWidgetPrivate::deactivateWidgetCleanup() () from
/usr/lib64/libQt5Widgets.so.5
#23 0x760f2be5 in QWidgetPrivate::hide_sys() () from
/usr/lib64/libQt5Widgets.so.5
#24 0x760f9470 in QWidgetPrivate::hide_helper() () from
/usr/lib64/libQt5Widgets.so.5
#25 0x760fd868 in QWidgetPrivate::setVisible(bool) () from
/usr/lib64/libQt5Widgets.so.5
#26 0x760f98b2 in
QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) () from
/usr/lib64/libQt5Widgets.so.5
#27 0x76118267 in ?? () from /usr/lib64/libQt5Widgets.so.5
#28 0x760c126f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /usr/lib64/libQt5Widgets.so.5
#29 0x755a034a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /usr/lib64/libQt5Core.so.5
#30 0x75980a57 in
QGuiApplicationPrivate::processCloseEvent(QWindowSystemInterfacePrivate::CloseEvent*)
() from /usr/lib64/libQt5Gui.so.5
#31 0x7595b9d5 in bool
QWindowSystemInterfacePrivate::handleWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
()
from /usr/lib64/libQt5Gui.so.5
#32 0x70e4094d in ?? () from /usr/lib64/libffi.so.7
#33 0x70e3ff48 in ?? () from /usr/lib64/libffi.so.7
#34 0x7368deb2 in ?? () from /usr/lib64/libwayland-client.so.0
#35 0x7368a91a in ?? () from /usr/lib64/libwayland-client.so.0
#36 0x7368be6c in wl_display_dispatch_queue_pending () from
/usr/lib64/libwayland-client.so.0
#37 0x7370d0c3 in QtWaylandClient::QWaylandDisplay::flushRequests() ()
from /usr/lib64/libQt5WaylandClient.so.5
#38 0x755d4845 in ?? () from /usr/lib64/libQt5Core.so.5
#39 0x755d7a6f in QSocketNotifier::activated(QSocketDescriptor,
QSocketNotifier: