Bug 327110

Summary: Crash when trying to insert notes
Product: [Applications] calligrastage Reporter: Martin Bednar <martin+kde>
Component: generalAssignee: T Zachmann <t.zachmann>
Status: RESOLVED FIXED    
Severity: crash CC: kdeuser56
Priority: NOR Keywords: drkonqi
Version: 2.7.4   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Martin Bednar 2013-11-03 23:53:14 UTC
Application: calligrastage (2.7.4)
KDE Platform Version: 4.11.2 (Compiled from sources)
Qt Version: 4.8.5
Operating System: Linux 3.11.6-gentoo x86_64
Distribution (Platform): Gentoo Packages

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

Doing my presentation, I decided to insert some notes. I went to the notes tab, doubleclicked as the text instructed me to, and saw this crash. Happens every time. The presentation I'm working on has initially been created in libreoffice impress.

I'm not really comfortable sharing it, so if it is needed, I'll try creating another crashing presentation.

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7f7a372c2700 (LWP 5613)):
#0  0x00007fff577ff60c in ?? ()
#1  0x00007fff577ff8ac in clock_gettime ()
#2  0x00007f7a519f681d in *__GI_clock_gettime (clock_id=1, tp=0x7f7a372c1b50) at ../sysdeps/unix/clock_gettime.c:100
#3  0x00007f7a55f8fc07 in do_gettime (frac=0x7f7a372c1b50, sec=0x7f7a372c1b48) at tools/qelapsedtimer_unix.cpp:127
#4  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#5  0x00007f7a56068295 in updateCurrentTime (this=0x7f7a30002860) at kernel/qeventdispatcher_unix.cpp:354
#6  QTimerInfoList::timerWait (this=0x7f7a30002860, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#7  0x00007f7a56066a4c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f7a372c1bec) at kernel/qeventdispatcher_glib.cpp:136
#8  0x00007f7a56066af5 in timerSourcePrepare (source=source@entry=0x7f7a30002800, timeout=timeout@entry=0x7f7a372c1bec) at kernel/qeventdispatcher_glib.cpp:169
#9  0x00007f7a5171ab1f in g_main_context_prepare (context=context@entry=0x7f7a300009a0, priority=priority@entry=0x7f7a372c1c38) at gmain.c:2836
#10 0x00007f7a5171b20b in g_main_context_iterate (context=context@entry=0x7f7a300009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3126
#11 0x00007f7a5171b404 in g_main_context_iteration (context=0x7f7a300009a0, may_block=1) at gmain.c:3207
#12 0x00007f7a56066c16 in QEventDispatcherGlib::processEvents (this=0x7f7a300008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#13 0x00007f7a56038cff in QEventLoop::processEvents (this=this@entry=0x7f7a372c1d70, flags=...) at kernel/qeventloop.cpp:149
#14 0x00007f7a56038ff5 in QEventLoop::exec (this=0x7f7a372c1d70, flags=...) at kernel/qeventloop.cpp:204
#15 0x00007f7a55f39b1f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#16 0x00007f7a5601a693 in QInotifyFileSystemWatcherEngine::run (this=0x1eb7700) at io/qfilesystemwatcher_inotify.cpp:256
#17 0x00007f7a55f3c15f in QThreadPrivate::start (arg=0x1eb7700) at thread/qthread_unix.cpp:338
#18 0x00007f7a55ca5d96 in start_thread (arg=0x7f7a372c2700) at pthread_create.c:305
#19 0x00007f7a54a1246d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f7a2e006700 (LWP 5617)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1  0x00007f7a55f3c614 in wait (time=30000, this=0x427a9e0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x4268588, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f7a55f2fd95 in QThreadPoolThread::run (this=0x4277890) at concurrent/qthreadpool.cpp:141
#4  0x00007f7a55f3c15f in QThreadPrivate::start (arg=0x4277890) at thread/qthread_unix.cpp:338
#5  0x00007f7a55ca5d96 in start_thread (arg=0x7f7a2e006700) at pthread_create.c:305
#6  0x00007f7a54a1246d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f7a2d004700 (LWP 5618)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1  0x00007f7a55f3c614 in wait (time=30000, this=0x427a9e0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x4268588, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f7a55f2fd95 in QThreadPoolThread::run (this=0x426a5c0) at concurrent/qthreadpool.cpp:141
#4  0x00007f7a55f3c15f in QThreadPrivate::start (arg=0x426a5c0) at thread/qthread_unix.cpp:338
#5  0x00007f7a55ca5d96 in start_thread (arg=0x7f7a2d004700) at pthread_create.c:305
#6  0x00007f7a54a1246d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f7a573eb7c0 (LWP 5612)):
[KCrash Handler]
#6  KoPADocument::removeShape (this=0x1a5eae0, shape=0x2711900) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/kopageapp/KoPADocument.cpp:564
#7  0x00007f7a416aea37 in KoShapeDeleteCommand::redo (this=0x64d2060) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/flake/commands/KoShapeDeleteCommand.cpp:85
#8  0x00007f7a40edc4a0 in KUndo2Command::redo (this=0x651ecf0) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/kundo2/kundo2stack.cpp:213
#9  0x00007f7a40eddbed in KUndo2QStack::push (this=0x1a5e4d0, cmd=0x651ecf0) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/kundo2/kundo2stack.cpp:570
#10 0x00007f7a3c09492b in KPrPlaceholderTool::activate (this=0x29cee60, toolActivation=<optimized out>, shapes=...) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/stage/part/tools/KPrPlaceholderTool.cpp:97
#11 0x00007f7a4166e53d in KoToolManager::Private::postSwitchTool (this=this@entry=0x29a21b0, temporary=temporary@entry=false) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/flake/KoToolManager.cpp:332
#12 0x00007f7a4166fae2 in switchTool (temporary=false, tool=0x29cee60, this=0x29a21b0) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/flake/KoToolManager.cpp:262
#13 KoToolManager::Private::switchTool (this=0x29a21b0, tool=0x29cee60, temporary=false) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/flake/KoToolManager.cpp:249
#14 0x00007f7a416721df in KoToolManager::Private::switchTool (this=0x29a21b0, id=..., temporary=false) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/flake/KoToolManager.cpp:286
#15 0x00007f7a416777e8 in KoToolProxy::mouseReleaseEvent (this=<optimized out>, event=<optimized out>, point=...) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/flake/KoToolProxy.cpp:327
#16 0x00007f7a3bdbbab8 in KoPACanvas::mouseReleaseEvent (this=0x299b1b0, event=0x7fff577c2680) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/kopageapp/KoPACanvas.cpp:135
#17 0x00007f7a5520623e in QWidget::event (this=0x299b1b0, event=0x7fff577c2680) at kernel/qwidget.cpp:8376
#18 0x00007f7a551b6dac in QApplicationPrivate::notify_helper (this=this@entry=0x1898a40, receiver=receiver@entry=0x299b1b0, e=e@entry=0x7fff577c2680) at kernel/qapplication.cpp:4562
#19 0x00007f7a551bd41d in QApplication::notify (this=<optimized out>, receiver=0x299b1b0, e=0x7fff577c2680) at kernel/qapplication.cpp:4105
#20 0x00007f7a426da598 in KoApplication::notify (this=<optimized out>, receiver=0x299b1b0, event=0x7fff577c2680) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/libs/main/KoApplication.cpp:556
#21 0x00007f7a5603a09d in QCoreApplication::notifyInternal (this=0x7fff577c2df0, receiver=0x299b1b0, event=0x7fff577c2680) at kernel/qcoreapplication.cpp:949
#22 0x00007f7a551bcbd3 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#23 QApplicationPrivate::sendMouseEvent (receiver=0x299b1b0, event=0x7fff577c2680, alienWidget=0x299b1b0, nativeWidget=0x299ce90, buttonDown=0x7f7a55c9a378 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#24 0x00007f7a5522e600 in QETWidget::translateMouseEvent (this=this@entry=0x299ce90, event=event@entry=0x7fff577c29b0) at kernel/qapplication_x11.cpp:4517
#25 0x00007f7a5522c99c in QApplication::x11ProcessEvent (this=0x7fff577c2df0, event=0x7fff577c29b0) at kernel/qapplication_x11.cpp:3640
#26 0x00007f7a55253052 in x11EventSourceDispatch (s=s@entry=0x189b2b0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#27 0x00007f7a5171b015 in g_main_dispatch (context=0x1899d40) at gmain.c:2539
#28 g_main_context_dispatch (context=context@entry=0x1899d40) at gmain.c:3075
#29 0x00007f7a5171b348 in g_main_context_iterate (context=context@entry=0x1899d40, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3146
#30 0x00007f7a5171b404 in g_main_context_iteration (context=0x1899d40, may_block=1) at gmain.c:3207
#31 0x00007f7a56066bf5 in QEventDispatcherGlib::processEvents (this=0x172e7d0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#32 0x00007f7a552530f6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f7a56038cff in QEventLoop::processEvents (this=this@entry=0x7fff577c2d60, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f7a56038ff5 in QEventLoop::exec (this=0x7fff577c2d60, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007f7a5603e10b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#36 0x00007f7a429d0255 in kdemain (argc=<optimized out>, argv=0x172e7b0) at /home/build/portage/app-office/calligra-2.7.4/work/calligra-2.7.4/stage/app/main.cpp:44
#37 0x000000000040892a in launch (argc=argc@entry=1, _name=_name@entry=0x17a1b68 "/usr/bin/calligrastage", args=args@entry=0x17a1b7f "\001", cwd=cwd@entry=0x0, envc=envc@entry=1, envs=<optimized out>, envs@entry=0x17a1b87 "DISPLAY=:0", reset_env=false, tty=tty@entry=0x0, avoid_loops=false, startup_id_str=startup_id_str@entry=0x17a1b9a "Ged;1383522313;136549;10903_TIME32040377") at /home/build/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kinit/kinit.cpp:726
#38 0x00000000004097bb in handle_launcher_request (sock=7, who=<optimized out>) at /home/build/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kinit/kinit.cpp:1218
#39 0x0000000000409e03 in handle_requests (waitForPid=waitForPid@entry=0) at /home/build/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kinit/kinit.cpp:1411
#40 0x0000000000405c3f in main (argc=2, argv=0x7fff00000001, envp=0x7fff577c3950) at /home/build/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kinit/kinit.cpp:1899

