https://bugs.kde.org/show_bug.cgi?id=381927
Bug ID: 381927 Summary: Adding a new color to an empty palette ends in a freeze. Product: krita Version: git master Platform: Other OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: Dockers Assignee: krita-bugs-n...@kde.org Reporter: griffinval...@gmail.com Target Milestone: --- In 4.0 pre-alpha this freeze happens in the colorspace comparison stuff. In master, with my fixes to the palettemodel, the following backtrace happens: Thread 1 (Thread 0x7fffe59f78c0 (LWP 4526)): #0 KisPaletteModel::getLastEntryIndex (this=this@entry=0x17bb25f0) at /home/wolthera/krita/src/libs/ui/KisPaletteModel.cpp:73 #1 0x00007ffff793b2a3 in KisPaletteModel::addColorSetEntry (this=0x17bb25f0, ---Type <return> to continue, or q <return> to quit--- entry=..., groupName=...) at /home/wolthera/krita/src/libs/ui/KisPaletteModel.cpp:325 #2 0x00007ffff7941e69 in KisPaletteView::addEntryWithDialog (this=0x17b9ddc0, color=...) at /home/wolthera/krita/src/libs/ui/kis_palette_view.cpp:118 #3 0x00007fffb00ceaed in PaletteDockerDock::addColorForeground (this=0x17b9a540) at /home/wolthera/krita/src/plugins/dockers/palettedocker/palettedocker_dock.cpp:191 #4 0x00007fffb00d51b5 in PaletteDockerDock::qt_static_metacall (_o=0x17b9a540, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/wolthera/krita/build/plugins/dockers/palettedocker/moc_palettedocker_dock.cpp:100 #5 0x00007ffff5d900c9 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007ffff68950f2 in QAbstractButton::clicked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #7 0x00007ffff6895324 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #8 0x00007ffff6896fce in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #9 0x00007ffff6897144 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #10 0x00007ffff687526a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #11 0x00007ffff67116a8 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #12 0x00007ffff6875349 in QToolButton::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #13 0x00007ffff66d03fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #14 0x00007ffff66d8a2b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 ---Type <return> to continue, or q <return> to quit--- #15 0x00007ffff78a3c87 in KisApplication::notify (this=<optimized out>, receiver=0x17bafbc0, event=0x7fffffffcfe0) at /home/wolthera/krita/src/libs/ui/KisApplication.cpp:558 #16 0x00007ffff5d64128 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #17 0x00007ffff66d73cf in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #18 0x00007ffff672b406 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #19 0x00007ffff672de63 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #20 0x00007ffff66d03fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #21 0x00007ffff66d7e07 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #22 0x00007ffff78a3c87 in KisApplication::notify (this=<optimized out>, receiver=0x1817d9e0, event=0x7fffffffd460) at /home/wolthera/krita/src/libs/ui/KisApplication.cpp:558 #23 0x00007ffff5d64128 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #24 0x00007ffff615a5b0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #25 0x00007ffff615c515 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #26 0x00007ffff6136ceb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #27 0x00007fffe5925990 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #28 0x00007fffee21a197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 ---Type <return> to continue, or q <return> to quit--- #29 0x00007fffee21a3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #30 0x00007fffee21a49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #31 0x00007ffff5db8abf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #32 0x00007ffff5d6230a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #33 0x00007ffff5d6adb4 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #34 0x00000000004050b3 in main (argc=1, argv=<optimized out>) at /home/wolthera/krita/src/krita/main.cc:269 NOTE: 4.0 PRE-ALPHA gives a different backtrace. boud was about to look at it, when I was at his place, but got distracted by G'Mic. Adding a swatch via the other dockers goes just peachy, so it might be a como of the palettemodel and the colorset. -- You are receiving this mail because: You are watching all bug changes.