Bug 267320 - deleting predefined brush in use crashes Krita 2.4 a1
Summary: deleting predefined brush in use crashes Krita 2.4 a1
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 17:19 UTC by Dyrver Eriksson
Modified: 2011-03-01 03:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (7.16 KB, text/plain)
2011-02-28 19:26 UTC, Dyrver Eriksson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dyrver Eriksson 2011-02-28 17:19:27 UTC
Application: krita (2.4 Alpha 1)
KDE Platform Version: 4.6.00 (4.6.0)
Qt Version: 4.7.1
Operating System: Linux 2.6.37-ARCH i686
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
I created a custom brush, and soon thereafter deleted it and krita crashed.
- Custom settings of the application:
Just a custom brush from a random image with some furr tests, sometimes it does not crash doing this which is weird.

Whole Calligra is compiled from the AUR PKGBUILD for Alpha 1, and also excuse my lack of knowledge, probably should not report here and probably isn't even related to what I saw happened but who knows, lots of luck!

The crash can be reproduced some of the time.

-- Backtrace:
Application: Krita (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb58f6b20 (LWP 23622))]

Thread 3 (Thread 0xabfb2b70 (LWP 23623)):
#0  0xb5d42d41 in clock_gettime () from /lib/librt.so.1
#1  0xb6e8ec18 in ?? () from /usr/lib/libQtCore.so.4
#2  0xb6f5ca91 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/libQtCore.so.4
#3  0xb6f5d826 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0xb6f2c769 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb6f2ca0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb6e35b6b in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0xb6f0e0fb in ?? () from /usr/lib/libQtCore.so.4
#8  0xb6e385f9 in ?? () from /usr/lib/libQtCore.so.4
#9  0xb6dc5df0 in start_thread () from /lib/libpthread.so.0
#10 0xb61d098e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xab70ab70 (LWP 23629)):
#0  0xb77df424 in __kernel_vsyscall ()
#1  0xb6dca26b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6e38cdf in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb6e355f5 in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#4  0xadec1920 in KisTileDataSwapper::waitForWork() () from /usr/lib/libkritaimage.so.8
#5  0xadec1a94 in KisTileDataSwapper::run() () from /usr/lib/libkritaimage.so.8
#6  0xb6e385f9 in ?? () from /usr/lib/libQtCore.so.4
#7  0xb6dc5df0 in start_thread () from /lib/libpthread.so.0
#8  0xb61d098e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb58f6b20 (LWP 23622)):
[KCrash Handler]
#7  0xacc9930f in KisBrushChooser::slotActivatedBrush(KoResource*) () from /usr/lib/libkritalibpaintop.so.8
#8  0xacc9a0af in KisBrushChooser::slotSetItemSpacing(double) () from /usr/lib/libkritalibpaintop.so.8
#9  0xacc9a28f in KisBrushChooser::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkritalibpaintop.so.8
#10 0xb6f33c2a in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#11 0xb6f43a7f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#12 0xae0a712f in KisDoubleSliderSpinBox::valueChanged(double) () from /usr/lib/libkritaui.so.8
#13 0xae24db37 in KisDoubleSliderSpinBox::setInternalValue(int) () from /usr/lib/libkritaui.so.8
#14 0xae24da40 in KisDoubleSliderSpinBox::setValue(double) () from /usr/lib/libkritaui.so.8
#15 0xacc99eba in KisBrushChooser::update(KoResource*) () from /usr/lib/libkritalibpaintop.so.8
#16 0xacc9a21f in KisBrushChooser::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkritalibpaintop.so.8
#17 0xb6f33c2a in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#18 0xb6f43a7f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#19 0xb0b53973 in KoResourceItemChooser::resourceSelected(KoResource*) () from /usr/lib/libkowidgets.so.8
#20 0xb0b539cd in KoResourceItemChooser::activated(QModelIndex const&) () from /usr/lib/libkowidgets.so.8
#21 0xb0b548a4 in KoResourceItemChooser::slotButtonClicked(int) () from /usr/lib/libkowidgets.so.8
#22 0xb0b55097 in KoResourceItemChooser::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkowidgets.so.8
#23 0xb6f33c2a in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#24 0xb6f43a7f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#25 0xb6b5e443 in QButtonGroup::buttonClicked(int) () from /usr/lib/libQtGui.so.4
#26 0xb686f3d8 in ?? () from /usr/lib/libQtGui.so.4
#27 0xb6870c64 in ?? () from /usr/lib/libQtGui.so.4
#28 0xb6870f1e in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#29 0xb64c255a in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#30 0xb686ff5e in QAbstractButton::event(QEvent*) () from /usr/lib/libQtGui.so.4
#31 0xb690f272 in QPushButton::event(QEvent*) () from /usr/lib/libQtGui.so.4
#32 0xb6469854 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#33 0xb646edf9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#34 0xb75dfe1a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#35 0xb6f2d5ab in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#36 0xb646a7c7 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#37 0xb64f34f4 in ?? () from /usr/lib/libQtGui.so.4
#38 0xb64f1e9f in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#39 0xb651c11b in ?? () from /usr/lib/libQtGui.so.4
#40 0xb6f2c769 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#41 0xb6f2ca0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#42 0xb6f3145f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#43 0xb64676a7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#44 0xb538243d in kdemain () from /usr/lib/libkdeinit4_krita.so
#45 0x0804d959 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2011-02-28 17:26:56 UTC
No, you've done exactly the right thing in reporting the bug here. We really appreciate getting reports! I haven't been able to reproduce yet, but since you say that it doesn't always crash for you, we simply have not yet discovered the exact parameters that make the bug appear.
Comment 2 Dyrver Eriksson 2011-02-28 19:26:10 UTC
Created attachment 57576 [details]
New crash information added by DrKonqi

