Bug 361596

Summary: Crash when opening color space browser
Product: [Applications] krita Reporter: omiya <tokyogeometry+kdeb>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description omiya 2016-04-10 15:03:09 UTC
Krita crashes immediately when the color space browser is opened.

Reproducible: Always

Steps to Reproduce:
1. Open a dialog box which has 'Color Space Browser' button. (New Document dialog box, Image properties dialog box, etc)
2. Click on the button.
Comment 1 Halla Rempt 2016-04-12 06:56:14 UTC
Hi Omiya,

Thanks for your report. I haven't been able to reproduce yet. If you can reproduce on Linux, could you please attach the crash report? Thanks!
Comment 2 omiya 2016-04-12 14:43:47 UTC
Hi, here is a backtrace from gdb:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4fd6724 in KoColorSpace::gamutXYY (this=0x5e3fcd0)
    at /home/omiya/krita-git/src/krita/libs/pigment/KoColorSpace.cpp:125
125	        QString name = KoColorSpaceRegistry::instance()->colorSpaceFactory("XYZAF16")->defaultProfile();

#0  0x00007ffff4fd6724 in KoColorSpace::gamutXYY (this=0x5e3fcd0)
    at /home/omiya/krita-git/src/krita/libs/pigment/KoColorSpace.cpp:125
#1  0x00007ffff769e2cb in KisAdvancedColorSpaceSelector::fillDescription (
    this=0x78f3360)
    at /home/omiya/krita-git/src/krita/libs/ui/widgets/kis_advanced_color_space_selector.cc:245
#2  0x00007ffff787eaa7 in KisAdvancedColorSpaceSelector::qt_static_metacall (
    _o=0x78f3360, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffffffb300)
    at /home/omiya/krita-git/build/krita/libs/ui/moc_kis_advanced_color_space_selector.cpp:109
#3  0x00007ffff1139cc6 in QMetaObject::activate (sender=0x78f3360, 
    signalOffset=<optimized out>, local_signal_index=<optimized out>, 
    argv=0x7fffffffb300) at kernel/qobject.cpp:3713
#4  0x00007ffff787ede6 in KisAdvancedColorSpaceSelector::selectionChanged (
    this=0x78f3360, _t1=true)
    at /home/omiya/krita-git/build/krita/libs/ui/moc_kis_advanced_color_space_selector.cpp:192
#5  0x00007ffff76a3ef9 in KisAdvancedColorSpaceSelector::colorSpaceChanged (
    this=0x78f3360)
    at /home/omiya/krita-git/src/krita/libs/ui/widgets/kis_advanced_color_space_selector.cc:765
#6  0x00007ffff769bfbd in KisAdvancedColorSpaceSelector::fillLstProfiles (
    this=0x78f3360)
    at /home/omiya/krita-git/src/krita/libs/ui/widgets/kis_advanced_color_space_selector.cc:122
#7  0x00007ffff769b979 in KisAdvancedColorSpaceSelector::KisAdvancedColorSpaceSelector (this=0x78f3360, parent=0x78d1ee0, caption=...)
    at /home/omiya/krita-git/src/krita/libs/ui/widgets/kis_advanced_color_space_selector.cc:87
#8  0x00007ffff7699b6a in KisColorSpaceSelector::slotOpenAdvancedSelector (
    this=0x78d1ee0)
    at /home/omiya/krita-git/src/krita/libs/ui/widgets/kis_color_space_selector.cc:208
#9  0x00007ffff788048f in KisColorSpaceSelector::qt_static_metacall (
    _o=0x78d1ee0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffffffb7d0)
    at /home/omiya/krita-git/build/krita/libs/ui/moc_kis_color_space_selector.cpp:107
#10 0x00007ffff1139cc6 in QMetaObject::activate (
    sender=sender@entry=0x79e5d60, signalOffset=<optimized out>, 
    local_signal_index=local_signal_index@entry=2, 
    argv=argv@entry=0x7fffffffb7d0) at kernel/qobject.cpp:3713
#11 0x00007ffff113a2e7 in QMetaObject::activate (
    sender=sender@entry=0x79e5d60, 
    m=m@entry=0x7ffff2b946c0 <QAbstractButton::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=2, 
    argv=argv@entry=0x7fffffffb7d0) at kernel/qobject.cpp:3578
#12 0x00007ffff280a5e2 in QAbstractButton::clicked (this=this@entry=0x79e5d60, 
    _t1=false) at .moc/moc_qabstractbutton.cpp:303
#13 0x00007ffff257f366 in QAbstractButtonPrivate::emitClicked (
    this=this@entry=0x78e1bc0) at widgets/qabstractbutton.cpp:534
