Bug 157684 - [steps] kolourpaint crashes when undoing after typing text and selecting something [assert, kpDocumentEnvironment::switchToCompatibleTool, kpDocument::setSelection, kpToolSelectionDestroyCommand::unexecute]
Summary: [steps] kolourpaint crashes when undoing after typing text and selecting some...
Status: RESOLVED DUPLICATE of bug 211481
Alias: None
Product: kolourpaint
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kolourpaint-support
URL:
Keywords:
: 197638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-11 20:50 UTC by Anthony Bryant
Modified: 2010-07-02 02:25 UTC (History)
2 users (show)

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 Anthony Bryant 2008-02-11 20:50:38 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.1 
OS:                Linux

steps to reproduce:
1. drag a text box and type something in it
2. make a selection rectangle (either drag it or use select all)
3. press undo


Application: KolourPaint BETA (kolourpaint4), signal SIGABRT
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1245899072 (LWP 7963)]
[KCrash handler]
#6  0xffffe410 in __kernel_vsyscall ()
#7  0xb650e875 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6510201 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7e3f01d in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb7e3f0a1 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb7e3f20d in qt_assert () from /usr/lib/libQtCore.so.4
#12 0x0808841a in kpDocumentEnvironment::switchToCompatibleTool (
    this=0x81b8318, selection=@0x8515618, isTextChanged=0xbffbf5b6)
    at /home/anthony/kde/src/trunk/KDE/kdegraphics/kolourpaint/environments/document/kpDocumentEnvironment.cpp:127
#13 0x0808715d in kpDocument::setSelection (this=0x81b8450, 
    selection=@0x8515618)
    at /home/anthony/kde/src/trunk/KDE/kdegraphics/kolourpaint/document/kpDocument_Selection.cpp:111
#14 0x0806ea51 in kpToolSelectionDestroyCommand::unexecute (this=0x8744f98)
    at /home/anthony/kde/src/trunk/KDE/kdegraphics/kolourpaint/commands/tools/selection/kpToolSelectionDestroyCommand.cpp:166
#15 0x08068521 in kpCommandHistoryBase::undoInternal (this=0x820d680)
    at /home/anthony/kde/src/trunk/KDE/kdegraphics/kolourpaint/commands/kpCommandHistoryBase.cpp:325
#16 0x08069061 in kpCommandHistoryBase::undo (this=0x820d680)
    at /home/anthony/kde/src/trunk/KDE/kdegraphics/kolourpaint/commands/kpCommandHistoryBase.cpp:390
#17 0x0806b378 in kpCommandHistory::undo (this=0x820d680)
    at /home/anthony/kde/src/trunk/KDE/kdegraphics/kolourpaint/commands/kpCommandHistory.cpp:104
#18 0x0806863b in kpCommandHistoryBase::qt_metacall (this=0x820d680, 
    _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbffbfd0c)
    at /home/anthony/kde/build/trunk/KDE/kdegraphics/kolourpaint/kpCommandHistoryBase.moc:79
#19 0x0806b214 in kpCommandHistory::qt_metacall (this=0x820d680, 
    _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbffbfd0c)
    at /home/anthony/kde/build/trunk/KDE/kdegraphics/kolourpaint/kpCommandHistory.moc:60
#20 0xb7f0ec04 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#21 0xb7f0ee00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0xb687c878 in QAction::triggered () from /usr/lib/libQtGui.so.4
#23 0xb687e5e6 in QAction::activate () from /usr/lib/libQtGui.so.4
#24 0xb687e797 in QAction::event () from /usr/lib/libQtGui.so.4
#25 0xb68dfa8c in QWidgetAction::event () from /usr/lib/libQtGui.so.4
#26 0xb688444d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#27 0xb688474e in QApplication::notify () from /usr/lib/libQtGui.so.4
#28 0xb7a9fc3b in KApplication::notify (this=0xbffc0fa0, receiver=0x820d7a0, 
    event=0xbffc01c4)
    at /home/anthony/kde/src/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#29 0xb7efd456 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#30 0xb688117f in ?? () from /usr/lib/libQtGui.so.4
#31 0xbffc0fa0 in ?? ()
#32 0x0820d7a0 in ?? ()
#33 0xbffc01c4 in ?? ()
#34 0x00000000 in ?? ()
#0  0xffffe410 in __kernel_vsyscall ()
Comment 1 Eduard Sukharev 2008-05-17 18:58:46 UTC
I can reproduce the same 3 steps and the same result on KDE4.0.73 on WinXP, though i can't get all that crash messages - kolourpaint doesn't print anything into console.
Comment 2 Dario Andres 2008-08-16 20:00:39 UTC
Version 4.1.00 (KDE 4.1.0) Using KDE 4.1.1 (KDE 4.1.0 (4.1 >= 20080722)) (KDEmod) in ArchLinux i686:
I can confirm this bug
Comment 3 Dario Andres 2008-08-19 18:34:58 UTC
I can also reproduce this bug using:
Version 4.1.62 (KDE 4.1.62 (KDE 4.2 >= 20080814))
kdelibs4.2 svn rev.849324
kdebase4.2 svn rev.849337
ArchLinux 2.6.25-zen2-20080814 i686 

The assert is:
ASSERT: "!document ()->selection ()" in file /home/kde-devel/kde/src/KDE/kdegraphics/kolourpaint/environments/document/kpDocumentEnvironment.cpp, line 127
Comment 4 Dario Andres 2008-11-29 20:05:18 UTC
I can still reproduce this bug using KDE4.1.3 and KDE4.2svn (kdegraphics rev. 890639)
Comment 5 Dario Andres 2008-12-18 23:48:26 UTC
Confirming here using:

Qt: 4.4.3
KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 898705 / kdebase svn rev. 898705
kdegraphics svn rev.898725
on ArchLinux x86_64 - 2.6.27.8
Comment 6 Urs Wolfer 2009-07-12 13:10:13 UTC
*** Bug 197638 has been marked as a duplicate of this bug. ***
Comment 7 Dmitry Kholodilov 2009-11-24 22:35:29 UTC
I confirm it with KDE 4.3.1 (openSUSE 11.2 x86_64).
Comment 8 Dario Andres 2009-12-14 20:26:18 UTC
Still valid with KDE SC 4.4 trunk: kdegraphics svn rev. 1062428
Comment 9 Christoph Feck 2010-07-02 02:25:43 UTC

*** This bug has been marked as a duplicate of bug 211481 ***