Bug 318003 - Karbon crashed when undoing
Summary: Karbon crashed when undoing
Status: RESOLVED FIXED
Alias: None
Product: karbon
Classification: Applications
Component: general (show other bugs)
Version: 2.6.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Jan Hambrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-08 01:23 UTC by fsanchez
Modified: 2013-06-24 13:28 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 fsanchez 2013-04-08 01:23:17 UTC
Application: karbon (2.6.1)
KDE Platform Version: 4.10.2
Qt Version: 4.8.2
Operating System: Linux 3.2.0-39-generic x86_64
Distribution: Ubuntu 12.04.2 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I was editing an artistic text shape. After undoing two times consecutively (I mean, 2 contecutive "Ctrl+Z") Karbon crashed

-- Backtrace:
Application: Karbon (karbon), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f1921bcf7c0 (LWP 11225))]

Thread 3 (Thread 0x7f18fce85700 (LWP 11361)):
#0  0x00007f1921525303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f191a323036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f191a323164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19205f0926 in QEventDispatcherGlib::processEvents (this=0x7f18f805e210, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f19205bfe62 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f19205c00b7 in QEventLoop::exec (this=0x7f18fce84cd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f19204bf077 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f192059fb6f in QInotifyFileSystemWatcherEngine::run (this=0x2b97eb0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f19204c209b in QThreadPrivate::start (arg=0x2b97eb0) at thread/qthread_unix.cpp:307
#9  0x00007f1914861764 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#10 0x00007f191abe7e9a in start_thread (arg=0x7f18fce85700) at pthread_create.c:308
#11 0x00007f1921530cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f18f7fff700 (LWP 12879)):
#0  0x00007f1921525303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f191a323036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f191a323164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19205f0926 in QEventDispatcherGlib::processEvents (this=0x7f18f0131050, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f19205bfe62 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f19205c00b7 in QEventLoop::exec (this=0x7f18f7ffecd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f19204bf077 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f192059fb6f in QInotifyFileSystemWatcherEngine::run (this=0x27661f0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f19204c209b in QThreadPrivate::start (arg=0x27661f0) at thread/qthread_unix.cpp:307
#9  0x00007f1914861764 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#10 0x00007f191abe7e9a in start_thread (arg=0x7f18f7fff700) at pthread_create.c:308
#11 0x00007f1921530cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1921bcf7c0 (LWP 11225)):
[KCrash Handler]
#6  data (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qshareddata.h:145
#7  QFont::QFont (this=0x7fffb963ae30, font=...) at text/qfont.cpp:846
#8  0x00007f190494f50d in ArtisticTextRange::font (this=<optimized out>) at /build/buildd/calligra-2.6.1/plugins/artistictextshape/ArtisticTextRange.cpp:64
#9  0x00007f1904947824 in ArtisticTextShape::charExtentsAt (this=<optimized out>, charIndex=<optimized out>) at /build/buildd/calligra-2.6.1/plugins/artistictextshape/ArtisticTextShape.cpp:851
#10 0x00007f1904951bdb in ArtisticTextTool::createTextCursorShape (this=0x2f27290) at /build/buildd/calligra-2.6.1/plugins/artistictextshape/ArtisticTextTool.cpp:683
#11 0x00007f1904954736 in ArtisticTextTool::setTextCursorInternal (this=0x2f27290, textCursor=0) at /build/buildd/calligra-2.6.1/plugins/artistictextshape/ArtisticTextTool.cpp:673
#12 0x00007f1904954843 in setTextCursor (textCursor=<optimized out>, this=0x2f27290, textShape=<optimized out>) at /build/buildd/calligra-2.6.1/plugins/artistictextshape/ArtisticTextTool.cpp:640
#13 ArtisticTextTool::setTextCursor (this=0x2f27290, textShape=<optimized out>, textCursor=<optimized out>) at /build/buildd/calligra-2.6.1/plugins/artistictextshape/ArtisticTextTool.cpp:631
#14 0x00007f190495d729 in AddTextRangeCommand::undo (this=0x3b6dcd0) at /build/buildd/calligra-2.6.1/plugins/artistictextshape/AddTextRangeCommand.cpp:71
#15 0x00007f191ddff20e in undo (this=0x12ac7d0) at /build/buildd/calligra-2.6.1/libs/kundo2/kundo2stack.cpp:684
#16 KUndo2QStack::undo (this=0x12ac7d0) at /build/buildd/calligra-2.6.1/libs/kundo2/kundo2stack.cpp:673
#17 0x00007f19205d5781 in QMetaObject::activate (sender=0x15010a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffb963b0f0) at kernel/qobject.cpp:3547
#18 0x00007f191f93c072 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#19 0x00007f191f93c25f in QAction::activate (this=0x15010a0, event=<optimized out>) at kernel/qaction.cpp:1257
#20 0x00007f191f93c3cf in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#21 0x00007f191d8d8c5a in KAction::event (this=<optimized out>, event=0x7fffb963b720) at ../../kdeui/actions/kaction.cpp:131
#22 0x00007f191f9427b4 in notify_helper (e=0x7fffb963b720, receiver=0x15010a0, this=0x10b1120) at kernel/qapplication.cpp:4556
#23 QApplicationPrivate::notify_helper (this=0x10b1120, receiver=0x15010a0, e=0x7fffb963b720) at kernel/qapplication.cpp:4528
#24 0x00007f191f947583 in QApplication::notify (this=0x7fffb963cba0, receiver=0x15010a0, e=0x7fffb963b720) at kernel/qapplication.cpp:4417
#25 0x00007f1920e657ee in KoApplication::notify (this=<optimized out>, receiver=0x15010a0, event=0x7fffb963b720) at /build/buildd/calligra-2.6.1/libs/main/KoApplication.cpp:522
#26 0x00007f19205c132c in QCoreApplication::notifyInternal (this=0x7fffb963cba0, receiver=0x15010a0, event=0x7fffb963b720) at kernel/qcoreapplication.cpp:915
#27 0x00007f191f974729 in sendEvent (event=0x7fffb963b720, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#28 QShortcutMap::dispatchEvent (this=<optimized out>, e=0x7fffb963bcd0) at kernel/qshortcutmap.cpp:879
#29 0x00007f191f975bfa in QShortcutMap::tryShortcutEvent (this=0x10b1240, o=<optimized out>, e=0x7fffb963bcd0) at kernel/qshortcutmap.cpp:364
#30 0x00007f191f948e02 in QApplication::notify (this=0x7fffb963cba0, receiver=0x26211c0, e=0x7fffb963bcd0) at kernel/qapplication.cpp:3980
#31 0x00007f1920e657ee in KoApplication::notify (this=<optimized out>, receiver=0x26211c0, event=0x7fffb963bcd0) at /build/buildd/calligra-2.6.1/libs/main/KoApplication.cpp:522
#32 0x00007f19205c132c in QCoreApplication::notifyInternal (this=0x7fffb963cba0, receiver=0x26211c0, event=0x7fffb963bcd0) at kernel/qcoreapplication.cpp:915
#33 0x00007f191f9e6bc9 in QKeyMapper::sendKeyEvent (keyWidget=0x26211c0, grab=<optimized out>, type=QEvent::KeyPress, code=90, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=52, nativeVirtualKey=122, nativeModifiers=20) at kernel/qkeymapper_x11.cpp:1866
#34 0x00007f191f9e703b in QKeyMapperPrivate::translateKeyEvent (this=0x1102e20, keyWidget=0x26211c0, event=0x7fffb963c7c0, grab=false) at kernel/qkeymapper_x11.cpp:1836
#35 0x00007f191f9c1557 in QApplication::x11ProcessEvent (this=0x7fffb963cba0, event=0x7fffb963c7c0) at kernel/qapplication_x11.cpp:3625
#36 0x00007f191f9eb052 in x11EventSourceDispatch (s=0x10af3b0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#37 0x00007f191a322d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f191a3230a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f191a323164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f19205f08bf in QEventDispatcherGlib::processEvents (this=0xfafad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#41 0x00007f191f9eacde in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x00007f19205bfe62 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007f19205c00b7 in QEventLoop::exec (this=0x7fffb963cb60, flags=...) at kernel/qeventloop.cpp:204
#44 0x00007f19205c5407 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#45 0x00007f19217fcd95 in kdemain (argc=<optimized out>, argv=0x7fffb963cd38) at /build/buildd/calligra-2.6.1/karbon/main.cpp:50
#46 0x00007f192145e76d in __libc_start_main (main=0x400630 <main(int, char**)>, argc=2, ubp_av=0x7fffb963cd38, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffb963cd28) at libc-start.c:226
#47 0x0000000000400661 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2013-06-24 13:27:53 UTC
Git commit ef1f66e247ae60b7987a0fee7e7e750b41f3df31 by Boudewijn Rempt.
Committed on 24/06/2013 at 13:25.
Pushed by rempt into branch 'master'.

