Bug 282969 - Changes in Shadow toolbar crashed Karbon
Summary: Changes in Shadow toolbar crashed Karbon
Status: RESOLVED FIXED
Alias: None
Product: karbon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Jan Hambrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 13:27 UTC by Dyrver Eriksson
Modified: 2011-09-28 22:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.73 KB, text/plain)
2011-09-28 18:41 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-09-28 13:27:23 UTC
Application: karbon (2.4 Beta 1)
KDE Platform Version: 4.7.1 (4.7.1)
Qt Version: 4.7.4
Operating System: Linux 3.0-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
- What I was doing when the application crashed:
I was clicking around and playing with the shadow angle in a version 2.4 compiled yesterday from git, when I got to the blur radius, and went below a certain radius, not sure which one it just Crashed to desktop.
I was also seeing it tried to switch angle when I was toying with the setting below it before reaching blur.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Karbon14 (kdeinit4), signal: Floating point exception
[Current thread is 1 (Thread 0x7f3723e70760 (LWP 2898))]

Thread 2 (Thread 0x7f37034c9700 (LWP 2899)):
#0  0x00007f3721526563 in poll () from /lib/libc.so.6
#1  0x00007f371e56b7d4 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f371e56bd09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f3722af366e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f3722ac7a92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f3722ac7c97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f37229df13f in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f3722aaaaef in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f37229e1bc5 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f371513556c in ?? () from /usr/lib/libGL.so.1
#10 0x00007f3722757da0 in start_thread () from /lib/libpthread.so.0
#11 0x00007f372152e7dd in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3723e70760 (LWP 2898)):
[KCrash Handler]
#6  0x00007f371049ce25 in KoShapeShadow::Private::blurShadow(QImage&, int, QColor const&) () from /usr/lib/libflake.so.8
#7  0x00007f371049e46a in KoShapeShadow::paint(KoShape*, QPainter&, KoViewConverter const&) () from /usr/lib/libflake.so.8
#8  0x00007f37104546e3 in KoShapeManager::paintShape(KoShape*, QPainter&, KoViewConverter const&, bool) () from /usr/lib/libflake.so.8
#9  0x00007f3710453d47 in KoShapeManagerPaintingStrategy::paint(KoShape*, QPainter&, KoViewConverter const&, bool) () from /usr/lib/libflake.so.8
#10 0x00007f37104588f7 in KoShapeManager::paint(QPainter&, KoViewConverter const&, bool) () from /usr/lib/libflake.so.8
#11 0x00007f3710fa3c40 in ?? () from /usr/lib/libkarbonui.so.8
#12 0x00007f3721cd20ac in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#13 0x00007f3721c81ae4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#14 0x00007f3721c86951 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#15 0x00007f3723862c96 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#16 0x00007f3722ac889c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#17 0x00007f3721ccefe4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#18 0x00007f3721e8e1d6 in ?? () from /usr/lib/libQtGui.so.4
#19 0x00007f3721cc5840 in QWidgetPrivate::syncBackingStore() () from /usr/lib/libQtGui.so.4
#20 0x00007f3721cd25bc in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#21 0x00007f372208fd7b in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
#22 0x00007f372395fa78 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#23 0x00007f3721c81ae4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#24 0x00007f3721c86951 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x00007f3723862c96 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#26 0x00007f3722ac889c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#27 0x00007f3722acbc2f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#28 0x00007f3722af31a3 in ?? () from /usr/lib/libQtCore.so.4
#29 0x00007f371e56b29d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#30 0x00007f371e56ba78 in ?? () from /usr/lib/libglib-2.0.so.0
#31 0x00007f371e56bd09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#32 0x00007f3722af3606 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#33 0x00007f3721d24eee in ?? () from /usr/lib/libQtGui.so.4
#34 0x00007f3722ac7a92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#35 0x00007f3722ac7c97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00007f3722acbeab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#37 0x00007f37111c5d75 in kdemain () from /usr/lib/libkdeinit4_karbon.so
#38 0x00000000004082a7 in _start ()

Reported using DrKonqi
Comment 1 Dyrver Eriksson 2011-09-28 18:41:54 UTC
Created attachment 64040 [details]
New crash information added by DrKonqi

karbon (2.4 Beta 1) on KDE Platform 4.7.1 (4.7.1) using Qt 4.7.4

- What I was doing when the application crashed:
Click and hold down on the blur-radius in the shadows tool going backwards.

-- Backtrace (Reduced):
#6  0x00007f3bfc499e25 in KoShapeShadow::Private::blurShadow(QImage&, int, QColor const&) () from /usr/lib/libflake.so.8
#7  0x00007f3bfc49b46a in KoShapeShadow::paint(KoShape*, QPainter&, KoViewConverter const&) () from /usr/lib/libflake.so.8
#8  0x00007f3bfc4516e3 in KoShapeManager::paintShape(KoShape*, QPainter&, KoViewConverter const&, bool) () from /usr/lib/libflake.so.8
#9  0x00007f3bfc450d47 in KoShapeManagerPaintingStrategy::paint(KoShape*, QPainter&, KoViewConverter const&, bool) () from /usr/lib/libflake.so.8
#10 0x00007f3bfc4558f7 in KoShapeManager::paint(QPainter&, KoViewConverter const&, bool) () from /usr/lib/libflake.so.8
Comment 2 Dyrver Eriksson 2011-09-28 18:57:35 UTC
Maybe I should add it's the latest dev version from anongit. First report was compiled near "02:48 pm Revision 1062760c: Fix warning" and the recent "02:15 pm Revision b2b2b910: Merge branch 'master' of ssh://git.kde.org/calligra" as can be read about on projects.kde.org. Not that it matters since I don't see many things about Karbon14 there.
Seems the crash happens alot more often when adding debug symbols with RelWithDeb. The shadows are added on a freehand path object made to look like a brain as well.
Comment 3 Jan Hambrecht 2011-09-28 21:52:49 UTC
I can reproduce this bug, thanks for reporting.
Comment 4 Jan Hambrecht 2011-09-28 22:11:33 UTC
Git commit ea9d681797645dd568bbcb44f4c18efeddcd9a7a by Jan Hambrecht.
Committed on 29/09/2011 at 00:10.
Pushed by jaham into branch 'master'.

do not allow blur negative radius

BUG:282969

M  +3    -2    libs/flake/KoShapeShadow.cpp
M  +1    -1    libs/flake/KoShapeShadow.h
M  +4    -9    libs/widgets/KoShadowConfigWidget.cpp
M  +2    -2    libs/widgets/KoShadowConfigWidget.h
M  +1    -1    plugins/dockers/shadowdocker/ShadowDocker.cpp

http://commits.kde.org/calligra/ea9d681797645dd568bbcb44f4c18efeddcd9a7a