#14 0x00007ffff257ff9e in QAbstractButtonPrivate::click (
    this=this@entry=0x78e1bc0) at widgets/qabstractbutton.cpp:527
#15 0x00007ffff2580114 in QAbstractButton::mouseReleaseEvent (this=0x79e5d60, 
    e=0x7fffffffbd70) at widgets/qabstractbutton.cpp:1132
#16 0x00007ffff24c63a1 in QWidget::event (this=0x79e5d60, event=0x7fffffffbd70)
    at kernel/qwidget.cpp:8681
#17 0x00007ffff2485e7c in QApplicationPrivate::notify_helper (
    this=this@entry=0xb9bda0, receiver=receiver@entry=0x79e5d60, 
    e=e@entry=0x7fffffffbd70) at kernel/qapplication.cpp:3716
#18 0x00007ffff248b2cb in QApplication::notify (this=<optimized out>, 
    receiver=0x79e5d60, e=0x7fffffffbd70) at kernel/qapplication.cpp:3276
#19 0x00007ffff7797a4f in KisApplication::notify (this=0x7fffffffd890, 
    receiver=0x79e5d60, event=0x7fffffffbd70)
    at /home/omiya/krita-git/src/krita/libs/ui/KisApplication.cpp:504
#20 0x00007ffff1109e95 in QCoreApplication::notifyInternal (this=
    0x7fffffffd890, receiver=receiver@entry=0x79e5d60, 
    event=event@entry=0x7fffffffbd70) at kernel/qcoreapplication.cpp:965
#21 0x00007ffff248a191 in sendSpontaneousEvent (event=0x7fffffffbd70, 
    receiver=0x79e5d60) at ../../src/corelib/kernel/qcoreapplication.h:227
#22 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x79e5d60, 
    event=event@entry=0x7fffffffbd70, alienWidget=alienWidget@entry=0x79e5d60, 
    nativeWidget=0x6837760, 
    buttonDown=buttonDown@entry=0x7ffff2ba36a0 <qt_button_down>, 
    lastMouseReceiver=..., spontaneous=spontaneous@entry=true)
    at kernel/qapplication.cpp:2770
#23 0x00007ffff24df13b in QWidgetWindow::handleMouseEvent (this=this@entry=
    0x6805670, event=event@entry=0x7fffffffc2a0)
    at kernel/qwidgetwindow.cpp:555
#24 0x00007ffff24e1353 in QWidgetWindow::event (this=0x6805670, 
    event=0x7fffffffc2a0) at kernel/qwidgetwindow.cpp:210
#25 0x00007ffff2485e7c in QApplicationPrivate::notify_helper (
    this=this@entry=0xb9bda0, receiver=receiver@entry=0x6805670, 
    e=e@entry=0x7fffffffc2a0) at kernel/qapplication.cpp:3716
#26 0x00007ffff248acc8 in QApplication::notify (this=0x7fffffffd890, 
    receiver=0x6805670, e=0x7fffffffc2a0) at kernel/qapplication.cpp:3499
#27 0x00007ffff7797a4f in KisApplication::notify (this=0x7fffffffd890, 
    receiver=0x6805670, event=0x7fffffffc2a0)
    at /home/omiya/krita-git/src/krita/libs/ui/KisApplication.cpp:504
#28 0x00007ffff1109e95 in QCoreApplication::notifyInternal (
    this=0x7fffffffd890, receiver=receiver@entry=0x6805670, 
    event=event@entry=0x7fffffffc2a0) at kernel/qcoreapplication.cpp:965
#29 0x00007ffff165b964 in sendSpontaneousEvent (event=0x7fffffffc2a0, 
    receiver=0x6805670) at ../../src/corelib/kernel/qcoreapplication.h:227
#30 QGuiApplicationPrivate::processMouseEvent (e=0x7a96550)
    at kernel/qguiapplication.cpp:1791
#31 0x00007ffff165d175 in QGuiApplicationPrivate::processWindowSystemEvent (
    e=e@entry=0x7a96550) at kernel/qguiapplication.cpp:1583
#32 0x00007ffff1642268 in QWindowSystemInterface::sendWindowSystemEvents (
    flags=...) at kernel/qwindowsysteminterface.cpp:625
#33 0x00007fffe74d8200 in userEventSourceDispatch (source=<optimized out>)
    at eventdispatchers/qeventdispatcher_glib.cpp:70
#34 0x00007fffecad1c84 in g_main_dispatch (context=0x7fffe00016f0)
    at gmain.c:3122
#35 g_main_context_dispatch (context=context@entry=0x7fffe00016f0)
    at gmain.c:3737
