Bug 419020

Summary: Crash after making a text shape. [gdb backtrace]
Product: [Applications] krita Reporter: wolthera <griffinvalley>
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description wolthera 2020-03-19 14:28:09 UTC
SUMMARY
Crash after making a text shape.

git e6f5b4a

GDB backtrace
==================================
Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x00007ffff0344bff in qHash<KoShape*> (t=<error reading variable>, seed=1882038691)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhashfunctions.h:119
119     { return qHash(t) ^ seed; }
(gdb) thread apply all backtrace

Thread 165 (Thread 0x7fff8a7fc700 (LWP 28064)):
#0  0x00007fffeb4dced9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7fff8a7fbbf0, expected=0, 
    futex_word=0x5555603c6bf0) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7fff8a7fbca0, mutex=0x5555603c6ba0, cond=0x5555603c6bc8) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=0x5555603c6bc8, mutex=0x5555603c6ba0, abstime=0x7fff8a7fbca0) at pthread_cond_wait.c:667
#3  0x00007ffff2e79d2a in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff2e79ee6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff2e77275 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff2e737ec in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffeb4d66db in start_thread (arg=0x7fff8a7fc700) at pthread_create.c:463
#8  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 162 (Thread 0x7fff8b7fe700 (LWP 28061)):
#0  0x00007fffeb4dced9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7fff8b7fdbf0, expected=0, 
    futex_word=0x555560437a34) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7fff8b7fdca0, mutex=0x5555604379e0, cond=0x555560437a08) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=0x555560437a08, mutex=0x5555604379e0, abstime=0x7fff8b7fdca0) at pthread_cond_wait.c:667
#3  0x00007ffff2e79d2a in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff2e79ee6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff2e77275 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff2e737ec in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffeb4d66db in start_thread (arg=0x7fff8b7fe700) at pthread_create.c:463
#8  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 16 (Thread 0x7fff9b4cf700 (LWP 24574)):
#0  0x00007ffff2543bf9 in __GI___poll (fds=0x7fff8c002de0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffe9bd85c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffe9bd86dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff30c20db in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff306163a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff2e72317 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff2e737ec in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffeb4d66db in start_thread (arg=0x7fff9b4cf700) at pthread_create.c:463
#8  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7fff9bcd0700 (LWP 24565)):
#0  0x00007ffff2543bf9 in __GI___poll (fds=0x7fff94006140, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffe9bd85c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffe9bd86dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff30c20bc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff306163a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff2e72317 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffd4c4ca86 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007ffff2e737ec in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#8  0x00007fffeb4d66db in start_thread (arg=0x7fff9bcd0700) at pthread_create.c:463
#9  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7fffb0ebc700 (LWP 24556)):
#0  0x00007ffff2543bf9 in __GI___poll (fds=0x7fff9c0029e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffe9bd85c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffe9bd86dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff30c20bc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff306163a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff2e72317 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffd47b7605 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007ffff2e737ec in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffeb4d66db in start_thread (arg=0x7fffb0ebc700) at pthread_create.c:463
#9  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7fffabfff700 (LWP 24522)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff2e76020 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffff2e75e92 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffff50384ca in KisTileDataSwapper::waitForWork (this=
    0x7ffff5939a20 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>)
    at /home/wolthera/krita/src/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007ffff50384e6 in KisTileDataSwapper::run (
    this=0x7ffff5939a20 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>)
    at /home/wolthera/krita/src/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007ffff2e737ec in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffeb4d66db in start_thread (arg=0x7fffabfff700) at pthread_create.c:463
#7  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fffb3803700 (LWP 24508)):
#0  0x00007ffff2543bf9 in __GI___poll (fds=0x7fffac002de0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffe9bd85c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffe9bd86dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff30c20bc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff306163a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff2e72317 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff2e737ec in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffeb4d66db in start_thread (arg=0x7fffb3803700) at pthread_create.c:463
#8  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fffcccfa700 (LWP 24238)):
#0  0x00007ffff2543bf9 in __GI___poll (fds=0x7fffc801d610, nfds=4, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffe9bd85c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffe9bd86dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff30c20bc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff306163a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff2e72317 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffe8bdf555 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007ffff2e737ec in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffeb4d66db in start_thread (arg=0x7fffcccfa700) at pthread_create.c:463
#9  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fffdfe64700 (LWP 24237)):
#0  0x00007fffeb4dc9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x555557443c8c)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x555557443c38, cond=0x555557443c60) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x555557443c60, mutex=0x555557443c38) at pthread_cond_wait.c:655
#3  0x00007fffdcb6fecb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fffdcb6fac7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fffeb4d66db in start_thread (arg=0x7fffdfe64700) at pthread_create.c:463
#6  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fffd77ce700 (LWP 24228)):
#0  0x00007ffff2543bf9 in __GI___poll (fds=0x7fffd77cdca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffe8e64747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fffe8e6636a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffe2807cc0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007ffff2e737ec in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fffeb4d66db in start_thread (arg=0x7fffd77ce700) at pthread_create.c:463
#6  0x00007ffff255088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ffff7f88800 (LWP 24040)):
#0  0x00007ffff0344bff in qHash<KoShape*> (t=<error reading variable>, seed=1882038691)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhashfunctions.h:119
#1  0x00007ffff03442ba in QHash<KoShape*, QHashDummyValue>::findNode (this=0x7fffffffc470, akey=<error reading variable>, 
    ahp=0x7fffffffc2f4) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:950
