Bug 161469 - Click in canvas color, in custom document
Summary: Click in canvas color, in custom document
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-30 23:33 UTC by LukasT
Modified: 2009-02-13 10:27 UTC (History)
1 user (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 LukasT 2008-04-30 23:33:41 UTC
Version:           SVN 30.april (using KDE 3.5.9)
Installed from:    Fedora RPMs

Tutorial to crash:
Start Krita
Select Custom Document from Template 
Click on select box for selecting canvas color - > crash

Krita 2.0 alpha 6

Crash Log:
Application: Krita (krita), signal SIGABRT
[?1034hUsing host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1208867040 (LWP 16582)]
[New Thread 145009552 (LWP 16805)]
[KCrash handler]
#6  0x00110402 in __kernel_vsyscall ()
#7  0x0124c690 in raise () from /lib/libc.so.6
#8  0x0124df91 in abort () from /lib/libc.so.6
#9  0x001623c8 in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbf865a30 "ASSERT failure in QVector<T>::at: \"index out of range\", file /home/lukas/qt-copy/include/QtCore/qvector.h, line 323")
    at global/qglobal.cpp:2058
#10 0x0016242d in qFatal (
    msg=0x2d986c "ASSERT failure in %s: \"%s\", file %s, line %d")
    at global/qglobal.cpp:2260
#11 0x00162472 in qt_assert_x (where=0xcf3750 "QVector<T>::at", 
    what=0xcf373d "index out of range", 
    file=0xcf3710 "/home/lukas/qt-copy/include/QtCore/qvector.h", line=323)
    at global/qglobal.cpp:1836
#12 0x00b1059f in QVector<QColor>::at (this=0x9e0aec0, i=120)
    at /home/lukas/qt-copy/include/QtCore/qvector.h:323
#13 0x00b0df19 in KColorComboPrivate::_k_slotHighlighted (this=0x9e16e68, 
    index=121) at /home/lukas/kde/src/kdelibs/kdeui/colors/kcolorcombo.cpp:345
#14 0x00b0e99c in KColorCombo::qt_metacall (this=0x9f88458, 
    _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbf867bcc)
    at /home/lukas/kde/build/kdelibs/kdeui/kcolorcombo.moc:80
#15 0x0028ed69 in QMetaObject::activate (sender=0x9f88458, 
    from_signal_index=30, to_signal_index=30, argv=0xbf867bcc)
    at kernel/qobject.cpp:3010
#16 0x0028f2f3 in QMetaObject::activate (sender=0x9f88458, m=0x4393798, 
    local_signal_index=3, argv=0xbf867bcc) at kernel/qobject.cpp:3080
#17 0x03e9fc9e in QComboBox::highlighted (this=0x9f88458, _t1=121)
    at .moc/debug-shared/moc_qcombobox.cpp:264
#18 0x03ea1317 in QComboBoxPrivate::_q_emitHighlighted (this=0xa0b1058, 
    index=@0x9f89928) at widgets/qcombobox.cpp:1200
#19 0x03ea9e10 in QComboBox::qt_metacall (this=0x9f88458, 
    _c=QMetaObject::InvokeMetaMethod, _id=13, _a=0xbf867da8)
    at .moc/debug-shared/moc_qcombobox.cpp:169
#20 0x00b0e8ea in KColorCombo::qt_metacall (this=0x9f88458, 
    _c=QMetaObject::InvokeMetaMethod, _id=40, _a=0xbf867da8)
    at /home/lukas/kde/build/kdelibs/kdeui/kcolorcombo.moc:72
#21 0x0028ed69 in QMetaObject::activate (sender=0x9dc1850, 
    from_signal_index=5, to_signal_index=5, argv=0xbf867da8)
    at kernel/qobject.cpp:3010
#22 0x0028f2f3 in QMetaObject::activate (sender=0x9dc1850, m=0x439b570, 
    local_signal_index=1, argv=0xbf867da8) at kernel/qobject.cpp:3080
#23 0x040a3a07 in QItemSelectionModel::currentChanged (this=0x9dc1850, 
    _t1=@0x9f89928, _t2=@0x381a38)
    at .moc/debug-shared/moc_qitemselectionmodel.cpp:151
#24 0x040a46e9 in QItemSelectionModel::setCurrentIndex (this=0x9dc1850, 
    index=@0x9f89928, command=@0xbf868000)
    at itemviews/qitemselectionmodel.cpp:1087
