Bug 421255 - Crash on color adjustment curves in CMYK color mode (H,S,L-channels)
Summary: Crash on color adjustment curves in CMYK color mode (H,S,L-channels)
Status: RESOLVED DUPLICATE of bug 424187
Alias: None
Product: krita
Classification: Applications
Component: Filters (show other bugs)
Version: 4.3.0-beta1
Platform: Other Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-10 00:02 UTC by nikola
Modified: 2020-07-15 12:56 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 nikola 2020-05-10 00:02:50 UTC
SUMMARY

STEPS TO REPRODUCE
1. make new file using CMYK/Alpha color model
2. Filter -> Adjust -> Color adjustment curves
3. In channel instead of default CMYKA select Hue and click OK
4. Krita closes

SOFTWARE/OS VERSIONS
Windows: 10 64bit pro

ADDITIONAL INFORMATION
Krita Version: 4.3.0-beta1 (git cc72dc5), Qt version compiled: 5.12.8, loaded: 5.12.8. Process ID: 3276
-- -- -- -- -- -- -- --
10 May 2020 01:53:19 +0200: Created image "Unnamed", 500 * 500 pixels, 300 dpi. Color model: 8-bit integer/channel CMYK/Alpha (Chemical proof). Layers: 1
Comment 1 Halla Rempt 2020-05-10 09:46:54 UTC
I can confirm the issue. The crash is not a regression, it is present in 4.2, too. There is an assert in Qt:

ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h, line 579
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = krita path = /home/boud/dev/i-4.3/bin pid = 22183
KCrash: Arguments: /home/boud/dev/i-4.3/bin/krita 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0


And the backtrace is 

Thread 1 (Thread 0x7f458e432800 (LWP 22183)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f4588beb801 in __GI_abort () at abort.c:79
#8  0x00007f458961559b in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f4589614deb in qt_assert_x(char const*, char const*, char const*, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f455790adcb in QList<KoChannelInfo*>::operator[] (i=<optimized out>, this=<optimized out>) at /home/boud/dev/4.3/plugins/filters/colorsfilters/kis_multichannel_filter_base.h:38
#11 KisPerChannelConfigWidget::updateChannelControls (this=0x564b574c9210) at /home/boud/dev/4.3/plugins/filters/colorsfilters/kis_perchannel_filter.cpp:104
#12 0x00007f455791d2f2 in KisMultiChannelConfigWidget::setActiveChannel (this=0x564b574c9210, ch=<optimized out>) at /home/boud/dev/4.3/plugins/filters/colorsfilters/kis_multichannel_filter_base.cpp:505
#13 0x00007f455791de0c in KisMultiChannelConfigWidget::slotChannelSelected (this=0x564b574c9210, index=<optimized out>) at /home/boud/dev/4.3/plugins/filters/colorsfilters/kis_multichannel_filter_base.cpp:491
#14 0x00007f4589863dc9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f458a811cf1 in QComboBox::activated(int) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f458a81398e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f458a815174 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f458a81ae8d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f4589863dc9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f458a811e62 in QComboBoxPrivateContainer::itemSelected(QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f458a8122d7 in QComboBoxPrivateContainer::eventFilter(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f4589828b3d in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f458a712892 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f458a71a908 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f458d0d2a59 in KisApplication::notify (this=<optimized out>, receiver=0x564b54b4c6f0, event=0x7ffe1a5c8ca0) at /home/boud/dev/4.3/libs/ui/KisApplication.cpp:680
#26 0x00007f4589828db8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f458a718f8f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f458a76e594 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f458a770d1a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f458a7128bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007f458a719ac0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007f458d0d2a59 in KisApplication::notify (this=<optimized out>, receiver=0x7f45680091e0, event=0x7ffe1a5c91a0) at /home/boud/dev/4.3/libs/ui/KisApplication.cpp:680
#33 0x00007f4589828db8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007f4589e24f95 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#35 0x00007f4589e260c5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#36 0x00007f4589dff01b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#37 0x00007f4579da7c8a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#38 0x00007f4580e0b417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f4580e0b650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f4580e0b6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f45898880bc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007f458982763a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x00007f4589830db0 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x0000564b49489b47 in main (argc=<optimized out>, argv=0x7ffe1a5c9868) at /home/boud/dev/4.3/krita/main.cc:593
[Inferior 1 (process 22183) detached]
Comment 2 nikola 2020-07-15 12:09:38 UTC
It appears that this bug and 424187 are about same thing and recent commit cc273e4985c42f940c60908be6d02ed47554652e solve both. Tested with nightly build gc2b2b792c3.
I think someone should update status to resolved.
Comment 3 Tiar 2020-07-15 12:56:25 UTC
It was in fact a regression, just a bit older one. The faulty commit was a year or two ago.

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