krita (2.4 Alpha 1) on KDE Platform 4.6.00 (4.6.0) using Qt 4.7.1

- What I was doing when the application crashed:
Deleting a predefined temp-brush at a pretty large size
- Custom settings of the application:
painted something in 1024x768, selected custom brush.
Got another one, with a somewhat different output.
Wish I could still see the git-page where you comment your progress with Krita. Love the application btw. Should mention it was compiled sometime yesterday. near 12 hours atleast ago so it could have been fixed already.

-- Backtrace (Reduced):
#7  0xacc9930f in KisBrushChooser::slotActivatedBrush(KoResource*) () from /usr/lib/libkritalibpaintop.so.8
#8  0xacc9a0af in KisBrushChooser::slotSetItemSpacing(double) () from /usr/lib/libkritalibpaintop.so.8
#9  0xacc9a28f in KisBrushChooser::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkritalibpaintop.so.8
[...]
#12 0xae0a712f in KisDoubleSliderSpinBox::valueChanged(double) () from /usr/lib/libkritaui.so.8
#13 0xae24db37 in KisDoubleSliderSpinBox::setInternalValue(int) () from /usr/lib/libkritaui.so.8
Comment 3 Sven Langkamp 2011-03-01 02:36:27 UTC
Confirmed. I will have a look at it.
Comment 4 Sven Langkamp 2011-03-01 03:18:54 UTC
Git commit 2a0dad6b91ab1c38d221fdfdeb158c015b46ad77 by Sven Langkamp.
Committed on 01/03/2011 at 03:15.
Pushed by langkamp into branch 'master'.

fix crash on deleting brush
BUG:267320

M  +2    -2    krita/plugins/paintops/libbrush/kis_brush_server.cpp     
M  +1    -1    krita/plugins/paintops/libpaintop/kis_custom_brush_widget.cpp     
M  +8    -6    libs/widgets/KoResourceServer.h     

http://commits.kde.org/calligra/2a0dad6b91ab1c38d221fdfdeb158c015b46ad77