Bug 436724 - Krita crashes on window closing
Summary: Krita crashes on window closing
Status: RESOLVED DUPLICATE of bug 417465
Alias: None
Product: krita
Classification: Applications
Component: Scripting (show other bugs)
Version: 4.4.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-05-07 10:56 UTC by Ilya V. Portnov
Modified: 2021-08-03 08:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya V. Portnov 2021-05-07 10:56:48 UTC
Application: krita (4.4.2)

Qt Version: 5.12.8
Frameworks Version: 5.68.0
Operating System: Linux 5.4.0-60-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.04.2 LTS

-- Information about the crash:
- What I was doing when the application crashed:

* Open Krita
* Close Krita with (x) button of the window

krita closes, but KDE reports of segfault.

Krita 4.4.2 from krita-lime PPA.

The crash can be reproduced every time.

-- 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 0x7fd15c14d800 (LWP 63806))]

Thread 3 (Thread 0x7fd143fff700 (LWP 63814)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fd16105f0b0 in QtLinuxFutex::_q_futex (val3=0, addr2=0x0, val2=0, val=<optimized out>, op=0, addr=<optimized out>) at thread/qfutex_p.h:105
#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=8589934593, timeout=timeout@entry=-1) at thread/qsemaphore.cpp:219
#4  0x00007fd16105ef16 in futexSemaphoreTryAcquire<true> (timeout=<optimized out>, n=1, u=...) at /usr/include/c++/9/bits/atomic_base.h:539
#5  QSemaphore::tryAcquire (this=0x55a499bc2390, n=n@entry=1, timeout=timeout@entry=-1) at thread/qsemaphore.cpp:484
#6  0x00007fd162577d97 in KisTileDataSwapper::waitForWork (this=this@entry=0x7fd1628de160 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>) at ./libs/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#7  0x00007fd162577f7a in KisTileDataSwapper::run (this=0x7fd1628de160 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>) at ./libs/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#8  0x00007fd16105c9d2 in QThreadPrivate::start (arg=0x7fd1628de160 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>) at thread/qthread_unix.cpp:361
#9  0x00007fd15efdd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007fd160cd2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fd152a6f700 (LWP 63811)):
#0  0x00007fd160cc5aff in __GI___poll (fds=0x7fd14c0025e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fd15e7ce36e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fd15e7ce4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd16127c583 in QEventDispatcherGlib::processEvents (this=0x7fd14c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fd1612234db in QEventLoop::exec (this=this@entry=0x7fd152a6ed70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#5  0x00007fd16105b785 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#6  0x00007fd15f010efa in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fd16105c9d2 in QThreadPrivate::start (arg=0x7fd15f093d80) at thread/qthread_unix.cpp:361
#8  0x00007fd15efdd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fd160cd2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fd15c14d800 (LWP 63806)):
[KCrash Handler]
#6  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x4000400000020) at /usr/include/c++/9/bits/atomic_base.h:413
#7  QAtomicOps<int>::load<int> (_q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:227
#8  QBasicAtomicInteger<int>::load (this=0x4000400000020) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:103
#9  QtPrivate::RefCount::ref (this=0x4000400000020) at ../../include/QtCore/../../src/corelib/tools/qrefcount.h:55
#10 QList<QGesture*>::QList (this=0x55a49ae0ad48, l=...) at ../../include/QtCore/../../src/corelib/tools/qlist.h:812
#11 0x00007fd161c9644e in QMapData<QGestureManager::ObjectGesture, QList<QGesture*> >::createNode (left=false, parent=0x0, v=..., k=..., this=0x55a4902c8b90) at /usr/include/c++/9/new:174
#12 QMapNode<QGestureManager::ObjectGesture, QList<QGesture*> >::copy (this=0x55a4918ce5d0, d=d@entry=0x55a4902c8b90) at ../../include/QtCore/../../src/corelib/tools/qmap.h:258
#13 0x00007fd161c96474 in QMapNode<QGestureManager::ObjectGesture, QList<QGesture*> >::copy (this=0x55a49b1623b0, d=d@entry=0x55a4902c8b90) at ../../include/QtCore/../../src/corelib/tools/qmap.h:97
#14 0x00007fd161c96509 in QMap<QGestureManager::ObjectGesture, QList<QGesture*> >::detach_helper (this=this@entry=0x55a4918cdae0) at ../../include/QtCore/../../src/corelib/tools/qmap.h:242
#15 0x00007fd161c8b3dc in QMap<QGestureManager::ObjectGesture, QList<QGesture*> >::detach (this=0x55a4918cdae0) at ../../include/QtCore/../../src/corelib/tools/qrefcount.h:102
#16 QMap<QGestureManager::ObjectGesture, QList<QGesture*> >::begin (this=0x55a4918cdae0) at ../../include/QtCore/../../src/corelib/tools/qmap.h:557
#17 QGestureManager::cleanupCachedGestures (this=this@entry=0x55a4918cdab0, target=target@entry=0x55a499b94010, type=Qt::PanGesture) at kernel/qgesturemanager.cpp:171
#18 0x00007fd161c7a908 in QWidget::~QWidget (this=0x55a499b94010, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qmap.h:541
#19 0x00007fd161c7ae1d in QWidget::~QWidget (this=0x55a499b94010, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1558
#20 0x00007fd16124e01e in QObjectPrivate::deleteChildren (this=this@entry=0x55a49b15db00) at kernel/qobject.cpp:2017
#21 0x00007fd161c7ac29 in QWidget::~QWidget (this=0x55a49b15dac0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1696
#22 0x00007fd161d4e931 in QComboBoxListView::~QComboBoxListView (this=0x55a49b15dac0, __in_chrg=<optimized out>) at ../../include/QtWidgets/5.12.8/QtWidgets/private/../../../../../src/widgets/widgets/qcombobox_p.h:85
#23 QComboBoxListView::~QComboBoxListView (this=0x55a49b15dac0, __in_chrg=<optimized out>) at ../../include/QtWidgets/5.12.8/QtWidgets/private/../../../../../src/widgets/widgets/qcombobox_p.h:85
#24 0x00007fd16124e01e in QObjectPrivate::deleteChildren (this=this@entry=0x55a49b162bb0) at kernel/qobject.cpp:2017
#25 0x00007fd161c7ac29 in QWidget::~QWidget (this=0x55a49b162b10, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1696
#26 0x00007fd161d50df8 in QComboBoxPrivateContainer::~QComboBoxPrivateContainer (this=0x55a49b162b10, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qbasictimer.h:56
#27 QComboBoxPrivateContainer::~QComboBoxPrivateContainer (this=0x55a49b162b10, __in_chrg=<optimized out>) at ../../include/QtWidgets/5.12.8/QtWidgets/private/../../../../../src/widgets/widgets/qcombobox_p.h:218
#28 0x00007fd16124e01e in QObjectPrivate::deleteChildren (this=this@entry=0x55a49a11a8f0) at kernel/qobject.cpp:2017
#29 0x00007fd161c7ac29 in QWidget::~QWidget (this=0x55a49a20cae0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1696
#30 0x00007fd14247725d in sipQComboBox::~sipQComboBox (this=0x55a49a20cae0, __in_chrg=<optimized out>) at ./build-3.8/QtWidgets/sipQtWidgetspart8.cpp:34418
#31 0x00007fd142caf3f5 in cleanup_qobject (sw=<optimized out>, closure=<optimized out>) at ../../qpy/QtCore/qpycore_public_api.cpp:66
#32 0x00007fd143696b60 in sip_api_visit_wrappers (visitor=0x7fd142caf330 <cleanup_qobject(sipSimpleWrapper*, void*)>, closure=0x0) at ./siplib/siplib.c:14290
#33 0x00007fd142caf0a0 in cleanup_on_exit () at ../../qpy/QtCore/qpycore_init.cpp:37
#34 0x00007fd1433961aa in cfunction_vectorcall_NOARGS (func=func@entry=0x7fd142e5cef0, args=<optimized out>, nargsf=nargsf@entry=0, kwnames=<optimized out>) at ../Objects/methodobject.c:459
#35 0x00007fd1433df500 in PyVectorcall_Call (callable=0x7fd142e5cef0, tuple=<optimized out>, kwargs=<optimized out>) at ../Objects/call.c:199
#36 0x00007fd143244017 in atexit_callfuncs (module=<optimized out>) at ../Modules/atexitmodule.c:87
#37 0x00007fd1432ca3ad in call_py_exitfuncs (istate=0x55a499e21200, istate=0x55a499e21200) at ../Python/pylifecycle.c:2236
#38 Py_FinalizeEx () at ../Python/pylifecycle.c:1183
#39 Py_FinalizeEx () at ../Python/pylifecycle.c:1154
#40 0x00007fd1432ca559 in Py_Finalize () at ../Python/pylifecycle.c:1381
#41 0x00007fd1436c8a19 in PyKrita::Python::maybeFinalize () at ./plugins/extensions/pykrita/plugin/utilities.cpp:460
#42 PyKrita::Python::maybeFinalize () at ./plugins/extensions/pykrita/plugin/utilities.cpp:452
#43 0x00007fd1436c8bb0 in PyKrita::finalize () at ./plugins/extensions/pykrita/plugin/utilities.cpp:126
#44 0x00007fd1436c5c3b in KritaPyQtPlugin::~KritaPyQtPlugin (this=0x55a499e08a10, __in_chrg=<optimized out>) at ./plugins/extensions/pykrita/plugin/plugin.cpp:95
#45 KritaPyQtPlugin::~KritaPyQtPlugin (this=0x55a499e08a10, __in_chrg=<optimized out>) at ./plugins/extensions/pykrita/plugin/plugin.cpp:97
#46 0x00007fd16124e01e in QObjectPrivate::deleteChildren (this=this@entry=0x55a48fe1f400) at kernel/qobject.cpp:2017
#47 0x00007fd1612585ef in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1033
#48 0x00007fd161226aae in QCoreApplication::~QCoreApplication (this=0x7ffe766b9b60, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qstringlist.h:99
#49 0x00007fd161c3d49e in QApplication::~QApplication (this=0x7ffe766b9b60, __in_chrg=<optimized out>) at kernel/qapplication.cpp:841
#50 0x00007fd1638d121f in QtSingleApplication::~QtSingleApplication (this=0x7ffe766b9b60, __in_chrg=<optimized out>) at /usr/include/c++/9/bits/atomic_base.h:326
#51 0x000055a48e717f99 in main (argc=<optimized out>, argv=0x7ffe766b9cd8) at ./krita/main.cc:669
[Inferior 1 (process 63806) detached]

Possible duplicates by query: bug 435992, bug 434725, bug 434205, bug 433633, bug 433252.

Reported using DrKonqi
Comment 1 Halla Rempt 2021-05-07 11:01:52 UTC
I have the same problem on my kubuntu laptop -- the appimage doesn't have the problem, though. I have no idea what the source for this crash is. I'm not even sure why this only happens with packages built against the distro q
Comment 2 Halla Rempt 2021-05-07 11:02:05 UTC
Er... Against the distro qt, since the appimage also uses 5.12.
Comment 3 Dmitry Kazakov 2021-08-03 08:52:02 UTC
The bog looks like a duplicate of bug 417465

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