#36 0x00007fffecad1ed8 in g_main_context_iterate (
    context=context@entry=0x7fffe00016f0, block=block@entry=1, 
    dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3808
#37 0x00007fffecad1f7c in g_main_context_iteration (context=0x7fffe00016f0, 
    may_block=1) at gmain.c:3869
#38 0x00007ffff1160d6c in QEventDispatcherGlib::processEvents (this=0xcc6fe0, 
    flags=...) at kernel/qeventdispatcher_glib.cpp:418
#39 0x00007ffff1107d53 in QEventLoop::exec (this=this@entry=0x7fffffffc620, 
    flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#40 0x00007ffff2674e1d in QDialog::exec (this=0x6837760)
    at dialogs/qdialog.cpp:541
#41 0x00007ffff753ce0d in KisImageManager::slotImageProperties (this=0x5e42db0)
    at /home/omiya/krita-git/src/krita/libs/ui/kis_image_manager.cc:173
#42 0x00007ffff7876574 in KisImageManager::qt_static_metacall (_o=0x5e42db0, 
    _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fffffffc880)
    at /home/omiya/krita-git/build/krita/libs/ui/moc_kis_image_manager.cpp:136
#43 0x00007ffff1139cc6 in QMetaObject::activate (
    sender=sender@entry=0x5d0e210, signalOffset=<optimized out>, 
    local_signal_index=local_signal_index@entry=1, 
    argv=argv@entry=0x7fffffffc880) at kernel/qobject.cpp:3713
#44 0x00007ffff113a2e7 in QMetaObject::activate (
    sender=sender@entry=0x5d0e210, 
    m=m@entry=0x7ffff2b716a0 <QAction::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=1, 
    argv=argv@entry=0x7fffffffc880) at kernel/qobject.cpp:3578
#45 0x00007ffff247c8d2 in QAction::triggered (this=this@entry=0x5d0e210, 
    _t1=false) at .moc/moc_qaction.cpp:365
#46 0x00007ffff247eda8 in QAction::activate (this=this@entry=0x5d0e210, 
    event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1162
#47 0x00007ffff25f6b9a in QMenuPrivate::activateCausedStack (
    this=this@entry=0x67782e0, causedStack=..., action=action@entry=0x5d0e210, 
    action_e=action_e@entry=QAction::Trigger, self=self@entry=true)
    at widgets/qmenu.cpp:1130
#48 0x00007ffff25fcaa4 in QMenuPrivate::activateAction (
    this=this@entry=0x67782e0, action=action@entry=0x5d0e210, 
    action_e=action_e@entry=QAction::Trigger, self=self@entry=true)
    at widgets/qmenu.cpp:1207
#49 0x00007ffff26009cb in QMenu::mouseReleaseEvent (this=<optimized out>, 
    e=0x7fffffffcf80) at widgets/qmenu.cpp:2536
#50 0x00007ffff24c63a1 in QWidget::event (this=this@entry=0x67759b0, 
    event=event@entry=0x7fffffffcf80) at kernel/qwidget.cpp:8681
#51 0x00007ffff26013db in QMenu::event (this=0x67759b0, e=0x7fffffffcf80)
    at widgets/qmenu.cpp:2650
#52 0x00007ffff2485e7c in QApplicationPrivate::notify_helper (
    this=this@entry=0xb9bda0, receiver=receiver@entry=0x67759b0, 
    e=e@entry=0x7fffffffcf80) at kernel/qapplication.cpp:3716
#53 0x00007ffff248b2cb in QApplication::notify (this=<optimized out>, 
    receiver=0x67759b0, e=0x7fffffffcf80) at kernel/qapplication.cpp:3276
#54 0x00007ffff7797a4f in KisApplication::notify (this=0x7fffffffd890, 
    receiver=0x67759b0, event=0x7fffffffcf80)
    at /home/omiya/krita-git/src/krita/libs/ui/KisApplication.cpp:504
#55 0x00007ffff1109e95 in QCoreApplication::notifyInternal (
    this=0x7fffffffd890, receiver=receiver@entry=0x67759b0, 
    event=event@entry=0x7fffffffcf80) at kernel/qcoreapplication.cpp:965
#56 0x00007ffff248a191 in sendSpontaneousEvent (event=0x7fffffffcf80, 
    receiver=0x67759b0) at ../../src/corelib/kernel/qcoreapplication.h:227
#57 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x67759b0, 
    event=event@entry=0x7fffffffcf80, alienWidget=alienWidget@entry=0x0, 
    nativeWidget=0x67759b0, 
    buttonDown=buttonDown@entry=0x7ffff2ba36a0 <qt_button_down>, 
    lastMouseReceiver=..., spontaneous=spontaneous@entry=true)
    at kernel/qapplication.cpp:2770
