Bug 426205

Summary: Crash selecting a brush
Product: [Applications] krita Reporter: Hans-Peter Jansen <hpj>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla, tamtamy.tymona
Priority: NOR Keywords: drkonqi
Version First Reported In: 4.3.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Hans-Peter Jansen 2020-09-05 07:36:15 UTC
Application: krita (4.3.0)

Qt Version: 5.15.0
Frameworks Version: 5.73.0
Operating System: Linux 5.8.5-5-preempt x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

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

Started krita, recovered a document, switched to draw layer, and crash happens reproducible, when selecting a different brush

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f0e63dea56a in PyObject_Call (callable=<sip.wrappertype at remote 0x5635f336e240>, args=(), kwargs=0x0) at Objects/call.c:248
#5  0x00007f0e63b4e11a in sipWrapInstance (cpp=0x5635f8c38e60, py_type=0x5635f336e240, args=(), owner=0x0, flags=32) at /usr/src/debug/python-sip-4.19.24-51.3.x86_64/siplib/threads.c:124
#6  0x00007f0e63b3f878 in wrap_simple_instance (flags=<optimized out>, owner=0x0, td=0x7f0e63b1d7e0 <sipTypeDef_QtCore_QModelIndex>, cpp=<optimized out>) at /usr/src/debug/python-sip-4.19.24-51.3.x86_64/siplib/siplib.c:13468
#7  sip_api_convert_from_new_type (cpp=<optimized out>, td=0x7f0e63b1d7e0 <sipTypeDef_QtCore_QModelIndex>, transferObj=<optimized out>) at /usr/src/debug/python-sip-4.19.24-51.3.x86_64/siplib/siplib.c:9693
#8  0x00007f0e63a37479 in Chimera::toPyObject (this=0x5635f35fea90, cpp=<optimized out>) at ../../qpy/QtCore/qpycore_chimera.cpp:1528
#9  0x00007f0e63a3c792 in PyQtSlot::invoke (this=0x5635f3591410, qargs=<optimized out>, self=<optimized out>, result=0x0, no_receiver_check=<optimized out>) at ../../qpy/QtCore/qpycore_pyqtslot.cpp:145
#10 0x00007f0e63a44d40 in PyQtSlot::invoke (result=<optimized out>, self=<QuickSettingsDocker(brushSizeTableView=<QListView at remote 0x7f0e6264f1f0>, brushOpacityTableView=<QListView at remote 0x7f0e6264f280>, brushFlowTableView=<QListView at remote 0x7f0e6264f310>, sizesList=[<float at remote 0x7f0e628ece90>, <float at remote 0x7f0e62c6f8b0>, <float at remote 0x7f0e62c6fdf0>, 2, <float at remote 0x7f0e62a2cb50>, 3, <float at remote 0x7f0e62a2cb30>, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 20, 25, 30, 35, 40, 50, 60, 70, 80, 100, 120, 160, 200, 250, 300, 350, 400, 450, 500], opacityList=[<float at remote 0x7f0e62a2c3b0>, <float at remote 0x7f0e62a2c0b0>, 1, 5, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100], brushSizeModel=<QStandardItemModel at remote 0x7f0e6264f3a0>, brushOpacityModel=<QStandardItemModel at remote 0x7f0e6264f430>, brushFlowModel=<QStandardItemModel at remote 0x7f0e6264f4c0>) at remote 0x7f0e63cad790>, qargs=0x7ffc98a246b0, this=<optimized out>) at ../../qpy/QtCore/qpycore_pyqtslot.cpp:85
#12 0x00007f0eaabebe60 in doActivate<false> (sender=0x5635f3bef040, signal_index=8, argv=argv@entry=0x7ffc98a246b0) at /usr/include/c++/10/bits/atomic_base.h:741
#13 0x00007f0eaabe5470 in QMetaObject::activate (sender=sender@entry=0x5635f3bef040, m=m@entry=0x7f0eabc21c40 <QAbstractItemView::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc98a246b0) at kernel/qobject.cpp:3946
#14 0x00007f0eab960555 in QAbstractItemView::clicked (this=this@entry=0x5635f3bef040, _t1=...) at .moc/moc_qabstractitemview.cpp:654
#15 0x00007f0eab963cfa in QAbstractItemView::mouseReleaseEvent (this=0x5635f3bef040, event=0x7ffc98a24ea0) at itemviews/qabstractitemview.cpp:1929
#16 0x00007f0eab9a882f in QListView::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at itemviews/qlistview.cpp:801
#17 0x00007f0e6314568b in sipQListView::mouseReleaseEvent (this=0x5635f3bef040, a0=0x7ffc98a24ea0) at /usr/src/debug/python3-qt5-5.15.0-193.3.x86_64/build_3.8/QtWidgets/sipQtWidgetsQListView.cpp:1050
#18 0x00007f0eab74d0de in QWidget::event (this=this@entry=0x5635f3bef040, event=event@entry=0x7ffc98a24ea0) at kernel/qwidget.cpp:9027
#19 0x00007f0eab7f54de in QFrame::event (this=0x5635f3bef040, e=0x7ffc98a24ea0) at widgets/qframe.cpp:550
#20 0x00007f0e631414ab in sipQListView::viewportEvent (this=0x5635f3bef040, a0=0x7ffc98a24ea0) at /usr/src/debug/python3-qt5-5.15.0-193.3.x86_64/build_3.8/QtWidgets/sipQtWidgetsQListView.cpp:494
#21 0x00007f0eaabb59a3 in QCoreApplicationPrivate::sendThroughObjectEventFilters (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1187
#22 QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x5635f3bdd270, event=event@entry=0x7ffc98a24ea0) at kernel/qcoreapplication.cpp:1176
#23 0x00007f0eab70d0be in QApplicationPrivate::notify_helper (this=this@entry=0x5635e7225000, receiver=receiver@entry=0x5635f3bdd270, e=e@entry=0x7ffc98a24ea0) at kernel/qapplication.cpp:3665
#24 0x00007f0eab714121 in QApplication::notify (this=0x7ffc98a24b20, receiver=0x5635f3bdd270, e=0x7ffc98a24ea0) at kernel/qapplication.cpp:3115
#25 0x00007f0ead037669 in KisApplication::notify (this=<optimized out>, receiver=0x5635f3bdd270, event=0x7ffc98a24ea0) at /usr/src/debug/krita-4.3.0-2.4.x86_64/libs/ui/KisApplication.cpp:680
#26 0x00007f0eaabb5c3a in QCoreApplication::notifyInternal2 (receiver=0x5635f3bdd270, event=0x7ffc98a24ea0) at ../../include/QtCore/5.15.0/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#27 0x00007f0eab713036 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x5635f3bdd270, event=event@entry=0x7ffc98a24ea0, alienWidget=alienWidget@entry=0x5635f3bdd270, nativeWidget=0x5635e73aaf60, buttonDown=buttonDown@entry=0x7f0eabc329d0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2603
#28 0x00007f0eab76513a in QWidgetWindow::handleMouseEvent (this=0x5635f1771510, event=0x7ffc98a251e0) at /usr/include/c++/10/bits/atomic_base.h:420
#29 0x00007f0eab76862e in QWidgetWindow::event (this=0x5635f1771510, event=0x7ffc98a251e0) at kernel/qwidgetwindow.cpp:295
#30 0x00007f0eab70d0cf in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5635f1771510, e=0x7ffc98a251e0) at kernel/qapplication.cpp:3671
#31 0x00007f0ead037669 in KisApplication::notify (this=<optimized out>, receiver=0x5635f1771510, event=0x7ffc98a251e0) at /usr/src/debug/krita-4.3.0-2.4.x86_64/libs/ui/KisApplication.cpp:680
#32 0x00007f0eaabb5c3a in QCoreApplication::notifyInternal2 (receiver=0x5635f1771510, event=0x7ffc98a251e0) at ../../include/QtCore/5.15.0/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#33 0x00007f0eaaff627b in QGuiApplicationPrivate::processMouseEvent (e=0x5635f47dac60) at kernel/qguiapplication.cpp:2214
#34 0x00007f0eaafcc51b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1175
#35 0x00007f0ea513ff4a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#36 0x00007f0ea81f02b7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#37 0x00007f0ea81f0638 in ?? () from /usr/lib64/libglib-2.0.so.0
#38 0x00007f0ea81f06ef in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#39 0x00007f0eaac0d07f in QEventDispatcherGlib::processEvents (this=0x5635e743e2b0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#40 0x00007f0eaabb45fb in QEventLoop::exec (this=this@entry=0x7ffc98a25510, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#41 0x00007f0eaabbc860 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#42 0x00005635e4063cd8 in main (argc=<optimized out>, argv=0x7ffc98a25838) at /usr/src/debug/krita-4.3.0-2.4.x86_64/krita/main.cc:594
[Inferior 1 (process 9619) detached]

Possible duplicates by query: bug 418530, bug 412740, bug 395000, bug 393971, bug 392183.

Reported using DrKonqi
Comment 1 Halla Rempt 2020-09-05 11:23:57 UTC
* Does this also happen with the appimage?
* Does it matter which brush you select?
* Have you custom brushes installed?
Comment 2 Hans-Peter Jansen 2020-09-05 13:32:57 UTC
(In reply to Boudewijn Rempt from comment #1)
> * Does this also happen with the appimage?

Will try (but may take some days)

> * Does it matter which brush you select?

No, tried different simple brushes of various sizes

> * Have you custom brushes installed?

No.
Comment 3 Bug Janitor Service 2020-09-06 04:33:14 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 4 Tiar 2020-11-07 20:23:25 UTC
The backtrace suggests problems with python-qt; can you please say if you are using Ten Brushes script to switch brushes, or maybe did you mean that you changed the size using the Quick Settings docker?
Comment 5 Hans-Peter Jansen 2020-11-08 11:15:21 UTC
Meanwhile, with 4.4.1, I cannot reproduce this issue anymore.
Comment 6 Tiar 2020-11-08 16:08:08 UTC
Great! Thanks for telling us that.