Bug 291014

Summary: Crash when exiting
Product: [Applications] karbon Reporter: Kubuntiac <user581>
Component: generalAssignee: Jan Hambrecht <jaham>
Status: RESOLVED WORKSFORME    
Severity: crash CC: augusto.fornitani, cbo, ebreiss, fabiocmg, foss, j.mairboeck, marco.calignano, mexicano_neuber, serendippo
Priority: NOR    
Version First Reported In: 2.4-snapshots   
Target Milestone: ---   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description Kubuntiac 2012-01-09 02:49:26 UTC
Application: calligrawords (2.4 Beta 6)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.7.4
Operating System: Linux 3.1-CHAKRA x86_64
Distribution: "Chakra Linux"

-- Information about the crash:
I was trying to select a couple of paragraphs that flowed between two pages. Given that I had a header and a footer, these were inbetween, but (correctly) not seeming to be selected.

When I dragged up from page 2 to page 1, the selected area seemed wrong on the page 1 text (1 character on each line of page one in a vertical line rather than every piece of text from the bottom to the cursor).

When I moved the cursor back down (still dragging) the previously selected text (on page 2) dissappeared. I decided to close Words, and as I did, it crashed.

II'm using KDE 4.7.4, Chakra Packages, with QT 4.8 and Words rv2.3.85-474-g2215d10

The crash can be reproduced some of the time.

-- Backtrace:
Application: Words (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ff18d4df760 (LWP 14480))]

