https://bugs.kde.org/show_bug.cgi?id=529158

            Bug ID: 529158
           Summary: Segfault when selecting a .gpl file to import a
                    palette from
    Classification: Applications
           Product: krita
      Version First 6.0.4.1
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Color Selectors
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION

STEPS TO REPRODUCE
1. Enable Settings > Dockers > Palette.
2. In the Palette docker, click the bottom left button "Load a palette".
3. Click the button "Import a palette from file".
4. Navigate to /usr/share/krita/palettes (or wherever your Krita installation
placed them).
5. Select any .gpl file, e.g. `default.gpl`. No need to even double-click or
press OK; just selecting the file is enough.

OBSERVED RESULT

Segmentation fault.

EXPECTED RESULT

Able to select and import the file.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.8.3
KDE Frameworks Version: 6.32.0
Qt Version: 6.12.0
Kernel Version: 7.3.5-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 24 × 13th Gen Intel® Core™ i7-13700K
Memory: 32 GiB of RAM (31.1 GiB usable)
Graphics Processor 1: AMD Radeon RX 7600
Graphics Processor 2: Mesa Intel® Graphics

ADDITIONAL INFORMATION

Symbolized backtrace:

#0  0x00007f2412d82559 in QPixmap::detach (this=0x7ffc3a657ca0) at
/usr/src/debug/qt6-base/qtbase/src/gui/image/qpixmap.cpp:1424
#1  0x00007f2412f6818f in QPainter::begin (this=0x7ffc3a657c78,
pd=0x7ffc3a657ca0) at
/usr/src/debug/qt6-base/qtbase/src/gui/painting/qpainter.cpp:1726
#2  0x00007f24139a45ae in QCommonStyle::generatedIconPixmap (this=<optimized
out>, iconMode=<optimized out>, pixmap=..., opt=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/widgets/styles/qcommonstyle.cpp:6180
#3  0x00007f2413a54c12 in QFusionStyle::generatedIconPixmap (this=<optimized
out>, iconMode=<optimized out>, pixmap=<optimized out>, opt=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/widgets/styles/qfusionstyle.cpp:3165
#4  0x00007f2413909083 in QApplicationPrivate::applyQIconStyleHelper
(this=<optimized out>, mode=QIcon::Selected, base=...) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3967
#5  0x00007f2412d2d17b in PixmapEntry::pixmap (this=0x562bfdacc0a0,
size=<optimized out>, mode=QIcon::Selected, state=<optimized out>,
scale=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/gui/image/qiconloader.cpp:963
#6  0x00007f2412d2bf82 in QIconLoaderEngine::scaledPixmap (this=<optimized
out>, size=..., mode=QIcon::Selected, state=QIcon::Off, scale=<optimized out>)
at /usr/src/debug/qt6-base/qtbase/src/gui/image/qiconloader.cpp:1003
#7  0x00007f2412d275c1 in QIconLoaderEngine::paint (this=0x562bfb7f74e0,
painter=0x7ffc3a658c78, rect=..., mode=QIcon::Selected, state=QIcon::Off) at
/usr/src/debug/qt6-base/qtbase/src/gui/image/qiconloader.cpp:807
#8  0x00007f2412d185a4 in QIcon::paint (this=this@entry=0x7ffc3a658700,
painter=painter@entry=0x7ffc3a658c78, rect=..., alignment=...,
mode=QIcon::Selected, state=QIcon::Off) at
/usr/src/debug/qt6-base/qtbase/src/gui/image/qicon.cpp:1062
#9  0x00007f241399119a in QCommonStyle::drawControl (this=<optimized out>,
element=<optimized out>, opt=0x7ffc3a658660, p=0x7ffc3a658c78,
widget=0x562bfc136150) at
/usr/src/debug/qt6-base/qtbase/src/widgets/styles/qcommonstyle.cpp:2302
#10 0x00007f2413cb4046 in QStyledItemDelegate::paint (this=0x562bfb4c99d0,
painter=0x7ffc3a658c78, option=<optimized out>, index=...) at
/usr/src/debug/qt6-base/qtbase/src/widgets/itemviews/qstyleditemdelegate.cpp:374
#11 0x00007f2413d0dc48 in QTreeView::drawRow (this=<optimized out>,
painter=0x7ffc3a658c78, option=..., index=...) at
/usr/src/debug/qt6-base/qtbase/src/widgets/itemviews/qtreeview.cpp:1876
#12 0x00007f2413d0c1ae in QTreeView::drawTree (this=this@entry=0x562bfc136150,
painter=painter@entry=0x7ffc3a658c78, region=...) at
/usr/src/debug/qt6-base/qtbase/src/widgets/itemviews/qtreeview.cpp:1592
#13 0x00007f2413d0c54e in QTreeView::paintEvent (this=0x562bfc136150,
event=0x7ffc3a659080) at
/usr/src/debug/qt6-base/qtbase/src/widgets/itemviews/qtreeview.cpp:1357
#14 0x00007f2413964fa9 in QWidget::event (this=0x562bfc136150,
event=0x7ffc3a659080) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:9127
#15 0x00007f24139d4ae9 in QFrame::event (this=0x562bfc136150, e=0x7ffc3a659080)
at /usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qframe.cpp:522
#16 0x00007f2412587f0e in
QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=<optimized
out>, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1290
#17 QCoreApplicationPrivate::sendThroughObjectEventFilters
(receiver=receiver@entry=0x562bfba42960, event=event@entry=0x7ffc3a659080) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1279
#18 0x00007f241390354e in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x562bfba42960, e=0x7ffc3a659080) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3273
#19 0x00007f2415056237 in KisApplication::notify (this=0x7ffc3a65b4c0,
receiver=0x562bfba42960, event=0x7ffc3a659080) at
/usr/src/debug/krita/krita-6.0.4.1/libs/ui/KisApplication.cpp:944
#20 0x00007f2412589298 in QCoreApplication::notifyInternal2
(receiver=0x562bfba42960, event=0x7ffc3a659080) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1153
#21 0x00007f24125892ed in QCoreApplication::sendSpontaneousEvent
(receiver=<optimized out>, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1612
#22 0x00007f241395675c in QWidgetPrivate::sendPaintEvent
(this=this@entry=0x562bf7bc6340, toBePainted=...) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:5663
#23 0x00007f2413956c37 in QWidgetPrivate::drawWidget (this=0x562bf7bc6340,
pdev=0x562bfb7179b0, rgn=<optimized out>, offset=<optimized out>, flags=...,
sharedPainter=<optimized out>, repaintManager=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:5613
#24 0x00007f241397ecc2 in QWidgetRepaintManager::paintAndFlush
(this=0x562bf903b7b0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetrepaintmanager.cpp:906
#25 0x00007f241396552f in QWidget::event (this=0x562bf7f6d180,
event=0x562bfb56b480) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:9290
#26 0x00007f241390355f in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x562bf7f6d180, e=0x562bfb56b480) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3279
#27 0x00007f2415056237 in KisApplication::notify (this=0x7ffc3a65b4c0,
receiver=0x562bf7f6d180, event=0x562bfb56b480) at
/usr/src/debug/krita/krita-6.0.4.1/libs/ui/KisApplication.cpp:944
#28 0x00007f2412589298 in QCoreApplication::notifyInternal2
(receiver=0x562bf7f6d180, event=event@entry=0x562bfb56b480) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1153
#29 0x00007f241258a42f in QCoreApplication::sendEvent (receiver=<optimized
out>, event=0x562bfb56b480) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1598
#30 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x562beac702a0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1953
#31 0x00007f24128c67b8 in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1806
#32 postEventSourceDispatch (s=0x562beaf53570) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:248
#33 0x00007f240fefc75e in g_main_dispatch (context=0x562beaf29660) at
../glib/glib/gmain.c:3734
#34 0x00007f240ff05c50 in g_main_context_dispatch_unlocked
(context=0x562beaf29660) at ../glib/glib/gmain.c:4603
#35 g_main_context_iterate_unlocked (context=context@entry=0x562beaf29660,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
../glib/glib/gmain.c:4672
#36 0x00007f240ff05db5 in g_main_context_iteration (context=0x562beaf29660,
may_block=1) at ../glib/glib/gmain.c:4738
#37 0x00007f24128c4e22 in QEventDispatcherGlib::processEvents
(this=0x562beaf2d190, flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:402
#38 0x00007f2412596b34 in QEventLoop::processEvents (this=0x7ffc3a659aa0,
flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:109
#39 QEventLoop::exec (this=this@entry=0x7ffc3a659aa0, flags=...,
flags@entry=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:198
#40 0x00007f2413be710e in QDialog::exec (this=0x562bf7f6d180) at
/usr/src/debug/qt6-base/qtbase/src/widgets/dialogs/qdialog.cpp:588
#41 0x00007f24112f39b4 in KoFileDialog::filename
(this=this@entry=0x7ffc3a659c80) at
/usr/src/debug/krita/krita-6.0.4.1/libs/widgetutils/KoFileDialog.cpp:301
#42 0x00007f2414f9f6bb in KisPaletteEditor::importPalette (this=0x562bf4444570)
at /usr/src/debug/krita/krita-6.0.4.1/libs/ui/KisPaletteEditor.cpp:146
#43 0x00007f23aba985a4 in PaletteDockerDock::slotImportPalette
(this=0x562bf435e350) at /usr/include/qt6/QtCore/qscopedpointer.h:91
#44 PaletteDockerDock::qt_static_metacall (_o=0x562bf435e350, _c=<optimized
out>, _id=<optimized out>, _a=<optimized out>) at
/usr/src/debug/krita/build/plugins/dockers/palettedocker/kritapalettedocker_autogen/EWIEGA46WW/moc_palettedocker_dock.cpp:176
#45 0x00007f24125f6fc4 in doActivate<false> (sender=0x562bf44056d0,
signal_index=10, argv=0x7ffc3a65a070) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4443
#46 0x00007f24125f6fc4 in doActivate<false> (sender=0x562bf4440dc0,
signal_index=7, argv=0x7ffc3a65a1c0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4443
#47 0x00007f24132672be in QMetaObject::activate<void, bool> (sender=<optimized
out>, mo=<optimized out>, local_signal_index=<optimized out>, ret=<optimized
out>, sender=<optimized out>, mo=<optimized out>, local_signal_index=<optimized
out>, ret=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs.h:320
#48 QAction::triggered (this=<optimized out>, _t1=<optimized out>) at
/usr/src/debug/qt6-base/build/src/gui/Gui_autogen/include/moc_qaction.cpp:374
#49 QAction::activate (this=0x562bf4440dc0, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qaction.cpp:1107
#50 0x00007f2413a5b0e8 in QAction::trigger (this=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qaction.h:211
#51 QToolButton::nextCheckState (this=0x562bf44444e0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qtoolbutton.cpp:1052
#52 QAbstractButtonPrivate::click (this=this@entry=0x562bf44446b0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qabstractbutton.cpp:365
#53 0x00007f2413a5b216 in QAbstractButton::mouseReleaseEvent
(this=0x562bf44444e0, e=0x7ffc3a65a8d0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qabstractbutton.cpp:984
#54 0x00007f2413bbeaa1 in QToolButton::mouseReleaseEvent (this=0x562bf44444e0,
e=0x7ffc3a65a8d0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qtoolbutton.cpp:601
#55 0x00007f2413964dfe in QWidget::event (this=0x562bf44444e0,
event=0x7ffc3a65a8d0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:8990
#56 0x00007f241390355f in QApplicationPrivate::notify_helper
(this=this@entry=0x562beafb27e0, receiver=receiver@entry=0x562bf44444e0,
e=e@entry=0x7ffc3a65a8d0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3279
#57 0x00007f2413904f3c in QApplication::notify (this=this@entry=0x7ffc3a65b4c0,
receiver=receiver@entry=0x562bf44444e0, e=e@entry=0x7ffc3a65a8d0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2759
#58 0x00007f2415056237 in KisApplication::notify (this=0x7ffc3a65b4c0,
receiver=0x562bf44444e0, event=0x7ffc3a65a8d0) at
/usr/src/debug/krita/krita-6.0.4.1/libs/ui/KisApplication.cpp:944
#59 0x00007f2412589298 in QCoreApplication::notifyInternal2
(receiver=0x562bf44444e0, event=0x7ffc3a65a8d0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1153
#60 0x00007f24125892ed in QCoreApplication::sendSpontaneousEvent
(receiver=<optimized out>, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1612
#61 0x00007f24138fbb86 in QApplicationPrivate::sendMouseEvent
(receiver=0x562bf44444e0, event=0x7ffc3a65a8d0, alienWidget=<optimized out>,
nativeWidget=0x562bf4461450, buttonDown=0x7f2413fa49d0 <qt_button_down>,
lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=<optimized
out>)
    at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2358
#62 0x00007f24139840e9 in QWidgetWindow::handleMouseEvent (this=0x562bfa2542b0,
event=event@entry=0x7ffc3a65adf0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:586
#63 0x00007f241398562b in QWidgetWindow::event (this=<optimized out>,
event=0x7ffc3a65adf0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:301
#64 0x00007f241390355f in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x562bfa2542b0, e=0x7ffc3a65adf0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3279
#65 0x00007f2415056237 in KisApplication::notify (this=0x7ffc3a65b4c0,
receiver=0x562bfa2542b0, event=0x7ffc3a65adf0) at
/usr/src/debug/krita/krita-6.0.4.1/libs/ui/KisApplication.cpp:944
#66 0x00007f2412589298 in QCoreApplication::notifyInternal2
(receiver=0x562bfa2542b0, event=0x7ffc3a65adf0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1153
#67 0x00007f24125892ed in QCoreApplication::sendSpontaneousEvent
(receiver=<optimized out>, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1612
#68 0x00007f2412daf238 in QGuiApplicationPrivate::processMouseEvent
(e=0x562bfb466080) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:2513
#69 0x00007f2412e3459b in QWindowSystemInterface::sendWindowSystemEvents
(flags=flags@entry=...) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1112
#70 0x00007f240b850107 in xcbSourceDispatch (source=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:59
#71 0x00007f240fefc75e in g_main_dispatch (context=0x562beaf29660) at
../glib/glib/gmain.c:3734
#72 0x00007f240ff05c50 in g_main_context_dispatch_unlocked
(context=0x562beaf29660) at ../glib/glib/gmain.c:4603
#73 g_main_context_iterate_unlocked (context=context@entry=0x562beaf29660,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
../glib/glib/gmain.c:4672
#74 0x00007f240ff05db5 in g_main_context_iteration (context=0x562beaf29660,
may_block=1) at ../glib/glib/gmain.c:4738
#75 0x00007f24128c4e22 in QEventDispatcherGlib::processEvents
(this=0x562beaf2d190, flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:402
#76 0x00007f2412596b34 in QEventLoop::processEvents (this=0x7ffc3a65b230,
flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:109
#77 QEventLoop::exec (this=0x7ffc3a65b230, flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:198
#78 0x00007f241258d08a in QCoreApplication::exec () at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1496
#79 0x00007f241390053a in QApplication::exec () at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2549
#80 0x0000562be7b416fc in main (argc=<optimized out>, argv=0x7ffc3a65b6a8) at
/usr/src/debug/krita/krita-6.0.4.1/krita/main.cc:874

Since it's deep inside Qt, I'm not even certain this is a Krita bug, but that's
where it manifests for me. I poked at other open dialogs in Krita but couldn't
reproduce it there.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to