Reported using DrKonqi
Comment 1 Fredy Yanardi 2014-01-20 14:26:21 UTC
Git commit d7d0b9ce2802b1d341fcab60fbcd274b732a408a by Fredy Yanardi.
Committed on 20/01/2014 at 14:16.
Pushed by fyanardi into branch 'calligra/2.8'.

Fixed crash when trying to insert text on notes placeholder created by LibreOffice. This should also fix bug that shape added / removed to notes view is not repainted immediately.
REVIEW: 115115

M  +0    -2    flow/part/FlowPart.cpp
M  +14   -0    libs/kopageapp/KoPAView.cpp
M  +7    -0    libs/kopageapp/KoPAView.h
M  +0    -2    stage/part/KPrPart.cpp

http://commits.kde.org/calligra/d7d0b9ce2802b1d341fcab60fbcd274b732a408a
Comment 2 Fredy Yanardi 2014-01-20 14:43:13 UTC
Git commit f58ad2af4c7773ea527723111fe42c253cdccb64 by Fredy Yanardi.
Committed on 20/01/2014 at 14:16.
Pushed by fyanardi into branch 'master'.

Fixed crash when trying to insert text on notes placeholder created by LibreOffice. This should also fix bug that shape added / removed to notes view is not repainted
immediately.
Related: bug 115115, bug 7, bug 0, bug 9, bug 2802, bug 1, bug 341, bug 60, bug 274, bug 732, bug 408

M  +0    -2    flow/part/FlowPart.cpp
M  +14   -0    libs/kopageapp/KoPAView.cpp
M  +7    -0    libs/kopageapp/KoPAView.h
M  +0    -2    stage/part/KPrPart.cpp

http://commits.kde.org/calligra/f58ad2af4c7773ea527723111fe42c253cdccb64
Comment 3 T Zachmann 2014-01-27 04:14:45 UTC
*** Bug 329335 has been marked as a duplicate of this bug. ***