Thread 2 (Thread 0x7ff16ab90700 (LWP 14481)):
#0  0x00007ff18ab60123 in poll () from /lib/libc.so.6
#1  0x00007ff187ba6c14 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ff187ba714d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ff18c12af7e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007ff18c0ff4f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007ff18c0ff6f7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007ff18c01702f in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007ff18c0e252f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007ff18c019a85 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007ff18bd8fdf0 in start_thread () from /lib/libpthread.so.0
#10 0x00007ff18ab6839d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff18d4df760 (LWP 14480)):
[KCrash Handler]
#6  0x0000000000000011 in ?? ()
#7  0x00007ff17925109f in qDeleteAll<QList<QWidget*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/QtCore/qalgorithms.h:322
#8  qDeleteAll<QList<QWidget*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#9  ~KoToolBasePrivate (this=0x23e7560, __in_chrg=<optimized out>) at /home/user/Apps/calligra/calligra-src/libs/flake/KoToolBase_p.h:61
#10 KoToolBase::~KoToolBase (this=0x23e76e0, __in_chrg=<optimized out>) at /home/user/Apps/calligra/calligra-src/libs/flake/KoToolBase.cpp:52
#11 0x00007ff16e619b89 in KarbonGradientTool::~KarbonGradientTool (this=0x23e76e0, __in_chrg=<optimized out>) at /home/user/Apps/calligra/calligra-src/karbon/plugins/tools/KarbonGradientTool.cpp:80
#12 0x00007ff179264513 in KoToolManager::Private::detachCanvas (this=0x23d5b90, controller=0x23d5ca8) at /home/user/Apps/calligra/calligra-src/libs/flake/KoToolManager.cpp:460
#13 0x00007ff1792649ed in KoToolManager::removeCanvasController (this=0x23d5ad0, controller=0x23d5ca8) at /home/user/Apps/calligra/calligra-src/libs/flake/KoToolManager.cpp:830
#14 0x00007ff1712589fd in KWGui::~KWGui (this=0x21ed240, __in_chrg=<optimized out>) at /home/user/Apps/calligra/calligra-src/words/part/KWGui.cpp:107
#15 0x00007ff171258a39 in KWGui::~KWGui (this=0x21ed240, __in_chrg=<optimized out>) at /home/user/Apps/calligra/calligra-src/words/part/KWGui.cpp:108
#16 0x00007ff18c111dc5 in QObjectPrivate::deleteChildren() () from /usr/lib/libQtCore.so.4
#17 0x00007ff18b32b7ca in QWidget::~QWidget() () from /usr/lib/libQtGui.so.4
#18 0x00007ff179c0c85e in KoView::~KoView (this=0x21d13d0, __vtt_parm=0x7ff1714bd748, __in_chrg=<optimized out>) at /home/user/Apps/calligra/calligra-src/libs/main/KoView.cpp:193
#19 0x00007ff171259664 in KWView::~KWView (this=0x21d13d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/user/Apps/calligra/calligra-src/words/part/KWView.cpp:171
#20 0x00007ff1712596b9 in KWView::~KWView (this=0x21d13d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/user/Apps/calligra/calligra-src/words/part/KWView.cpp:174
#21 0x00007ff179beedcb in KoMainWindow::setRootDocument (this=0x191cac0, doc=0x0) at /home/user/Apps/calligra/calligra-src/libs/main/KoMainWindow.cpp:475
#22 0x00007ff179bef1d9 in closeEvent (e=0x7fff5daaf640, this=0x191cac0) at /home/user/Apps/calligra/calligra-src/libs/main/KoMainWindow.cpp:1050
#23 KoMainWindow::closeEvent (this=0x191cac0, e=0x7fff5daaf640) at /home/user/Apps/calligra/calligra-src/libs/main/KoMainWindow.cpp:1033
#24 0x00007ff18b33072e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x00007ff18b6ce81b in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007ff18cfb6b38 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#27 0x00007ff18b2dfd94 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#28 0x00007ff18b2e4c01 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#29 0x00007ff18ceb9e26 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#30 0x00007ff18c1002fc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#31 0x00007ff18b32b2dd in QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) () from /usr/lib/libQtGui.so.4
#32 0x00007ff179bef72b in KoMainWindow::qt_metacall (this=0x191cac0, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0x7fff5daaf7e0) at /home/user/Apps/calligra/calligra-build/libs/main/KoMainWindow.moc:152
#33 0x00007ff18c112f0a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#34 0x00007ff18b2d9782 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#35 0x00007ff18b2d996f in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#36 0x00007ff18b2d9adf in QAction::event(QEvent*) () from /usr/lib/libQtGui.so.4
#37 0x00007ff18cdd33ca in KAction::event(QEvent*) () from /usr/lib/libkdeui.so.5
#38 0x00007ff18b2dfd94 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#39 0x00007ff18b2e4c01 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#40 0x00007ff18ceb9e26 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#41 0x00007ff18c1002fc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#42 0x00007ff18b311c09 in ?? () from /usr/lib/libQtGui.so.4
#43 0x00007ff18b3130fd in ?? () from /usr/lib/libQtGui.so.4
#44 0x00007ff18b2e684f in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#45 0x00007ff18ceb9e26 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#46 0x00007ff18c1002fc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#47 0x00007ff18b37ebd9 in ?? () from /usr/lib/libQtGui.so.4
#48 0x00007ff18b37f01b in ?? () from /usr/lib/libQtGui.so.4
#49 0x00007ff18b35b654 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#50 0x00007ff18b383032 in ?? () from /usr/lib/libQtGui.so.4
#51 0x00007ff187ba66d3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#52 0x00007ff187ba6eb0 in ?? () from /usr/lib/libglib-2.0.so.0
#53 0x00007ff187ba714d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#54 0x00007ff18c12af16 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#55 0x00007ff18b382cae in ?? () from /usr/lib/libQtGui.so.4
#56 0x00007ff18c0ff4f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#57 0x00007ff18c0ff6f7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#58 0x00007ff18c1038eb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#59 0x00007ff179ebdfed in kdemain (argc=<optimized out>, argv=0x166f490) at /home/user/Apps/calligra/calligra-src/words/part/main.cpp:43
#60 0x0000000000408792 in _start ()

This bug may be a duplicate of or related to bug 282462.

Possible duplicates by query: bug 282462.

Reported using DrKonqi
Comment 1 Kubuntiac 2012-01-10 16:53:40 UTC
Just had this again (exact same bt) but was running in gdb. Konsole output gave me:

