Bug 334832 - Stage crash while copy pasting
Summary: Stage crash while copy pasting
Status: CLOSED FIXED
Alias: None
Product: calligrastage
Classification: Applications
Component: general (show other bugs)
Version: 2.9 Pre-Alpha
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: T Zachmann
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-05-15 18:44 UTC by Alex Fiestas
Modified: 2014-09-22 11:02 UTC (History)
1 user (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 Alex Fiestas 2014-05-15 18:44:47 UTC
Application: calligrastage (2.9 Pre-Alpha)
KDE Platform Version: 4.13.60
Qt Version: 4.8.6
Operating System: Linux 3.14.3-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
Stge crashing when doing many paste of the same slide

The crash can be reproduced sometimes.

-- Backtrace:
Application: Stage (calligrastage), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb4462a7780 (LWP 5722))]

Thread 2 (Thread 0x7fb41d0b2700 (LWP 5743)):
#0  0x00007fb44269f81d in poll () from /usr/lib/libc.so.6
#1  0x00007fb43ecd0d64 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fb43ecd0e6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fb444b58cce in QEventDispatcherGlib::processEvents (this=0x7fb418061e50, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:427
#4  0x00007fb444b07bac in QEventLoop::processEvents (this=0x7fb41d0b1d08, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventloop.cpp:149
#5  0x00007fb444b07dad in QEventLoop::exec (this=0x7fb41d0b1d08, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventloop.cpp:204
#6  0x00007fb444981800 in QThread::exec (this=0x2374a50) at /home/afiestas/kde4/source/qt/src/corelib/thread/qthread.cpp:538
#7  0x00007fb444ad76c4 in QInotifyFileSystemWatcherEngine::run (this=0x2374a50) at /home/afiestas/kde4/source/qt/src/corelib/io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fb444984e6c in QThreadPrivate::start (arg=0x2374a50) at /home/afiestas/kde4/source/qt/src/corelib/thread/qthread_unix.cpp:349
#9  0x00007fb4446cb124 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007fb4426a84bd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fb4462a7780 (LWP 5722)):
[KCrash Handler]
#6  QTextDocumentPrivate::documentChange (this=0x0, from=2, length=0) at /home/afiestas/kde4/source/qt/src/gui/text/qtextdocument_p.cpp:1260
#7  0x00007fb443a2fa2e in QTextDocument::markContentsDirty (this=0x144ee70, from=2, length=0) at /home/afiestas/kde4/source/qt/src/gui/text/qtextdocument.cpp:621
#8  0x00007fb42d85e93c in KoVariable::setValue (this=this@entry=0x6206ad0, value=...) at /home/afiestas/kde4/source/calligra/libs/kotext/KoVariable.cpp:70
#9  0x00007fb41ee4e560 in PageVariable::propertyChanged (this=0x6206ad0, property=<optimized out>, value=...) at /home/afiestas/kde4/source/calligra/plugins/variables/PageVariable.cpp:75
#10 0x00007fb42d858202 in KoInlineTextObjectManager::setProperty (this=this@entry=0xbd6300, key=key@entry=KoInlineObject::PageCount, value=...) at /home/afiestas/kde4/source/calligra/libs/kotext/KoInlineTextObjectManager.cpp:143
#11 0x00007fb424373b5a in KoPADocument::updatePageCount (this=this@entry=0xad3e70) at /home/afiestas/kde4/source/calligra/libs/kopageapp/KoPADocument.cpp:852
#12 0x00007fb424373cb8 in KoPADocument::insertPage (this=0xad3e70, page=0x5f94330, after=0x18aa220) at /home/afiestas/kde4/source/calligra/libs/kopageapp/KoPADocument.cpp:698
#13 0x00007fb424394d25 in KoPAPageInsertCommand::redo (this=0x5ffdba0) at /home/afiestas/kde4/source/calligra/libs/kopageapp/commands/KoPAPageInsertCommand.cpp:53
#14 0x00007fb42bcafc36 in KUndo2Command::redo (this=0x60002a0) at /home/afiestas/kde4/source/calligra/libs/kundo2/kundo2stack.cpp:213
#15 0x00007fb42bcb07e4 in KUndo2QStack::push (this=0xad3680, cmd=0x60002a0) at /home/afiestas/kde4/source/calligra/libs/kundo2/kundo2stack.cpp:570
#16 0x00007fb42438b118 in KoPAPastePage::process (this=0x7fff0fb89150, body=..., odfStore=...) at /home/afiestas/kde4/source/calligra/libs/kopageapp/KoPAPastePage.cpp:151
#17 0x00007fb42bef45eb in KoOdfPaste::paste (this=this@entry=0x7fff0fb89150, documentType=documentType@entry=KoOdf::Presentation, bytes=...) at /home/afiestas/kde4/source/calligra/libs/odf/KoOdfPaste.cpp:83
#18 0x00007fb42bef46a0 in KoOdfPaste::paste (this=this@entry=0x7fff0fb89150, documentType=documentType@entry=KoOdf::Presentation, data=data@entry=0x631e960) at /home/afiestas/kde4/source/calligra/libs/odf/KoOdfPaste.cpp:45
#19 0x00007fb4243787fb in KoPAView::pagePaste (this=0x1ab4e30) at /home/afiestas/kde4/source/calligra/libs/kopageapp/KoPAView.cpp:572
#20 0x00007fb42439357d in KoPADocumentStructureDocker::editPaste (this=<optimized out>) at /home/afiestas/kde4/source/calligra/libs/kopageapp/KoPADocumentStructureDocker.cpp:693
#21 0x00007fb444b33637 in QMetaObject::activate (sender=0x13cb760, m=0x7fb44467bcf0 <QAction::staticMetaObject>, local_signal_index=1, argv=0x7fff0fb894c0) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qobject.cpp:3567
#22 0x00007fb44364560d in QAction::triggered (this=0x13cb760, _t1=false) at .moc/debug-shared/moc_qaction.cpp:277
#23 0x00007fb443645422 in QAction::activate (this=0x13cb760, event=QAction::Trigger) at /home/afiestas/kde4/source/qt/src/gui/kernel/qaction.cpp:1257
#24 0x00007fb443d3d9f7 in QMenuPrivate::activateCausedStack (this=0x656bc60, causedStack=..., action=0x13cb760, action_e=QAction::Trigger, self=true) at /home/afiestas/kde4/source/qt/src/gui/widgets/qmenu.cpp:1037
#25 0x00007fb443d3b8b6 in QMenuPrivate::activateAction (this=0x656bc60, action=0x13cb760, action_e=QAction::Trigger, self=true) at /home/afiestas/kde4/source/qt/src/gui/widgets/qmenu.cpp:1129
#26 0x00007fb443d42ce2 in QMenu::mouseReleaseEvent (this=0x7fff0fb8c540, e=0x7fff0fb8b010) at /home/afiestas/kde4/source/qt/src/gui/widgets/qmenu.cpp:2371
#27 0x00007fb4436dc06e in QWidget::event (this=0x7fff0fb8c540, event=0x7fff0fb8b010) at /home/afiestas/kde4/source/qt/src/gui/kernel/qwidget.cpp:8389
#28 0x00007fb443d4362a in QMenu::event (this=0x7fff0fb8c540, e=0x7fff0fb8b010) at /home/afiestas/kde4/source/qt/src/gui/widgets/qmenu.cpp:2480
#29 0x00007fb44365561f in QApplicationPrivate::notify_helper (this=0x8be330, receiver=0x7fff0fb8c540, e=0x7fff0fb8b010) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication.cpp:4565
#30 0x00007fb4436589e3 in QApplication::notify (this=0x7fff0fb8f0b0, receiver=0x7fff0fb8c540, e=0x7fff0fb8b010) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication.cpp:4108
#31 0x00007fb42e09df67 in KoApplication::notify (this=<optimized out>, receiver=0x7fff0fb8c540, event=0x7fff0fb8b010) at /home/afiestas/kde4/source/calligra/libs/main/KoApplication.cpp:604
#32 0x00007fb444b0c556 in QCoreApplication::notifyInternal (this=0x7fff0fb8f0b0, receiver=0x7fff0fb8c540, event=0x7fff0fb8b010) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qcoreapplication.cpp:953
#33 0x00007fb44366014f in QCoreApplication::sendSpontaneousEvent (receiver=0x7fff0fb8c540, event=0x7fff0fb8b010) at /home/afiestas/kde4/build/qt/src/gui/../../include/QtCore/../../../../source/qt/src/corelib/kernel/qcoreapplication.h:234
#34 0x00007fb4436566a1 in QApplicationPrivate::sendMouseEvent (receiver=0x7fff0fb8c540, event=0x7fff0fb8b010, alienWidget=0x0, nativeWidget=0x7fff0fb8c540, buttonDown=0x7fb4446c13d0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication.cpp:3171
#35 0x00007fb4437246e8 in QETWidget::translateMouseEvent (this=0x7fff0fb8c540, event=0x7fff0fb8c040) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication_x11.cpp:4453
#36 0x00007fb4437204b6 in QApplication::x11ProcessEvent (this=0x7fff0fb8f0b0, event=0x7fff0fb8c040) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication_x11.cpp:3520
#37 0x00007fb4437695d0 in x11EventSourceDispatch (s=0x8bf9e0, callback=0x0, user_data=0x0) at /home/afiestas/kde4/source/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#38 0x00007fb43ecd0b84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#39 0x00007fb43ecd0dc8 in ?? () from /usr/lib/libglib-2.0.so.0
#40 0x00007fb43ecd0e6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#41 0x00007fb444b58c82 in QEventDispatcherGlib::processEvents (this=0x7316d0, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:425
#42 0x00007fb443769094 in QGuiEventDispatcherGlib::processEvents (this=0x7316d0, flags=...) at /home/afiestas/kde4/source/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007fb444b07bac in QEventLoop::processEvents (this=0x7fff0fb8c488, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventloop.cpp:149
#44 0x00007fb444b07dad in QEventLoop::exec (this=0x7fff0fb8c488, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventloop.cpp:204
#45 0x00007fb443d4129c in QMenu::exec (this=0x7fff0fb8c540, p=..., action=0x0) at /home/afiestas/kde4/source/qt/src/gui/widgets/qmenu.cpp:2124
#46 0x00007fb424393254 in KoPADocumentStructureDocker::contextMenuEvent (this=0x1b577a0, event=0x7fff0fb8d570) at /home/afiestas/kde4/source/calligra/libs/kopageapp/KoPADocumentStructureDocker.cpp:637
#47 0x00007fb4436dc9fd in QWidget::event (this=0x1b577a0, event=0x7fff0fb8d570) at /home/afiestas/kde4/source/qt/src/gui/kernel/qwidget.cpp:8567
#48 0x00007fb443cb9076 in QDockWidget::event (this=0x1b577a0, event=0x7fff0fb8d570) at /home/afiestas/kde4/source/qt/src/gui/widgets/qdockwidget.cpp:1492
#49 0x00007fb44365561f in QApplicationPrivate::notify_helper (this=0x8be330, receiver=0x1b577a0, e=0x7fff0fb8d570) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication.cpp:4565
#50 0x00007fb4436594d2 in QApplication::notify (this=0x7fff0fb8f0b0, receiver=0x193a6f0, e=0x7fff0fb8dad0) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication.cpp:4187
#51 0x00007fb42e09df67 in KoApplication::notify (this=<optimized out>, receiver=0x193a6f0, event=0x7fff0fb8dad0) at /home/afiestas/kde4/source/calligra/libs/main/KoApplication.cpp:604
#52 0x00007fb444b0c556 in QCoreApplication::notifyInternal (this=0x7fff0fb8f0b0, receiver=0x193a6f0, event=0x7fff0fb8dad0) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qcoreapplication.cpp:953
#53 0x00007fb44366014f in QCoreApplication::sendSpontaneousEvent (receiver=0x193a6f0, event=0x7fff0fb8dad0) at /home/afiestas/kde4/build/qt/src/gui/../../include/QtCore/../../../../source/qt/src/corelib/kernel/qcoreapplication.h:234
#54 0x00007fb443724b25 in QETWidget::translateMouseEvent (this=0x1a30cf0, event=0x7fff0fb8ebf0) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication_x11.cpp:4524
#55 0x00007fb4437204b6 in QApplication::x11ProcessEvent (this=0x7fff0fb8f0b0, event=0x7fff0fb8ebf0) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication_x11.cpp:3520
#56 0x00007fb4437695d0 in x11EventSourceDispatch (s=0x8bf9e0, callback=0x0, user_data=0x0) at /home/afiestas/kde4/source/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#57 0x00007fb43ecd0b84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#58 0x00007fb43ecd0dc8 in ?? () from /usr/lib/libglib-2.0.so.0
#59 0x00007fb43ecd0e6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#60 0x00007fb444b58c82 in QEventDispatcherGlib::processEvents (this=0x7316d0, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:425
#61 0x00007fb443769094 in QGuiEventDispatcherGlib::processEvents (this=0x7316d0, flags=...) at /home/afiestas/kde4/source/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#62 0x00007fb444b07bac in QEventLoop::processEvents (this=0x7fff0fb8f040, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventloop.cpp:149
#63 0x00007fb444b07dad in QEventLoop::exec (this=0x7fff0fb8f040, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventloop.cpp:204
#64 0x00007fb444b0cd2f in QCoreApplication::exec () at /home/afiestas/kde4/source/qt/src/corelib/kernel/qcoreapplication.cpp:1225
#65 0x00007fb443657676 in QApplication::exec () at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication.cpp:3823
#66 0x00007fb42e39ae96 in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/afiestas/kde4/source/calligra/stage/app/main.cpp:44
#67 0x0000000000407d4d in launch (argc=argc@entry=1, _name=_name@entry=0x7ca018 "/opt/kde4/bin/calligrastage", args=<optimized out>, args@entry=0x7ca034 "\001", cwd=cwd@entry=0x0, envc=envc@entry=1, envs=<optimized out>, envs@entry=0x7ca03c "DISPLAY=:0", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x7ca04f "MiNiBaD;1400178202;92790;541_TIME13164971") at /home/afiestas/kde4/source/kdelibs/kinit/kinit.cpp:726
#68 0x00000000004089f9 in handle_launcher_request (sock=8, who=who@entry=0x40b57e "launcher") at /home/afiestas/kde4/source/kdelibs/kinit/kinit.cpp:1218
#69 0x0000000000408e34 in handle_requests (waitForPid=waitForPid@entry=0) at /home/afiestas/kde4/source/kdelibs/kinit/kinit.cpp:1411
#70 0x0000000000404d13 in main (argc=4, argv=<optimized out>, envp=0x7fff0fb8f790) at /home/afiestas/kde4/source/kdelibs/kinit/kinit.cpp:1899

Reported using DrKonqi
Comment 1 T Zachmann 2014-07-05 16:13:21 UTC
The crash can be reproduced  by 

Add text with page count variable
Copy the page
Paste the page
Undo
Paste again
Undo
-> Crash
Comment 2 T Zachmann 2014-07-05 19:56:29 UTC
The bug is fixed with commit 3adac25bc0efcf19bfa965f8be6abde66d1c598c.

Thanks for reporting.