#2  0x00007ffff03409b0 in QHash<KoShape*, QHashDummyValue>::insert (this=0x7fffffffc470, akey=<error reading variable>, 
    avalue=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:790
#3  0x00007ffff033d336 in QSet<KoShape*>::insert (this=0x7fffffffc470, value=<error reading variable>)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qset.h:208
#4  0x00007ffff03787de in QSet<KoShape*>::QSet<QList<KoShape*>::const_iterator, true> (this=0x7fffffffc470, first=..., 
    last=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qset.h:66
#5  0x00007ffff0371f37 in KoToolManager::Private::postSwitchTool (this=0x55555e53f4f0, temporary=false)
    at /home/wolthera/krita/src/libs/flake/KoToolManager.cpp:594
#6  0x00007ffff037178e in KoToolManager::Private::switchTool (this=0x55555e53f4f0, tool=0x555563b33970, temporary=false)
    at /home/wolthera/krita/src/libs/flake/KoToolManager.cpp:536
#7  0x00007ffff03719dd in KoToolManager::Private::switchTool (this=0x55555e53f4f0, id=..., temporary=false)
    at /home/wolthera/krita/src/libs/flake/KoToolManager.cpp:561
#8  0x00007ffff036fed1 in KoToolManager::switchToolRequested (
    this=0x7ffff080f770 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder>, id=...)
    at /home/wolthera/krita/src/libs/flake/KoToolManager.cpp:297
#9  0x00007fffb980408c in SvgTextTool::slotTextEditorClosed (this=0x55556666a990)
---Type <return> to continue, or q <return> to quit---
    at /home/wolthera/krita/src/plugins/tools/svgtexttool/SvgTextTool.cpp:255
#10 0x00007fffb9814a6e in SvgTextTool::qt_static_metacall (_o=0x55556666a990, _c=QMetaObject::InvokeMetaMethod, _id=1, 
    _a=0x7fffffffc700)
    at /home/wolthera/krita/build/plugins/tools/svgtexttool/krita_tool_svgtext_autogen/EWIEGA46WW/moc_SvgTextTool.cpp:93
#11 0x00007ffff309ddc9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007fffb98149e9 in SvgTextEditor::textEditorClosed (this=0x5555602d9040)
    at /home/wolthera/krita/build/plugins/tools/svgtexttool/krita_tool_svgtext_autogen/EWIEGA46WW/moc_SvgTextEditor.cpp:424
#13 0x00007fffb97f5676 in SvgTextEditor::slotCloseEditor (this=0x5555602d9040)
    at /home/wolthera/krita/src/plugins/tools/svgtexttool/SvgTextEditor.cpp:1249
#14 0x00007fffb9814225 in SvgTextEditor::qt_static_metacall (_o=0x5555602d9040, _c=QMetaObject::InvokeMetaMethod, _id=4, 
    _a=0x7fffffffc870)
    at /home/wolthera/krita/build/plugins/tools/svgtexttool/krita_tool_svgtext_autogen/EWIEGA46WW/moc_SvgTextEditor.cpp:285
#15 0x00007ffff309ddc9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007ffff40dcdc8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007ffff309ddc9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff4038552 in QAbstractButton::clicked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff403876a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff4039b4a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007ffff4039d3d in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007ffff3f8d7f8 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007ffff3f4c8bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007ffff3f54908 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007ffff6aaa695 in KisApplication::notify (this=0x7fffffffda00, receiver=0x55555f2b7dd0, event=0x7fffffffcfd0)
    at /home/wolthera/krita/src/libs/ui/KisApplication.cpp:705
#26 0x00007ffff3062db8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007ffff3f52f8f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007ffff3fa7eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007ffff3faad1a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007ffff3f4c8bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007ffff3f53ac0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007ffff6aaa695 in KisApplication::notify (this=0x7fffffffda00, receiver=0x555560438940, event=0x7fffffffd4e0)
    at /home/wolthera/krita/src/libs/ui/KisApplication.cpp:705
#33 0x00007ffff3062db8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007ffff365ef95 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#35 0x00007ffff36600c5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#36 0x00007ffff363901b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#37 0x00007fffe2808c8a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#38 0x00007fffe9bd8417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fffe9bd8650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007fffe9bd86dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#41 0x00007ffff30c20bc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007ffff306163a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x00007ffff306adb0 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x0000555555e523e6 in main (argc=1, argv=0x7fffffffdb68) at /home/wolthera/krita/src/krita/main.cc:597
(gdb)
Comment 1 wolthera 2020-03-19 14:34:38 UTC

*** This bug has been marked as a duplicate of bug 412740 ***