https://bugs.kde.org/show_bug.cgi?id=408742
Bug ID: 408742 Summary: Ktouch crashes when closing the Course and Keyboard Layout Editor Product: ktouch Version: unspecified Platform: Archlinux Packages OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: sebastian.gottfr...@posteo.de Reporter: 1238...@gmail.com Target Milestone: --- Application: ktouch (19.04.2) Qt Version: 5.12.3 Frameworks Version: 5.59.0 Operating System: Linux 5.1.9-arch1-1-ARCH x86_64 Distribution (Platform): Archlinux Packages -- Information about the crash: - What I was doing when the application crashed: I use colemak-dh, a custom keyboard layout. Ktouch doesn't recognise it and defaults to English (US). I open the settings to try and change/select a different course but it always crashes the application when I close said settings window. The crash can be reproduced every time. -- Backtrace: Application: Typewriting Trainer (ktouch), signal: Segmentation fault Using host libthread_db library "/usr/lib/libthread_db.so.1". [Current thread is 1 (Thread 0x7fe4df470040 (LWP 17372))] Thread 5 (Thread 0x7fe4caf4c700 (LWP 17379)): #0 0x00007fe4e3339bac in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0 #1 0x00007fe4e38ae91c in QWaitConditionPrivate::wait (deadline=..., this=0x55f48dd55320) at thread/qwaitcondition_unix.cpp:146 #2 QWaitCondition::wait (this=<optimized out>, mutex=0x55f48dd707a0, deadline=...) at thread/qwaitcondition_unix.cpp:225 #3 0x00007fe4e38aea0a in QWaitCondition::wait (this=0x55f48dd707a8, mutex=0x55f48dd707a0, time=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qdeadlinetimer.h:68 #4 0x00007fe4e4b106ed in ?? () from /usr/lib/libQt5Quick.so.5 #5 0x00007fe4e4b1095c in ?? () from /usr/lib/libQt5Quick.so.5 #6 0x00007fe4e38a863c in QThreadPrivate::start (arg=0x55f48dd70720) at thread/qthread_unix.cpp:361 #7 0x00007fe4e3333a92 in start_thread () from /usr/lib/libpthread.so.0 #8 0x00007fe4e3447cd3 in clone () from /usr/lib/libc.so.6 Thread 4 (Thread 0x7fe4d495e700 (LWP 17376)): #0 0x00007fe4e343d0d1 in poll () from /usr/lib/libc.so.6 #1 0x00007fe4e07417c0 in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007fe4e07418ae in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #3 0x00007fe4e3ab8984 in QEventDispatcherGlib::processEvents (this=0x7fe4c4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #4 0x00007fe4e3a624dc in QEventLoop::exec (this=this@entry=0x7fe4d495dd80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140 #5 0x00007fe4e38a7239 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120 #6 0x00007fe4e47bd059 in ?? () from /usr/lib/libQt5Qml.so.5 #7 0x00007fe4e38a863c in QThreadPrivate::start (arg=0x55f48d285b90) at thread/qthread_unix.cpp:361 #8 0x00007fe4e3333a92 in start_thread () from /usr/lib/libpthread.so.0 #9 0x00007fe4e3447cd3 in clone () from /usr/lib/libc.so.6 Thread 3 (Thread 0x7fe4d7fff700 (LWP 17375)): #0 0x00007fe4e3438c54 in read () from /usr/lib/libc.so.6 #1 0x00007fe4e06ef961 in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007fe4e073ff70 in g_main_context_check () from /usr/lib/libglib-2.0.so.0 #3 0x00007fe4e0741766 in ?? () from /usr/lib/libglib-2.0.so.0 #4 0x00007fe4e07418ae in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #5 0x00007fe4e3ab8984 in QEventDispatcherGlib::processEvents (this=0x7fe4cc000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #6 0x00007fe4e3a624dc in QEventLoop::exec (this=this@entry=0x7fe4d7ffeda0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140 #7 0x00007fe4e38a7239 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120 #8 0x00007fe4e38a863c in QThreadPrivate::start (arg=0x55f48d2491d0) at thread/qthread_unix.cpp:361 #9 0x00007fe4e3333a92 in start_thread () from /usr/lib/libpthread.so.0 #10 0x00007fe4e3447cd3 in clone () from /usr/lib/libc.so.6 Thread 2 (Thread 0x7fe4dcd1d700 (LWP 17374)): #0 0x00007fe4e3438c54 in read () from /usr/lib/libc.so.6 #1 0x00007fe4e06ef961 in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007fe4e073ff70 in g_main_context_check () from /usr/lib/libglib-2.0.so.0 #3 0x00007fe4e0741766 in ?? () from /usr/lib/libglib-2.0.so.0 #4 0x00007fe4e07418ae in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #5 0x00007fe4e3ab8984 in QEventDispatcherGlib::processEvents (this=0x7fe4d0000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #6 0x00007fe4e3a624dc in QEventLoop::exec (this=this@entry=0x7fe4dcd1cd70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140 #7 0x00007fe4e38a7239 in QThread::exec (this=this@entry=0x7fe4e30e1080 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120 #8 0x00007fe4e305fba6 in QDBusConnectionManager::run (this=0x7fe4e30e1080 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178 #9 0x00007fe4e38a863c in QThreadPrivate::start (arg=0x7fe4e30e1080 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:361 #10 0x00007fe4e3333a92 in start_thread () from /usr/lib/libpthread.so.0 #11 0x00007fe4e3447cd3 in clone () from /usr/lib/libc.so.6 Thread 1 (Thread 0x7fe4df470040 (LWP 17372)): [KCrash Handler] #6 std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0xd0) at /usr/include/c++/8.3.0/bits/atomic_base.h:390 #7 QAtomicOps<int>::load<int> (_q_value=...) at /usr/include/qt/QtCore/qatomic_cxx11.h:227 #8 QBasicAtomicInteger<int>::load (this=0xd0) at /usr/include/qt/QtCore/qbasicatomic.h:103 #9 QtPrivate::RefCount::ref (this=0xd0) at /usr/include/qt/QtCore/qrefcount.h:55 #10 QString::QString (other=..., this=this@entry=0x7ffd68158870) at /usr/include/qt/QtCore/qstring.h:958 #11 Lesson::text (this=0x55f48e4e1090) at /usr/src/debug/ktouch-19.04.2/src/core/lesson.cpp:83 #12 0x000055f48b70f11c in CourseEditor::onLessonTextChanged (this=0x55f48dd59540) at /usr/src/debug/ktouch-19.04.2/src/editor/courseeditor.cpp:340 #13 CourseEditor::onLessonTextChanged (this=0x55f48dd59540) at /usr/src/debug/ktouch-19.04.2/src/editor/courseeditor.cpp:333 #14 0x00007fe4e3a8e31b in QtPrivate::QSlotObjectBase::call (a=0x7ffd68158940, r=0x55f48dd59540, this=0x55f48e2a72d0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394 #15 QMetaObject::activate (sender=0x55f48e29a100, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3776 #16 0x00007fe4e51eddf6 in QTextEdit::qt_static_metacall (_o=0x55f48e29a100, _c=<optimized out>, _id=<optimized out>, _a=0x7ffd68158a90) at .moc/moc_qtextedit.cpp:325 #17 0x00007fe4e3a8e1d7 in QMetaObject::activate (sender=0x55f48e29ea70, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3795 #18 0x00007fe4e5213ece in QWidgetTextControl::qt_static_metacall (_o=_o@entry=0x55f48e29ea70, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=0, _a=_a@entry=0x7ffd68158c10) at .moc/moc_qwidgettextcontrol_p.cpp:256 #19 0x00007fe4e52141a3 in QWidgetTextControl::qt_metacall (this=0x55f48e29ea70, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffd68158c10) at .moc/moc_qwidgettextcontrol_p.cpp:471 #20 0x00007fe4e3a8e298 in QMetaObject::activate (sender=0x55f48e29eac0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3812 #21 0x00007fe4e4005f26 in QTextDocumentPrivate::finishEdit (this=0x55f48e29eb20) at text/qtextdocument_p.cpp:1246 #22 0x00007fe4e40062f3 in QTextDocumentPrivate::endEditBlock (this=<optimized out>) at text/qtextdocument_p.cpp:1201 #23 QTextDocumentPrivate::endEditBlock (this=<optimized out>) at text/qtextdocument_p.cpp:1184 #24 0x00007fe4e404a15e in QSyntaxHighlighter::setDocument (this=this@entry=0x55f48e297e20, doc=doc@entry=0x0) at text/qsyntaxhighlighter.cpp:341 #25 0x00007fe4e404a38a in QSyntaxHighlighter::~QSyntaxHighlighter (this=0x55f48e297e20, __in_chrg=<optimized out>) at text/qsyntaxhighlighter.cpp:323 #26 0x000055f48b6c9615 in LessonTextHighlighter::~LessonTextHighlighter (this=0x55f48e297e20, __in_chrg=<optimized out>) at /usr/include/qt/QtGui/qtextformat.h:391 #27 LessonTextHighlighter::~LessonTextHighlighter (this=0x55f48e297e20, __in_chrg=<optimized out>) at /usr/src/debug/build/src/ktouch_autogen/3HAKN7MTYQ/../../../../ktouch-19.04.2/src/editor/lessontexthighlighter.h:25 #28 0x00007fe4e3a8c08b in QObjectPrivate::deleteChildren (this=this@entry=0x55f48e297be0) at kernel/qobject.cpp:2010 #29 0x00007fe4e506422f in QWidget::~QWidget (this=0x55f48e297b60, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1708 #30 0x000055f48b6c8a2e in LessonTextEditor::~LessonTextEditor (this=0x55f48e297b60, __in_chrg=<optimized out>) at /usr/src/debug/ktouch-19.04.2/src/editor/lessontexteditor.h:26 #31 LessonTextEditor::~LessonTextEditor (this=0x55f48e297b60, __in_chrg=<optimized out>) at /usr/src/debug/ktouch-19.04.2/src/editor/lessontexteditor.h:26 #32 0x00007fe4e3a8c08b in QObjectPrivate::deleteChildren (this=this@entry=0x55f48e292df0) at kernel/qobject.cpp:2010 #33 0x00007fe4e506422f in QWidget::~QWidget (this=0x55f48e292db0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1708 #34 0x00007fe4e506444a in QWidget::~QWidget (this=0x55f48e292db0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1570 #35 0x00007fe4e3a8c08b in QObjectPrivate::deleteChildren (this=this@entry=0x55f48e281b20) at kernel/qobject.cpp:2010 #36 0x00007fe4e506422f in QWidget::~QWidget (this=0x55f48e281ae0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1708 #37 0x00007fe4e51cfaea in QSplitter::~QSplitter (this=0x55f48e281ae0, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:972 #38 0x00007fe4e3a8c08b in QObjectPrivate::deleteChildren (this=this@entry=0x55f48e284270) at kernel/qobject.cpp:2010 #39 0x00007fe4e506422f in QWidget::~QWidget (this=0x55f48e2818f0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1708 #40 0x00007fe4e515686a in QGroupBox::~QGroupBox (this=0x55f48e2818f0, __in_chrg=<optimized out>) at widgets/qgroupbox.cpp:201 #41 0x00007fe4e3a8c08b in QObjectPrivate::deleteChildren (this=this@entry=0x55f48e26f480) at kernel/qobject.cpp:2010 #42 0x00007fe4e506422f in QWidget::~QWidget (this=0x55f48dd59540, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1708 #43 0x000055f48b6c8e8e in CourseEditor::~CourseEditor (this=0x55f48dd59540, __in_chrg=<optimized out>) at /usr/src/debug/build/src/ktouch_autogen/3HAKN7MTYQ/../../../../ktouch-19.04.2/src/editor/courseeditor.h:34 #44 CourseEditor::~CourseEditor (this=0x55f48dd59540, __in_chrg=<optimized out>) at /usr/src/debug/build/src/ktouch_autogen/3HAKN7MTYQ/../../../../ktouch-19.04.2/src/editor/courseeditor.h:34 #45 0x00007fe4e3a8c08b in QObjectPrivate::deleteChildren (this=this@entry=0x55f48ddbbfa0) at kernel/qobject.cpp:2010 #46 0x00007fe4e506422f in QWidget::~QWidget (this=0x55f48e26e500, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1708 #47 0x00007fe4e51d08fa in QStackedWidget::~QStackedWidget (this=0x55f48e26e500, __in_chrg=<optimized out>) at widgets/qstackedwidget.cpp:145 #48 0x00007fe4e3a8c08b in QObjectPrivate::deleteChildren (this=this@entry=0x55f48e268ab0) at kernel/qobject.cpp:2010 #49 0x00007fe4e506422f in QWidget::~QWidget (this=0x55f48e268a70, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1708 #50 0x00007fe4e51cfaea in QSplitter::~QSplitter (this=0x55f48e268a70, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:972 #51 0x00007fe4e3a8c08b in QObjectPrivate::deleteChildren (this=this@entry=0x55f48dde1b80) at kernel/qobject.cpp:2010 #52 0x00007fe4e506422f in QWidget::~QWidget (this=0x55f48e2423d0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1708 #53 0x000055f48b6c884e in ResourceEditorWidget::~ResourceEditorWidget (this=0x55f48e2423d0, __in_chrg=<optimized out>) at /usr/src/debug/build/src/ktouch_autogen/3HAKN7MTYQ/../../../../ktouch-19.04.2/src/editor/resourceeditorwidget.h:32 #54 ResourceEditorWidget::~ResourceEditorWidget (this=0x55f48e2423d0, __in_chrg=<optimized out>) at /usr/src/debug/build/src/ktouch_autogen/3HAKN7MTYQ/../../../../ktouch-19.04.2/src/editor/resourceeditorwidget.h:32 #55 0x00007fe4e3a8c08b in QObjectPrivate::deleteChildren (this=this@entry=0x55f48e240f30) at kernel/qobject.cpp:2010 #56 0x00007fe4e506422f in QWidget::~QWidget (this=0x55f48e240230, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1708 #57 0x00007fe4e582c6a5 in KMainWindow::~KMainWindow (this=0x55f48e240230, __in_chrg=<optimized out>) at /usr/src/debug/kxmlgui-5.59.0/src/kmainwindow.cpp:405 #58 0x000055f48b702119 in ResourceEditor::~ResourceEditor (this=0x55f48e240230, __in_chrg=<optimized out>) at /usr/src/debug/ktouch-19.04.2/src/editor/resourceeditor.cpp:122 #59 0x00007fe4e3a8eaa1 in QObject::event (this=this@entry=0x55f48e240230, e=e@entry=0x55f48e334440) at kernel/qobject.cpp:1251 #60 0x00007fe4e5068fac in QWidget::event (this=this@entry=0x55f48e240230, event=event@entry=0x55f48e334440) at kernel/qwidget.cpp:9388 #61 0x00007fe4e5176405 in QMainWindow::event (this=this@entry=0x55f48e240230, event=event@entry=0x55f48e334440) at widgets/qmainwindow.cpp:1339 #62 0x00007fe4e582ec2c in KMainWindow::event (this=0x55f48e240230, ev=0x55f48e334440) at /usr/src/debug/kxmlgui-5.59.0/src/kmainwindow.cpp:877 #63 0x00007fe4e5027da4 in QApplicationPrivate::notify_helper (this=this@entry=0x55f48d1ab2f0, receiver=receiver@entry=0x55f48e240230, e=e@entry=0x55f48e334440) at kernel/qapplication.cpp:3736 #64 0x00007fe4e502f3c1 in QApplication::notify (this=0x7ffd68159bd0, receiver=0x55f48e240230, e=0x55f48e334440) at kernel/qapplication.cpp:3483 #65 0x00007fe4e3a63849 in QCoreApplication::notifyInternal2 (receiver=0x55f48e240230, event=0x55f48e334440) at ../../include/QtCore/5.12.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:322 #66 0x00007fe4e3a66928 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55f48d1a6250) at kernel/qcoreapplication.cpp:1799 #67 0x00007fe4e3ab9394 in postEventSourceDispatch (s=0x55f48d20b110) at kernel/qeventdispatcher_glib.cpp:276 #68 0x00007fe4e073f90f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #69 0x00007fe4e0741869 in ?? () from /usr/lib/libglib-2.0.so.0 #70 0x00007fe4e07418ae in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #71 0x00007fe4e3ab8969 in QEventDispatcherGlib::processEvents (this=0x55f48d21bda0, flags=...) at kernel/qeventdispatcher_glib.cpp:422 #72 0x00007fe4e3a624dc in QEventLoop::exec (this=this@entry=0x7ffd68159ac0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140 #73 0x00007fe4e3a6a596 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120 #74 0x000055f48b6bc9d3 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/ktouch-19.04.2/src/main.cpp:130 [Inferior 1 (process 17372) detached] Possible duplicates by query: bug 384419. Reported using DrKonqi -- You are receiving this mail because: You are watching all bug changes.