#25 0x03eaa472 in QComboBox::showPopup (this=0x9f88458)
    at widgets/qcombobox.cpp:2212
#26 0x03ea9bab in QComboBox::mousePressEvent (this=0x9f88458, e=0xbf868954)
    at widgets/qcombobox.cpp:2637
#27 0x03b09ed3 in QWidget::event (this=0x9f88458, event=0xbf868954)
    at kernel/qwidget.cpp:6916
#28 0x03ea98e2 in QComboBox::event (this=0x9f88458, event=0xbf868954)
    at widgets/qcombobox.cpp:2610
#29 0x03a9e4df in QApplicationPrivate::notify_helper (this=0x9a18070, 
    receiver=0x9f88458, e=0xbf868954) at kernel/qapplication.cpp:3766
#30 0x03a9f092 in QApplication::notify (this=0xbf869150, receiver=0x9f88458, 
    e=0xbf868954) at kernel/qapplication.cpp:3495
#31 0x00bc4a45 in KApplication::notify (this=0xbf869150, receiver=0x9f88458, 
    event=0xbf868954)
    at /home/lukas/kde/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#32 0x00277f61 in QCoreApplication::notifyInternal (this=0xbf869150, 
    receiver=0x9f88458, event=0xbf868954) at kernel/qcoreapplication.cpp:587
#33 0x016c0b1b in QCoreApplication::sendSpontaneousEvent (receiver=0x9f88458, 
    event=0xbf868954)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#34 0x03aa61a0 in QApplicationPrivate::sendMouseEvent (receiver=0x9f88458, 
    event=0xbf868954, alienWidget=0x9f88458, nativeWidget=0x9b47a30, 
    buttonDown=0x43adc40, lastMouseReceiver=@0x43adc44)
    at kernel/qapplication.cpp:2760
#35 0x03b2a4a4 in QETWidget::translateMouseEvent (this=0x9b47a30, 
    event=0xbf868ea0) at kernel/qapplication_x11.cpp:4112
#36 0x03b27d6e in QApplication::x11ProcessEvent (this=0xbf869150, 
    event=0xbf868ea0) at kernel/qapplication_x11.cpp:3112
#37 0x03b5a90c in x11EventSourceDispatch (s=0x9a1aeb0, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#38 0x062ea1ac in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#39 0x062ed5ef in ?? () from /lib/libglib-2.0.so.0
#40 0x062edb55 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#41 0x002ace48 in QEventDispatcherGlib::processEvents (this=0x9a15bb8, 
    flags=@0xbf869048) at kernel/qeventdispatcher_glib.cpp:325
#42 0x03b5a358 in QGuiEventDispatcherGlib::processEvents (this=0x9a15bb8, 
    flags=@0xbf869078) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00274456 in QEventLoop::processEvents (this=0xbf8690fc, 
    flags=@0xbf8690b4) at kernel/qeventloop.cpp:149
#44 0x00274695 in QEventLoop::exec (this=0xbf8690fc, flags=@0xbf869104)
    at kernel/qeventloop.cpp:200
#45 0x00278898 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#46 0x03a9e1dc in QApplication::exec () at kernel/qapplication.cpp:3298
#47 0x001133a4 in kdemain (argc=1, argv=0xbf869244)
    at /home/lukas/kde/src/koffice/krita/main.cc:45
#48 0x080489b6 in main (argc=)
    at /home/lukas/kde/build/koffice/krita/krita_dummy.cpp:3
#0  0x00110402 in __kernel_vsyscall ()
Comment 1 LukasT 2008-04-30 23:36:16 UTC
I did not installed it from RPM, sorry for misleading
Comment 2 Cyrille Berger 2008-05-01 00:42:42 UTC
SVN commit 802872 by berger:

fix assert when clicking to choose the color canvas

I am not closing the bug, since it will rehappen again next time wdgnewimage.ui is edited again, the solution is to manually empty the list of items of KColorComboBox otherwise designer will (wrongly) add items to the combo box.

CCBUG:161469


 M  +11 -606   wdgnewimage.ui  


WebSVN link: http://websvn.kde.org/?view=rev&revision=802872
Comment 3 Halla Rempt 2009-02-13 10:27:54 UTC
After testing, it seems that this is fixed with current versions of Qt Designer. That is, opening the .ui file, changing something, saving it and then going through the steps does not lead to a crash anymore.

What's more, commit 925390 makes it possible to actually _set_ the canvas color again :-)