Check whether the index into m_ranges is valid
Related: bug 319693, bug 315963

M  +8    -4    plugins/artistictextshape/ArtisticTextShape.cpp

http://commits.kde.org/calligra/ef1f66e247ae60b7987a0fee7e7e750b41f3df31
Comment 2 Halla Rempt 2013-06-24 13:28:03 UTC
Git commit e1ca57c2b520e7fefefc3d1dcf854e3b5e2328b7 by Boudewijn Rempt.
Committed on 24/06/2013 at 13:25.
Pushed by rempt into branch 'calligra/2.7'.

Check whether the index into m_ranges is valid
Related: bug 319693, bug 315963

M  +8    -4    plugins/artistictextshape/ArtisticTextShape.cpp

http://commits.kde.org/calligra/e1ca57c2b520e7fefefc3d1dcf854e3b5e2328b7
Comment 3 Halla Rempt 2013-06-24 13:28:55 UTC
Git commit c1d31f07b5032e5d9d3171af1643d2328f67f265 by Boudewijn Rempt.
Committed on 24/06/2013 at 13:25.
Pushed by rempt into branch 'calligra/2.6'.

Check whether the index into m_ranges is valid
Related: bug 319693, bug 315963

M  +8    -4    plugins/artistictextshape/ArtisticTextShape.cpp

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