Bug 179236 - switching between preset brushes eventually leads to crash
Summary: switching between preset brushes eventually leads to crash
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-31 21:10 UTC by Elián Hanisch
Modified: 2009-01-01 11:38 UTC (History)
0 users

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 Elián Hanisch 2008-12-31 21:10:31 UTC
Version:           svn trunk (using KDE 4.1.2)
OS:                Linux
Installed from:    Ubuntu Packages

1. start a new document (I used default 640x480 rgb template)
2. click in the preview brush
3. go to predefined brushes and star switching between two brushes back and fort until you get a crash

I noticed that it doesn't crash if you switch between different brushes, but when you pick a previous selected brush

backtrace: 
Application: Krita (krita), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb40c1900 (LWP 14086)]
[KCrash handler]
#6  0xb68e51d7 in KoResource::removable (this=0x93ba628)
    at /home/m4v-kde3/dev/kde/src/koffice/trunk/libs/resources/KoResource.cpp:85
#7  0xb6a730f0 in KoResourceItemChooser::selectionChanged (this=0x9533f08)
    at /home/m4v-kde3/dev/kde/src/koffice/trunk/libs/guiutils/KoResourceItemChooser.cpp:199
#8  0xb6a73257 in KoResourceItemChooser::qt_metacall (this=0x9533f08, 
    _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbff6f858)
    at /home/m4v-kde3/dev/kde/build/koffice/trunk/libs/guiutils/KoResourceItemChooser.moc:90
#9  0xb7e6df79 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb7e6e642 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0xb64b2a17 in QTableWidget::itemSelectionChanged ()
   from /usr/lib/libQtGui.so.4
#12 0xb64b9eae in QTableWidget::qt_metacall () from /usr/lib/libQtGui.so.4
#13 0xb6a58bfe in KoResourceChooser::qt_metacall (this=0x95341f8, 
    _c=QMetaObject::InvokeMetaMethod, _id=95, _a=0xbff6f9b8)
    at /home/m4v-kde3/dev/kde/build/koffice/trunk/libs/guiutils/KoResourceChooser.moc:99
#14 0xb7e6df79 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#15 0xb7e6e642 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb6499b49 in QItemSelectionModel::selectionChanged ()
   from /usr/lib/libQtGui.so.4
#17 0xb64a1b1e in QItemSelectionModel::emitSelectionChanged ()
   from /usr/lib/libQtGui.so.4
#18 0xb64a213a in QItemSelectionModel::select () from /usr/lib/libQtGui.so.4
#19 0xb647b61a in QTableView::setSelection () from /usr/lib/libQtGui.so.4
#20 0xb6447482 in QAbstractItemView::mousePressEvent ()
   from /usr/lib/libQtGui.so.4
#21 0xb5fdbe34 in QWidget::event () from /usr/lib/libQtGui.so.4
#22 0xb63162a3 in QFrame::event () from /usr/lib/libQtGui.so.4
#23 0xb63aa20f in QAbstractScrollArea::viewportEvent ()
   from /usr/lib/libQtGui.so.4
#24 0xb6453c28 in QAbstractItemView::viewportEvent ()
   from /usr/lib/libQtGui.so.4
#25 0xb6a5967c in KoResourceChooser::viewportEvent (this=0x95341f8, 
    e=0xbff705cc)
    at /home/m4v-kde3/dev/kde/src/koffice/trunk/libs/guiutils/KoResourceChooser.cpp:117
#26 0xb63ab5b5 in ?? () from /usr/lib/libQtGui.so.4
#27 0xb7e59431 in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
   from /usr/lib/libQtCore.so.4
#28 0xb5f83f73 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#29 0xb5f89125 in QApplication::notify () from /usr/lib/libQtGui.so.4
#30 0xb7589483 in KApplication::notify () from /usr/lib/kde4/lib/libkdeui.so.5
#31 0xb7e590b9 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#32 0xb5f86661 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#33 0xb5ff076c in ?? () from /usr/lib/libQtGui.so.4
#34 0xb5feeee1 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#35 0xb6017c2a in ?? () from /usr/lib/libQtGui.so.4
#36 0xb5807cc6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0xb580b083 in ?? () from /usr/lib/libglib-2.0.so.0
#38 0xb580b63e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0xb7e849f8 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#40 0xb6017a25 in ?? () from /usr/lib/libQtGui.so.4
#41 0xb7e5833d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#42 0xb7e584cd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#43 0xb7e5a74d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#44 0xb5f83897 in QApplication::exec () from /usr/lib/libQtGui.so.4
#45 0xb7f74524 in kdemain (argc=1, argv=0xbff70e84)
    at /home/m4v-kde3/dev/kde/src/koffice/trunk/krita/main.cc:59
#46 0x08048846 in main (argc=)
    at /home/m4v-kde3/dev/kde/build/koffice/trunk/krita/krita_dummy.cpp:3
#0  0xb7f78410 in __kernel_vsyscall ()
Comment 1 Halla Rempt 2009-01-01 11:38:57 UTC
SVN commit 904029 by rempt:

BUG: 179236 Don't use shared pointers for KoResources, they don't need to be deleted so they don't need to be managed.

 M  +1 -1      complexop/kis_complexop.cpp  
 M  +1 -1      defaultpaintops/airbrush/kis_airbrushop.cpp  
 M  +1 -1      defaultpaintops/brush/kis_brushop.cpp  
 M  +1 -1      defaultpaintops/duplicate/kis_duplicateop.cpp  
 M  +1 -1      defaultpaintops/eraser/kis_eraseop.cpp  
 M  +1 -1      defaultpaintops/pen/kis_penop.cpp  
 M  +1 -1      defaultpaintops/smudge/kis_smudgeop.cpp  
 M  +1 -1      filterop/kis_filterop.cpp  
 M  +1 -1      libpaintop/kis_auto_brush_widget.cpp  
 M  +2 -2      libpaintop/kis_auto_brush_widget.h  
 M  +1 -1      libpaintop/kis_brush.cc  
 M  +1 -4      libpaintop/kis_brush.h  
 M  +2 -2      libpaintop/kis_brush_based_paintop.cpp  
 M  +2 -2      libpaintop/kis_brush_based_paintop.h  
 M  +1 -1      libpaintop/kis_brush_chooser.cpp  
 M  +7 -7      libpaintop/kis_brush_chooser.h  
 M  +1 -1      libpaintop/kis_brush_option.cpp  
 M  +1 -1      libpaintop/kis_brush_option.h  
 M  +2 -2      libpaintop/kis_brush_selection_widget.cpp  
 M  +1 -1      libpaintop/kis_brush_selection_widget.h  
 M  +2 -2      libpaintop/kis_custom_brush.h  
 M  +1 -1      libpaintop/kis_text_brush.cc  
 M  +2 -2      libpaintop/kis_text_brush.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=904029