Bug 408276

Summary: Crashed while trying to create text
Product: [Applications] krita Reporter: Timofey <me>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: halla
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Timofey 2019-06-04 07:46:34 UTC
Application: krita (4.3.0-prealpha)

Qt Version: 5.12.0
Frameworks Version: 5.59.0
Operating System: Linux 4.18.0-20-generic x86_64
Distribution: KDE neon Unstable Edition

-- Information about the crash:
- What I was doing when the application crashed:
1. Create a vector layer and open it
2. Select text tool
3. Spam with mouse clicks and try to create text

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc3b9f1c840 (LWP 6542))]

Thread 7 (Thread 0x7fc36233a700 (LWP 6569)):
#0  0x00007fc3b4dcf0b4 in __GI___libc_read (fd=30, buf=0x7fc362339ae0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fc3ad1212d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc3ad0dc0b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc3ad0dc570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc3ad0dc6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fc3b592e15b in QEventDispatcherGlib::processEvents (this=0x7fc35c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007fc3b58cf64a in QEventLoop::exec (this=this@entry=0x7fc362339cf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007fc3b56f741a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#8  0x00007fc39c8b71c6 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#9  0x00007fc3b56f8bc2 in QThreadPrivate::start (arg=0x56487c68c730) at thread/qthread_unix.cpp:361
#10 0x00007fc3ae9d96db in start_thread (arg=0x7fc36233a700) at pthread_create.c:463
#11 0x00007fc3b4de088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fc372e1d700 (LWP 6568)):
#0  0x00007fc3ad0dbe7f in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fc3ad0dc570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc3ad0dc6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc3b592e15b in QEventDispatcherGlib::processEvents (this=0x7fc364000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fc3b58cf64a in QEventLoop::exec (this=this@entry=0x7fc372e1cd40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007fc3b56f741a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#6  0x00007fc39c3f22e5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007fc3b56f8bc2 in QThreadPrivate::start (arg=0x56487c5f0ae0) at thread/qthread_unix.cpp:361
#8  0x00007fc3ae9d96db in start_thread (arg=0x7fc372e1d700) at pthread_create.c:463
#9  0x00007fc3b4de088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fc37261c700 (LWP 6567)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fc3b56fb580 in QtLinuxFutex::_q_futex (val3=0, addr2=0x0, val2=0, val=<optimized out>, op=0, addr=<optimized out>) at thread/qfutex_p.h:92
#2  QtLinuxFutex::futexWait<QBasicAtomicInteger<unsigned int> > (expectedValue=<optimized out>, futex=...) at thread/qfutex_p.h:107
#3  futexSemaphoreTryAcquire_loop<true> (u=..., curValue=<optimized out>, nn=nn@entry=8589934593, timeout=timeout@entry=-1) at thread/qsemaphore.cpp:219
#4  0x00007fc3b56fb3f2 in futexSemaphoreTryAcquire<true> (timeout=<optimized out>, n=n@entry=1, u=...) at thread/qsemaphore.cpp:262
#5  QSemaphore::tryAcquire (this=0x56487b947220, n=n@entry=1, timeout=timeout@entry=-1) at thread/qsemaphore.cpp:484
#6  0x00007fc3b76fff63 in KisTileDataSwapper::waitForWork (this=this@entry=0x7fc3b7c00b80 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder+64>) at ./libs/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#7  0x00007fc3b770019a in KisTileDataSwapper::run (this=0x7fc3b7c00b80 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder+64>) at ./libs/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#8  0x00007fc3b56f8bc2 in QThreadPrivate::start (arg=0x7fc3b7c00b80 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder+64>) at thread/qthread_unix.cpp:361
#9  0x00007fc3ae9d96db in start_thread (arg=0x7fc37261c700) at pthread_create.c:463
#10 0x00007fc3b4de088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fc3791a4700 (LWP 6557)):
#0  0x00007fc3ad0db969 in g_main_context_prepare () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fc3ad0dc4fb in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc3ad0dc6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc3b592e15b in QEventDispatcherGlib::processEvents (this=0x7fc374000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fc3b58cf64a in QEventLoop::exec (this=this@entry=0x7fc3791a3d60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007fc3b56f741a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#6  0x00007fc3b56f8bc2 in QThreadPrivate::start (arg=0x56487b291b70) at thread/qthread_unix.cpp:361
#7  0x00007fc3ae9d96db in start_thread (arg=0x7fc3791a4700) at pthread_create.c:463
#8  0x00007fc3b4de088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fc39f785700 (LWP 6555)):
#0  0x00007fc3b4dd3bf9 in __GI___poll (fds=0x7fc39f784c78, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc3abe81747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fc3abe8336a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fc3a0ace32a in QXcbEventQueue::run (this=0x564873091270) at qxcbeventqueue.cpp:225
#4  0x00007fc3b56f8bc2 in QThreadPrivate::start (arg=0x564873091270) at thread/qthread_unix.cpp:361
#5  0x00007fc3ae9d96db in start_thread (arg=0x7fc39f785700) at pthread_create.c:463
#6  0x00007fc3b4de088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fc3945af700 (LWP 6544)):
#0  0x00007fc3b4dcf0b4 in __GI___libc_read (fd=7, buf=0x7fc3945aeb20, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fc3ad1212d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc3ad0dc0b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc3ad0dc570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc3ad0dc6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fc3b592e15b in QEventDispatcherGlib::processEvents (this=0x7fc38c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007fc3b58cf64a in QEventLoop::exec (this=this@entry=0x7fc3945aed30, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007fc3b56f741a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#8  0x00007fc3aec07015 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007fc3b56f8bc2 in QThreadPrivate::start (arg=0x7fc3aee7ed80) at thread/qthread_unix.cpp:361
#10 0x00007fc3ae9d96db in start_thread (arg=0x7fc3945af700) at pthread_create.c:463
#11 0x00007fc3b4de088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fc3b9f1c840 (LWP 6542)):
[KCrash Handler]
#6  0x00007fc3b58da677 in QMetaObject::cast (this=0x7fc3b308ff00 <KoShapeController::staticMetaObject>, obj=0x56488a17f510) at kernel/qmetaobject.cpp:368
#7  0x00007fc3b58da6b5 in QMetaObject::cast (this=<optimized out>, obj=<optimized out>) at kernel/qmetaobject.cpp:357
#8  0x00007fc3b2cb9606 in qobject_cast<KoShapeController*> (object=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:504
#9  QtPrivate::QVariantValueHelper<KoShapeController*>::object (v=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:734
#10 QtPrivate::ObjectInvoker<QtPrivate::QVariantValueHelper<KoShapeController*>, QVariant const&, KoShapeController*>::invoke (a=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:106
#11 qvariant_cast<KoShapeController*> (v=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:860
#12 QVariant::value<KoShapeController*> (this=0x7ffd5b03f300) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:362
#13 KoDocumentResourceManager::shapeController (this=this@entry=0x56487c766c60) at ./libs/flake/KoDocumentResourceManager.cpp:193
#14 0x00007fc3b2e11063 in KoSvgTextShapeFactory::createShape (this=this@entry=0x564873625050, params=params@entry=0x7fc39801aa50, documentResources=0x56487c766c60) at ./libs/flake/text/KoSvgTextShape.cpp:620
#15 0x00007fc37e986fb7 in SvgTextTool::mouseReleaseEvent (this=0x56487e4e8140, event=0x7ffd5b03f520) at ./plugins/tools/svgtexttool/SvgTextTool.cpp:383
#16 0x00007fc3b2d20eae in KoToolProxy::mouseReleaseEvent (this=this@entry=0x56487e49c670, event=event@entry=0x7ffd5b03f520) at ./libs/flake/KoToolProxy.cpp:316
#17 0x00007fc3b2d213ef in KoToolProxy::mouseReleaseEvent (this=0x56487e49c670, event=<optimized out>, point=...) at ./libs/flake/KoToolProxy.cpp:305
#18 0x00007fc3b892a816 in KisToolProxy::forwardEvent (this=0x56487e49c670, state=state@entry=KisToolProxy::END, action=action@entry=KisTool::Primary, event=event@entry=0x7ffd5b03fc90, originalEvent=originalEvent@entry=0x7ffd5b03fc90) at ./libs/ui/canvas/kis_tool_proxy.cpp:134
#19 0x00007fc3b8c0de6d in KisToolInvocationAction::end (this=0x56487b392860, event=0x7ffd5b03fc90) at ./libs/ui/input/kis_tool_invocation_action.cpp:152
#20 0x00007fc3b8c1844f in KisShortcutMatcher::tryEndRunningShortcut (this=0x56487b28e880, button=<optimized out>, event=0x7ffd5b03fc90) at ./libs/ui/input/kis_shortcut_matcher.cpp:565
#21 0x00007fc3b8c1a01d in KisShortcutMatcher::buttonReleased (this=0x56487b28e880, button=<optimized out>, event=event@entry=0x7ffd5b03fc90) at ./libs/ui/input/kis_shortcut_matcher.cpp:233
#22 0x00007fc3b8bfe6cc in KisInputManager::eventFilterImpl (this=0x56487b2c3ae8, event=0x7ffd5b03fc90) at ./libs/ui/input/kis_input_manager.cpp:331
#23 0x00007fc3b58d10ad in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x56487e4902e0, event=event@entry=0x7ffd5b03fc90) at kernel/qcoreapplication.cpp:1187
#24 0x00007fc3b66c7885 in QApplicationPrivate::notify_helper (this=this@entry=0x564872d32120, receiver=receiver@entry=0x56487e4902e0, e=e@entry=0x7ffd5b03fc90) at kernel/qapplication.cpp:3744
#25 0x00007fc3b66cfd18 in QApplication::notify (this=<optimized out>, receiver=receiver@entry=0x56487e4902e0, e=e@entry=0x7ffd5b03fc90) at kernel/qapplication.cpp:3213
#26 0x00007fc3b8c782d7 in KisApplication::notify (this=<optimized out>, receiver=0x56487e4902e0, event=0x7ffd5b03fc90) at ./libs/ui/KisApplication.cpp:653
#27 0x00007fc3b58d1328 in QCoreApplication::notifyInternal2 (receiver=0x56487e4902e0, event=0x7ffd5b03fc90) at kernel/qcoreapplication.cpp:1061
#28 0x00007fc3b58d150e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x56487e4902e0, event=event@entry=0x7ffd5b03fc90) at kernel/qcoreapplication.cpp:1463
#29 0x00007fc3b66ce30f in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x56487e4902e0, event=event@entry=0x7ffd5b03fc90, alienWidget=0x56487e4902e0, nativeWidget=0x56487b2acd50, buttonDown=buttonDown@entry=0x7fc3b6dc88b0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2699
#30 0x00007fc3b6722af0 in QWidgetWindow::handleMouseEvent (this=this@entry=0x56487a830860, event=event@entry=0x7ffd5b040190) at kernel/qwidgetwindow.cpp:661
#31 0x00007fc3b672557a in QWidgetWindow::event (this=0x56487a830860, event=0x7ffd5b040190) at kernel/qwidgetwindow.cpp:281
#32 0x00007fc3b66c78ac in QApplicationPrivate::notify_helper (this=this@entry=0x564872d32120, receiver=receiver@entry=0x56487a830860, e=e@entry=0x7ffd5b040190) at kernel/qapplication.cpp:3752
#33 0x00007fc3b66cee40 in QApplication::notify (this=0x7ffd5b0406e0, receiver=receiver@entry=0x56487a830860, e=e@entry=0x7ffd5b040190) at kernel/qapplication.cpp:3499
#34 0x00007fc3b8c782d7 in KisApplication::notify (this=<optimized out>, receiver=0x56487a830860, event=0x7ffd5b040190) at ./libs/ui/KisApplication.cpp:653
#35 0x00007fc3b58d1328 in QCoreApplication::notifyInternal2 (receiver=0x56487a830860, event=0x7ffd5b040190) at kernel/qcoreapplication.cpp:1061
#36 0x00007fc3b58d150e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x56487a830860, event=event@entry=0x7ffd5b040190) at kernel/qcoreapplication.cpp:1463
#37 0x00007fc3b5e9952b in QGuiApplicationPrivate::processMouseEvent (e=0x564888ef7fb0) at kernel/qguiapplication.cpp:2102
#38 0x00007fc3b5e9a695 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x564888ef7fb0) at kernel/qguiapplication.cpp:1837
#39 0x00007fc3b5e7314b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1068
#40 0x00007fc3a0acf30a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#41 0x00007fc3ad0dc417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007fc3ad0dc650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007fc3ad0dc6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007fc3b592e13f in QEventDispatcherGlib::processEvents (this=0x564872d9a270, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#45 0x00007fc3b58cf64a in QEventLoop::exec (this=this@entry=0x7ffd5b040530, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#46 0x00007fc3b58d8800 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1364
#47 0x0000564871125542 in main (argc=<optimized out>, argv=0x7ffd5b040848) at ./krita/main.cc:546

The reporter indicates this bug may be a duplicate of or related to bug 407554.

Possible duplicates by query: bug 407554.

Reported using DrKonqi
Comment 1 Halla Rempt 2019-06-04 11:13:04 UTC
Yes, this is very likely exactly the same thing.

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