Starting program: /home/user/Apps/calligra/calligra-inst/bin/calligrawords 
[Thread debugging using libthread_db enabled]
(Soprano::Redland::BackendPlugin) creating model of type "hashes" with options "hash-type='memory',contexts='yes'" 
words(9065)/kdecore (KLibrary) kde4Factory: The library "/home/user/Apps/calligra/calligra-inst/lib/kde4/stateshape.so" does not offer a qt_plugin_instance function.
words(9065)/koffice (lib komain) KoOdfReadStore::loadAndParse: No store backend 
words(9065)/koffice (lib kopageapp) KoOdfLoadingContext::KoOdfLoadingContext: could not parse manifest document 
words(9065)/kotext TextShapeFactory::newDocumentResourceManager: No KUndo2Stack found in the document resource manager, creating a new one 
[New Thread 0x7fffd9f35700 (LWP 9075)]
[New Thread 0x7fffd9673700 (LWP 9076)]
[New Thread 0x7fffd8d71700 (LWP 9077)]
[Thread 0x7fffd9673700 (LWP 9076) exited]
[Thread 0x7fffd8d71700 (LWP 9077) exited]
[Thread 0x7fffd9f35700 (LWP 9075) exited]
words(9065): No language dictionaries for the language :  "en_US" 

words(9065): No language dictionaries for the language :  "en_US" 

words(9065): No language dictionaries for the language :  "en_US" 

words(9065): No language dictionaries for the language :  "en_US" 

words(9065): No language dictionaries for the language :  "en_US" 

words(9065): No language dictionaries for the language :  "en_US" 

words(9065)/kdeui (KAction) KActionCollection::setComponentData: this does not work on a KActionCollection containing actions! 
(Soprano::Redland::BackendPlugin) creating model of type "hashes" with options "hash-type='memory',contexts='yes'" 
(Soprano::Redland::BackendPlugin) creating model of type "hashes" with options "hash-type='memory',contexts='yes'" 
KoDocumentRdf::updateXmlIdReferences() m.size: 0 

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000011 in ?? ()
Comment 2 Camilla Boemann 2012-01-10 18:06:05 UTC
changing to karbon as it's the gradient tool
Comment 3 Camilla Boemann 2012-01-14 14:12:02 UTC
*** Bug 291515 has been marked as a duplicate of this bug. ***
Comment 4 Camilla Boemann 2012-01-31 10:10:23 UTC
*** Bug 292922 has been marked as a duplicate of this bug. ***
Comment 5 Joachim Mairböck 2012-10-15 19:19:41 UTC
Created attachment 74569 [details]
New crash information added by DrKonqi

karbon (2.5.2) on KDE Platform 4.9.2 using Qt 4.8.3

- What I was doing when the application crashed:
Karbon seems to be also affected from that, as well as Flow.

-- Backtrace (Reduced):
#8  0xb18279d6 in qDeleteAll<QList<QWidget*>::const_iterator> (end=..., begin=...) at /usr/include/QtCore/qalgorithms.h:322
#9  qDeleteAll<QList<QWidget*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#10 ~KoToolBasePrivate (this=0xac14010, __in_chrg=<optimized out>) at /usr/src/debug/calligra-2.5.2/libs/flake/KoToolBase_p.h:61
#11 KoToolBase::~KoToolBase (this=0xac14be8, __in_chrg=<optimized out>) at /usr/src/debug/calligra-2.5.2/libs/flake/KoToolBase.cpp:52
#12 0xb18a50a6 in KoInteractionTool::~KoInteractionTool (this=0xac14be8, __in_chrg=<optimized out>) at /usr/src/debug/calligra-2.5.2/libs/flake/tools/KoInteractionTool.cpp:33
Comment 6 Joachim Mairböck 2012-10-15 19:21:20 UTC
*** Bug 308454 has been marked as a duplicate of this bug. ***
Comment 7 Jekyll Wu 2013-03-04 03:16:38 UTC
*** Bug 310872 has been marked as a duplicate of this bug. ***
Comment 8 Jekyll Wu 2013-03-04 03:19:19 UTC
*** Bug 300963 has been marked as a duplicate of this bug. ***
Comment 9 Jekyll Wu 2013-03-04 05:28:54 UTC
*** Bug 306441 has been marked as a duplicate of this bug. ***
Comment 10 Jekyll Wu 2013-03-04 05:29:05 UTC
*** Bug 308914 has been marked as a duplicate of this bug. ***
Comment 11 Jekyll Wu 2013-03-04 05:29:19 UTC
*** Bug 314639 has been marked as a duplicate of this bug. ***
Comment 12 Augusto Fornitani 2013-04-28 21:28:41 UTC
Created attachment 79523 [details]
New crash information added by DrKonqi

