Bug 290402 - Krita crash using color selection mode
Summary: Krita crash using color selection mode
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 14:27 UTC by Philippe Nicloux
Modified: 2018-06-06 19:14 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Nicloux 2012-01-02 14:27:43 UTC
Application: krita (2.4 Beta 5)
KDE Platform Version: 4.6.5 (4.6.5) (Compiled from sources)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-13-generic x86_64
Distribution: Linux Mint 11 Katya

-- Information about the crash:
- What I was doing when the application crashed: I was just drawing and filling very simple shapes. the moment before, I just erased a vector layer. Then I wanted to select an area with color selection tool. then crash.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f12a5e0e7a0 (LWP 31169))]

Thread 7 (Thread 0x7f1295e1e700 (LWP 31170)):
#0  0x00007f129dd75f03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f129cfaa104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f129cfaa9f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f129677dc44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f129cfd13e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f129da85d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f129dd8304d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f127f4d0700 (LWP 31172)):
#0  0x00007f129da8abac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f12a55d782b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f12a55d4235 in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#3  0x00007f12a4c2b01e in KisTileDataPooler::waitForWork (this=0x13ff3f0) at /home/filou/source-to-compile/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007f12a4c2b704 in KisTileDataPooler::run (this=0x13ff3f0) at /home/filou/source-to-compile/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007f12a55d7175 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007f129da85d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f129dd8304d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f127eccf700 (LWP 31173)):
#0  0x00007f129da8abac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f12a55d782b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f12a55d4469 in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#3  0x00007f12a4c4c4ea in KisTileDataSwapper::run (this=0x13ff428) at /home/filou/source-to-compile/calligra/calligra-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#4  0x00007f12a55d7175 in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007f129da85d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f129dd8304d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f127dc5f700 (LWP 31178)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f127dc5ead0 in ?? ()
#2  0x00007fff893ff7b2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x7f12779eb700 (LWP 31192)):
#0  0x00007f129da8abac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f12a55d782b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f129f8257d4 in ?? () from /usr/lib/libQtGui.so.4
#3  0x00007f12a55d7175 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f129da85d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f129dd8304d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f12781ec700 (LWP 31193)):
#0  0x00007f12a562826c in ?? () from /usr/lib/libQtCore.so.4
#1  0x00007f12a56282e9 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f12a56e9e3d in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f12a56ea1a5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f12a56ec0ce in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f12a56bd882 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f12a56bdabc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007f12a55d4924 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0x00007f12a569fc2f in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f12a55d7175 in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f129da85d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007f129dd8304d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f12a5e0e7a0 (LWP 31169)):
[KCrash Handler]
#6  0x00007f127ac818c4 in KisToolSelectSimilar::mousePressEvent (this=0x351cf60, event=0x7fff89391fc0) at /home/filou/source-to-compile/calligra/calligra-src/krita/plugins/tools/selectiontools/kis_tool_select_similar.cc:99
#7  0x00007f12a2c6a170 in KoToolProxy::tabletEvent (this=0x7f12705aa560, event=0x7fff89392910, point=...) at /home/filou/source-to-compile/calligra/calligra-src/libs/flake/KoToolProxy.cpp:171
#8  0x00007f12a50c1eb7 in KisCanvasWidgetBase::processTabletEvent (this=0x7f12705aa9c8, e=0x7fff89392910) at /home/filou/source-to-compile/calligra/calligra-src/krita/ui/canvas/kis_canvas_widget_base.cpp:309
#9  0x00007f129f37ca54 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#10 0x00007f129f32b9f4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#11 0x00007f129f330abe in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#12 0x00007f12a004f6c6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#13 0x00007f12a56be49c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#14 0x00007f129f39a5b6 in ?? () from /usr/lib/libQtGui.so.4
#15 0x00007f129f3ac5e8 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#16 0x00007f129f3d6224 in ?? () from /usr/lib/libQtGui.so.4
#17 0x00007f12a56bd882 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#18 0x00007f12a56bdabc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#19 0x00007f12a56c1ecb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#20 0x00007f12a59f9c2d in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/filou/source-to-compile/calligra/calligra-src/krita/main.cc:71
#21 0x00007f129dcbbeff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#22 0x0000000000400899 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2012-01-02 14:32:12 UTC
Hm... Apparently you've found a way to get Krita in a state where no layer is selected. If you can reproduce, can you check whether there are more steps needed? I haven't managed to reproduce yet.
Comment 2 Sven Langkamp 2012-01-02 16:17:43 UTC
Git commit 8272032dd88b4eb12b93f0ef2656b07e32d5b2b1 by Sven Langkamp.
Committed on 02/01/2012 at 17:15.
Pushed by langkamp into branch 'master'.

don't do anything if there is no current node

M  +4    -0    krita/plugins/tools/selectiontools/kis_tool_select_brush.cc
M  +4    -0    krita/plugins/tools/selectiontools/kis_tool_select_outline.cc
M  +4    -0    krita/plugins/tools/selectiontools/kis_tool_select_path.cc
M  +4    -0    krita/plugins/tools/selectiontools/kis_tool_select_similar.cc

http://commits.kde.org/calligra/8272032dd88b4eb12b93f0ef2656b07e32d5b2b1