#58 0x00007ffff24dee76 in QWidgetWindow::handleMouseEvent (
    this=this@entry=0x68b1c30, event=event@entry=0x7fffffffd4b0)
    at kernel/qwidgetwindow.cpp:452
#59 0x00007ffff24e1353 in QWidgetWindow::event (this=0x68b1c30, 
    event=0x7fffffffd4b0) at kernel/qwidgetwindow.cpp:210
#60 0x00007ffff2485e7c in QApplicationPrivate::notify_helper (
    this=this@entry=0xb9bda0, receiver=receiver@entry=0x68b1c30, 
    e=e@entry=0x7fffffffd4b0) at kernel/qapplication.cpp:3716
#61 0x00007ffff248acc8 in QApplication::notify (this=0x7fffffffd890, 
    receiver=0x68b1c30, e=0x7fffffffd4b0) at kernel/qapplication.cpp:3499
#62 0x00007ffff7797a4f in KisApplication::notify (this=0x7fffffffd890, 
    receiver=0x68b1c30, event=0x7fffffffd4b0)
    at /home/omiya/krita-git/src/krita/libs/ui/KisApplication.cpp:504
#63 0x00007ffff1109e95 in QCoreApplication::notifyInternal (
    this=0x7fffffffd890, receiver=receiver@entry=0x68b1c30, 
    event=event@entry=0x7fffffffd4b0) at kernel/qcoreapplication.cpp:965
#64 0x00007ffff165b964 in sendSpontaneousEvent (event=0x7fffffffd4b0, 
    receiver=0x68b1c30) at ../../src/corelib/kernel/qcoreapplication.h:227
#65 QGuiApplicationPrivate::processMouseEvent (e=0x6839f30)
    at kernel/qguiapplication.cpp:1791
#66 0x00007ffff165d175 in QGuiApplicationPrivate::processWindowSystemEvent (
    e=e@entry=0x6839f30) at kernel/qguiapplication.cpp:1583
#67 0x00007ffff1642268 in QWindowSystemInterface::sendWindowSystemEvents (
    flags=...) at kernel/qwindowsysteminterface.cpp:625
#68 0x00007fffe74d8200 in userEventSourceDispatch (source=<optimized out>)
    at eventdispatchers/qeventdispatcher_glib.cpp:70
#69 0x00007fffecad1c84 in g_main_dispatch (context=0x7fffe00016f0)
    at gmain.c:3122
#70 g_main_context_dispatch (context=context@entry=0x7fffe00016f0)
    at gmain.c:3737
#71 0x00007fffecad1ed8 in g_main_context_iterate (
    context=context@entry=0x7fffe00016f0, block=block@entry=1, 
    dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3808
#72 0x00007fffecad1f7c in g_main_context_iteration (context=0x7fffe00016f0, 
    may_block=1) at gmain.c:3869
#73 0x00007ffff1160d6c in QEventDispatcherGlib::processEvents (this=0xcc6fe0, 
    flags=...) at kernel/qeventdispatcher_glib.cpp:418
#74 0x00007ffff1107d53 in QEventLoop::exec (this=this@entry=0x7fffffffd830, 
    flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#75 0x00007ffff110f8f6 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:1229
#76 0x0000000000408bad in main (argc=1, argv=0x7fffffffde78)
    at /home/omiya/krita-git/src/krita/krita/main.cc:220
Comment 3 Halla Rempt 2016-04-12 15:34:06 UTC
Ah! I think you built without openexr, so you don't have the F16 colorspaces. Until we make that dependency mandatory, Krita shouldn't crash of course!
Comment 4 Halla Rempt 2016-04-12 16:20:47 UTC
Git commit 972a6eedfdd3fd4fe0e01c9fd466d7ad7761758a by Boudewijn Rempt.
Committed on 12/04/2016 at 16:20.
Pushed by rempt into branch 'master'.
Related: bug 16

M  +13   -13   libs/pigment/KoColorSpace.cpp

http://commits.kde.org/krita/972a6eedfdd3fd4fe0e01c9fd466d7ad7761758a
Comment 5 Friedrich W. H. Kossebau 2016-05-24 16:48:31 UTC
Git commit 59db91b27e001ed445e31ca84920f034530244eb by Friedrich W. H. Kossebau, on behalf of Boudewijn Rempt.
Committed on 24/05/2016 at 15:30.
Pushed by kossebau into branch 'master'.
Related: bug 16

M  +13   -13   libs/pigment/KoColorSpace.cpp

http://commits.kde.org/calligra/59db91b27e001ed445e31ca84920f034530244eb