calligrastage (2.6.3) on KDE Platform 4.10.2 using Qt 4.8.4

- What I was doing when the application crashed:
After changing some things and reverting all of them with Ctrl+Z, Stage, Words, etc always show Dr. Konqi's crash dialog. I installed debugging packages and it showed the backtrace as very useful (3 stars), so I'm submitting it, if it is of some help. Thanks in advance.

-- Backtrace (Reduced):
#7  0xb5b0d103 in qDeleteAll<QList<QWidget*>::const_iterator> (end=..., begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#8  qDeleteAll<QList<QWidget*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#9  ~KoToolBasePrivate (this=0xa0ed030, __in_chrg=<optimized out>) at /build/buildd/calligra-2.6.3/libs/flake/KoToolBase_p.h:61
#10 KoToolBase::~KoToolBase (this=0xa0eda88, __in_chrg=<optimized out>) at /build/buildd/calligra-2.6.3/libs/flake/KoToolBase.cpp:52
#11 0xb5b8ccc6 in KoInteractionTool::~KoInteractionTool (this=0xa0eda88, __in_chrg=<optimized out>) at /build/buildd/calligra-2.6.3/libs/flake/tools/KoInteractionTool.cpp:33
Comment 13 Jekyll Wu 2013-07-01 01:15:29 UTC
*** Bug 321344 has been marked as a duplicate of this bug. ***
Comment 14 Camilla Boemann 2015-01-31 00:39:08 UTC
*** Bug 340138 has been marked as a duplicate of this bug. ***
Comment 15 Justin Zobel 2020-12-17 05:38:37 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 16 Augusto Fornitani 2020-12-22 20:08:22 UTC
(In reply to Justin Zobel from comment #15)
> Thank you for the crash report.
> 
> As it has been a while since this was reported, can you please test and
> confirm if this issue is still occurring or if this bug report can be marked
> as resolved.
> 
> I have set the bug status to "needsinfo" pending your response, please
> change back to "reported" or "resolved/worksforme" when you respond, thank
> you.

I actually am a bit confused on what this ticket really means at this point. My original message mentioned Words (in a very convoluted speech), then I later mentioned Stage as well in this same ticket, and it currently refers to Karbon, it seems. Sorry if I'm not clear enough in the comments below.

Anyway, I just tried doing the text selection in Words, and many Ctrl+Z in Stage. No issues, apparently.
I've also registered a video screen capture of what I just tried. In it, I compare Calligra Word's text selection behavior to that of LibreOffice Writer — both work as intended, ignoring a few differences when dragging the selected text.
As attachments are limited to 4000 KB, this is a link to said screen-cast: https://www.flickr.com/photos/189151083@N06/shares/duwo0Z

Karbon is not shown in the video, but I tested its gradient tool, and had no crashes either.

Setting it to "resolved/worksforme" as suggested, then. 
Not sure on how to proceed with the other fields. I'm on Calligra 3.2.1 , Plasma 5.20.4, KDE Frameworks 5.76.0, Qt 5.15.2, kernel 5.9.11-3-MANJARO, Manjaro Linux x86_64.

Please let me know in case there's anything else needed on my end. Thanks!