Bug 278176 - crash when 2 mouse buttons pressed during very first shape
Summary: crash when 2 mouse buttons pressed during very first shape
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-21 03:25 UTC by Eddie
Modified: 2011-07-24 13:18 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 Eddie 2011-07-21 03:25:07 UTC
Application: krita (2.4 Alpha 3)
KDE Platform Version: 4.5.5 (KDE 4.5.5)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-30-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:

Drawing my fist shape on the canvas, then my finger hit the middle mouse button, and krita crashed.  only happens when I draw the very first shape.  If I don't hit the second mouse button it works fine.

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7fd2a7e9b700 (LWP 19849)):
#0  0x00007fd2b785b203 in poll () from /lib/libc.so.6
#1  0x00007fd2b4a53009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fd2b4a537b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007fd2a85d23c4 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007fd2b4a787e4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007fd2b18f6953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#6  0x00007fd2b91ed971 in start_thread () from /lib/libpthread.so.0
#7  0x00007fd2b786792d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fd290d2b700 (LWP 19856)):
#0  0x00007fd2b91f1a9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fd2b9478e3b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fd2b9474b0b in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#3  0x00007fd2b2420d9e in KisTileDataPooler::waitForWork (this=0x95642f0) at /home/canis/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007fd2b24215b8 in KisTileDataPooler::run (this=0x95642f0) at /home/canis/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007fd2b947827e in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007fd2b18f6953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#7  0x00007fd2b91ed971 in start_thread () from /lib/libpthread.so.0
#8  0x00007fd2b786792d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd291534700 (LWP 19857)):
#0  0x00007fd2b91f1a9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fd2b9478e3b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fd2b9474dab in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#3  0x00007fd2b243ea8a in KisTileDataSwapper::run (this=0x9564328) at /home/canis/calligra/calligra-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#4  0x00007fd2b947827e in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007fd2b18f6953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#6  0x00007fd2b91ed971 in start_thread () from /lib/libpthread.so.0
#7  0x00007fd2b786792d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd2bab46760 (LWP 19848)):
[KCrash Handler]
#6  0x00007fd2b0a93ea4 in KoShape::parent (this=0xa160c30) at /home/canis/calligra/calligra-src/libs/flake/KoShape.cpp:1042
#7  0x00007fd2b0a92b44 in KoSelection::selectedShapes (this=0xa1a2060, strip=KoFlake::TopLevelSelection) at /home/canis/calligra/calligra-src/libs/flake/KoSelection.cpp:277
#8  0x00007fd29a667e85 in DefaultTool::updateActions (this=0xa4eb430) at /home/canis/calligra/calligra-src/plugins/defaultTools/defaulttool/DefaultTool.cpp:1240
#9  0x00007fd29a669084 in DefaultTool::qt_metacall (this=0xa4eb430, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2231ea00) at /home/canis/calligra/calligra-build/plugins/defaultTools/DefaultTool.moc:109
#10 0x00007fd2b9583b27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#11 0x00007fd2b0aaa72e in KoShapeManager::qt_metacall (this=0xa1872f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /home/canis/calligra/calligra-build/libs/flake/KoShapeManager.moc:77
#12 0x00007fd2b9583b27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0x00007fd2b0a91c75 in KoSelection::qt_metacall (this=0xa1a2060, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xa14c080) at /home/canis/calligra/calligra-build/libs/flake/KoSelection.moc:82
#14 0x00007fd2b957dbde in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#15 0x00007fd2b845afdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#16 0x00007fd2b8460aed in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#17 0x00007fd2ba53f586 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#18 0x00007fd2b956bcdc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#19 0x00007fd2b956ec22 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#20 0x00007fd2b959b7b0 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#21 0x00007fd2b850ec2f in ?? () from /usr/lib/libQtGui.so.4
#22 0x00007fd2b956aa02 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0x00007fd2b956adec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0x00007fd2b956eebb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#25 0x00007fd2b2d483d5 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/canis/calligra/calligra-src/krita/main.cc:49
#26 0x0000000000407713 in _start ()

Possible duplicates by query: bug 211076.

Reported using DrKonqi
Comment 1 Sven Langkamp 2011-07-21 22:58:13 UTC
Can you reproduce the crash? How did you insert the shape? At what point did you click?
Comment 2 Eddie 2011-07-22 05:22:58 UTC
(In reply to comment #1)
> Can you reproduce the crash? How did you insert the shape? At what point did
> you click?

Yes I can reproduce.  Anytime after the initial click with the left mouse button still held down (and the shape not being completed), if I press the middle mouse button the program crashes.
Comment 3 Sven Langkamp 2011-07-22 23:38:06 UTC
How did you insert that first shape?
Comment 4 Eddie 2011-07-23 00:59:36 UTC
You're killing me slang. I'm not doing anything special. Just clicking on the rectangle, or the ellipse, or the text at any given time with the mouse. I then move over the canvas. Then I click, and drag. The shape is there with no problem, however if at any point I touch the middle mouse button before I release the left mouse button krita will crash. If I don't do the second button press in tandem with the first it goes off without a hitch.  My issue is that it is very easy for some people to hit that button during the process.
Comment 5 Sven Langkamp 2011-07-23 01:17:12 UTC
Ok, now I get it too. That way of inserting a shape is special, usually I just drag and drop the shape ;)
Comment 6 Eddie 2011-07-23 01:35:24 UTC
Yeah, me too, but I use so many apps. Sonme of thos require the MMB a lot. Confusion sometimes gets the better of me. It shouldn't crash, but you know that. Thanks for bearing with me.
Comment 7 Sven Langkamp 2011-07-24 13:18:02 UTC
Git commit 09aa3572d8762de21b4adf9e6c96b32f2c6eb385 by Sven Langkamp.
Committed on 24/07/2011 at 15:13.
Pushed by langkamp into branch 'master'.

redo before undo on canceling interaction strategy
BUG:278176

M  +1    -0    libs/flake/tools/KoInteractionStrategy.cpp

http://commits.kde.org/calligra/09aa3572d8762de21b4adf9e6c96b32f2c6eb385