Bug 341639 - crash on close (using Colorful Document template)
Summary: crash on close (using Colorful Document template)
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
: 340503 342284 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-07 18:00 UTC by kris
Modified: 2015-02-16 13:55 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.30 KB, text/plain)
2014-12-17 15:18 UTC, Sudhir Khanger
Details
New crash information added by DrKonqi (3.28 KB, text/plain)
2014-12-18 05:39 UTC, Sudhir Khanger
Details
New crash information added by DrKonqi (4.35 KB, text/plain)
2015-01-21 16:30 UTC, Syam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kris 2014-12-07 18:00:27 UTC
Application: Calligra Words (calligrawords), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[KCrash Handler]
#5  0x00007fa18ec67c45 in ?? () from /usr/lib/libkotext.so.13
#6  0x00007fa1a4edffff in QHashData::detach_helper2(void (*)(QHashData::Node*, void*), void (*)(QHashData::Node*), int, int) () from /usr/lib/libQtCore.so.4
#7  0x00007fa18ec682ca in ?? () from /usr/lib/libkotext.so.13
#8  0x00007fa18ec68327 in ?? () from /usr/lib/libkotext.so.13
#9  0x00007fa18ec66d35 in KoInlineTextObjectManager::removeInlineObject(KoInlineObject*) () from /usr/lib/libkotext.so.13
#10 0x00007fa18ec6bed7 in KoInlineObject::~KoInlineObject() () from /usr/lib/libkotext.so.13
#11 0x00007fa1837a0723 in ?? () from /usr/lib/kde4/calligra_textinlineobject_variables.so
#12 0x00007fa1a4fde4f8 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#13 0x00007fa1a41740bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#14 0x00007fa1a417a5fd in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#15 0x00007fa18f4c77f7 in KoApplication::notify(QObject*, QEvent*) () from /usr/lib/libkomain.so.13
#16 0x00007fa1a4fc64fd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#17 0x00007fa1a4fc961d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#18 0x00007fa1a4ff3783 in ?? () from /usr/lib/libQtCore.so.4
#19 0x00007fa1a0af9624 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0x00007fa1a0af9868 in ?? () from /usr/lib/libglib-2.0.so.0
#21 0x00007fa1a0af990c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#22 0x00007fa1a4ff3045 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0x00007fa1a4210716 in ?? () from /usr/lib/libQtGui.so.4
#24 0x00007fa1a4fc50bf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#25 0x00007fa1a4fc53b5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0x00007fa1a4fca639 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#27 0x00007fa18f7bce15 in kdemain () from /usr/lib/libkdeinit4_calligrawords.so
#28 0x0000000000407e41 in _start ()

Reproducible: Didn't try
Comment 1 Mikhail Ivchenko 2014-12-09 14:08:52 UTC
Hello. Please, install debug symbols and try to reproduce this bug again.
Possible duplicate: https://bugs.kde.org/show_bug.cgi?id=340503 (part of backtrace looks similar)
Comment 2 Sudhir Khanger 2014-12-17 15:18:34 UTC
Created attachment 90014 [details]
New crash information added by DrKonqi

calligrawords (2.8.7) on KDE Platform 4.14.3 using Qt 4.8.6

- What I was doing when the application crashed:

Calligra Word and Calligra Presentation crashes when you close them.

-- Backtrace (Reduced):
#5  0x00007fdbf51898c5 in QHash<int, KoInlineObject*>::duplicateNode(QHashData::Node*, void*) () from /lib64/libkotext.so.13
#6  0x00007fdc16422fe7 in QHashData::detach_helper2(void (*)(QHashData::Node*, void*), void (*)(QHashData::Node*), int, int) () from /lib64/libQtCore.so.4
[...]
#8  0x00007fdbf5189fa7 in QHash<int, KoInlineObject*>::remove(int const&) () from /lib64/libkotext.so.13
#9  0x00007fdbf5188906 in KoInlineTextObjectManager::removeInlineObject(KoInlineObject*) () from /lib64/libkotext.so.13
#10 0x00007fdbf518dcb7 in KoInlineObject::~KoInlineObject() () from /lib64/libkotext.so.13
Comment 3 Camilla Boemann 2014-12-17 16:21:47 UTC
Can any of you please provide a document which crashes like this
Comment 4 Sudhir Khanger 2014-12-17 16:26:32 UTC
It doesn't need a specific document to crash. Open a template and then close by clicking on close button and it would crash.
Comment 5 Camilla Boemann 2014-12-17 16:33:39 UTC
can't reproduce it then
Comment 6 Sudhir Khanger 2014-12-18 05:39:54 UTC
Created attachment 90030 [details]
New crash information added by DrKonqi

calligrawords (2.8.6) on KDE Platform 4.14.3 using Qt 4.8.6

- What I was doing when the application crashed:

1. Open Calligra Word
2. Choose Colorful Document
3. Close via close button

-- Backtrace (Reduced):
#5  0x00007f16a22fc8c5 in QHash<int, KoInlineObject*>::duplicateNode(QHashData::Node*, void*) () at /lib64/libkotext.so.13
#6  0x00007f16c3595fe7 in QHashData::detach_helper2(void (*)(QHashData::Node*, void*), void (*)(QHashData::Node*), int, int) () at /lib64/libQtCore.so.4
[...]
#8  0x00007f16a22fcfa7 in QHash<int, KoInlineObject*>::remove(int const&) () at /lib64/libkotext.so.13
#9  0x00007f16a22fb906 in KoInlineTextObjectManager::removeInlineObject(KoInlineObject*) () at /lib64/libkotext.so.13
#10 0x00007f16a2300cb7 in KoInlineObject::~KoInlineObject() () at /lib64/libkotext.so.13
Comment 7 Sudhir Khanger 2014-12-18 05:41:48 UTC
I am not a Calligra user but encountered this problem during Fedora 21 QA testing.

One way to try to reproduce this problem would be to try KDE ISO for Fedora 21 in VirtualBox.
Comment 8 Camilla Boemann 2014-12-18 05:47:43 UTC
Thanks for the suggestion, but I really need to be able to reproduce it on my development platform in order to diagnose and fix it. The backtrace is somewhat useful and i certainly don't deny that there is a bug but I need a way to reproduce it while working on it
Comment 9 Rex Dieter 2014-12-18 13:14:53 UTC
Application: calligrawords (2.8.7)
KDE Platform Version: 4.14.3
Qt Version: 4.8.6
Operating System: Linux 3.17.4-200.fc20.i686+PAE i686
Distribution: "Fedora release 20 (Heisenbug)"

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

1. Launch calligra word
2. double-click "Colorful Document" Template
3. quit calligra word

The crash can be reproduced every time.

-- Backtrace:
Application: Calligra Words (calligrawords), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[KCrash Handler]
#7  0xaed8cfd9 in isEmpty (this=0x9673190) at /usr/include/QtCore/qhash.h:297
#8  QHash<int, KoInlineObject*>::remove (this=0x9673190, akey=@0xbfd38024: 1) at /usr/include/QtCore/qhash.h:786
#9  0xaed8b576 in KoInlineTextObjectManager::removeInlineObject (this=0x9673188, object=object@entry=0x969b3f8) at /usr/src/debug/calligra-2.8.7/libs/kotext/KoInlineTextObjectManager.cpp:129
#10 0xaed90e16 in KoInlineObject::~KoInlineObject (this=0x969b3f8, __in_chrg=<optimized out>) at /usr/src/debug/calligra-2.8.7/libs/kotext/KoInlineObject.cpp:59
#11 0xaed91797 in KoVariable::~KoVariable (this=0x969b3f8, __in_chrg=<optimized out>) at /usr/src/debug/calligra-2.8.7/libs/kotext/KoVariable.cpp:58
#12 0xac02c245 in ~InfoVariable (this=0x969b3f8, __in_chrg=<optimized out>) at /usr/src/debug/calligra-2.8.7/plugins/variables/InfoVariable.h:28
#13 InfoVariable::~InfoVariable (this=0x969b3f8, __in_chrg=<optimized out>) at /usr/src/debug/calligra-2.8.7/plugins/variables/InfoVariable.h:28
#14 0xb6d10d94 in qDeleteInEventHandler (o=o@entry=0x969b3f8) at kernel/qobject.cpp:4308
#15 0xb6d17330 in QObject::event (this=0x969b3f8, e=0x994be20) at kernel/qobject.cpp:1203
#16 0xb619d424 in QApplicationPrivate::notify_helper (this=0x94adf50, receiver=0x969b3f8, e=0x994be20) at kernel/qapplication.cpp:4565
#17 0xb61a4359 in QApplication::notify (this=this@entry=0xbfd3870c, receiver=receiver@entry=0x969b3f8, e=e@entry=0x994be20) at kernel/qapplication.cpp:4351
#18 0xaef811d9 in KoApplication::notify (this=0xbfd3870c, receiver=0x969b3f8, event=0x994be20) at /usr/src/debug/calligra-2.8.7/libs/main/KoApplication.cpp:617
#19 0xb6cfcc96 in QCoreApplication::notifyInternal (this=0xbfd3870c, receiver=receiver@entry=0x969b3f8, event=event@entry=0x994be20) at kernel/qcoreapplication.cpp:953
#20 0xb6d001da in sendEvent (event=0x994be20, receiver=0x969b3f8) at kernel/qcoreapplication.h:231
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x940cf98) at kernel/qcoreapplication.cpp:1577
#22 0xb6d006dd in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#23 0xb6d2f17a in sendPostedEvents () at kernel/qcoreapplication.h:236
#24 postEventSourceDispatch (s=s@entry=0x94ae078) at kernel/qeventdispatcher_glib.cpp:300
#25 0xb56e5556 in g_main_dispatch (context=0x940e3a8) at gmain.c:3066
#26 g_main_context_dispatch (context=context@entry=0x940e3a8) at gmain.c:3642
#27 0xb56e5920 in g_main_context_iterate (context=context@entry=0x940e3a8, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713
#28 0xb56e59e9 in g_main_context_iteration (context=0x940e3a8, may_block=1) at gmain.c:3774
#29 0xb6d2e814 in QEventDispatcherGlib::processEvents (this=this@entry=0x946b2c8, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#30 0xb6253afc in QGuiEventDispatcherGlib::processEvents (this=0x946b2c8, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#31 0xb6cfb530 in QEventLoop::processEvents (this=this@entry=0xbfd38694, flags=...) at kernel/qeventloop.cpp:149
#32 0xb6cfb8c1 in QEventLoop::exec (this=this@entry=0xbfd38694, flags=...) at kernel/qeventloop.cpp:204
#33 0xb6d016eb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#34 0xb619b745 in QApplication::exec () at kernel/qapplication.cpp:3823
#35 0xb3462f35 in kdemain (argc=1, argv=0x940daf8) at /usr/src/debug/calligra-2.8.7/words/app/main.cpp:44
#36 0x0804f64a in launch (argc=<optimized out>, argc@entry=1, _name=_name@entry=0x94605a4 "/usr/bin/calligrawords", args=<optimized out>, args@entry=0x94605bb "\001", cwd=cwd@entry=0x0, envc=envc@entry=1, envs=<optimized out>, envs@entry=0x94605bf "DISPLAY=:0", reset_env=false, tty=tty@entry=0x0, avoid_loops=false, startup_id_str=startup_id_str@entry=0x94605ce "math-171.unl.edu;1418908067;833569;12281_TIME1463767746") at /usr/src/debug/kdelibs-4.14.3/kinit/kinit.cpp:726
#37 0x080505f3 in handle_launcher_request (sock=sock@entry=8, who=<optimized out>) at /usr/src/debug/kdelibs-4.14.3/kinit/kinit.cpp:1218
#38 0x08050c7c in handle_requests (waitForPid=waitForPid@entry=0) at /usr/src/debug/kdelibs-4.14.3/kinit/kinit.cpp:1411
#39 0x0804c1fe in main (argc=4, argv=0xbfd38f04, envp=0xbfd38f18) at /usr/src/debug/kdelibs-4.14.3/kinit/kinit.cpp:1899

Report to https://bugs.kde.org/
Comment 10 Christoph Feck 2014-12-20 01:18:45 UTC
*** Bug 340503 has been marked as a duplicate of this bug. ***
Comment 11 Christoph Feck 2015-01-14 20:03:50 UTC
*** Bug 342284 has been marked as a duplicate of this bug. ***
Comment 12 Syam 2015-01-21 16:30:05 UTC
Created attachment 90564 [details]
New crash information added by DrKonqi

calligraauthor (2.8.7) on KDE Platform 4.14.3 using Qt 4.8.6

1. Created a new document with the 'colourful document' template.
2. Closed the window.

-- Backtrace (Reduced):
#5  0x00007ff6067068c5 in QHash<int, KoInlineObject*>::duplicateNode(QHashData::Node*, void*) () from /lib64/libkotext.so.13
#6  0x00007ff628caefe7 in QHashData::detach_helper2(void (*)(QHashData::Node*, void*), void (*)(QHashData::Node*), int, int) () from /lib64/libQtCore.so.4
[...]
#8  0x00007ff606706fa7 in QHash<int, KoInlineObject*>::remove(int const&) () from /lib64/libkotext.so.13
#9  0x00007ff606705906 in KoInlineTextObjectManager::removeInlineObject(KoInlineObject*) () from /lib64/libkotext.so.13
#10 0x00007ff60670acb7 in KoInlineObject::~KoInlineObject() () from /lib64/libkotext.so.13
Comment 13 Inge Wallin 2015-01-21 17:50:11 UTC
I tested both 2.8 and 2.9.  2.8 crashes for me after doing what is described above, 2.9 does not.
Comment 14 Inge Wallin 2015-01-21 18:28:15 UTC
Fixed in 2.8 by cherry-picking one commit to 2.9 by Zagge.  The fix will be in the next 2.8 release.
Comment 15 Christoph Feck 2015-02-15 11:53:44 UTC
Inge, I did not find the commit for this fix. Could you please check if this also affects bug 340200?
Comment 16 Inge Wallin 2015-02-16 13:55:53 UTC
This is commit 388219fca6990bb d258ff9a5c3f2cf2b2cadb8cc4, the 3rd one from the top in the 2.8 branch (the first one if you don't count l10n patches).

I rebuilt calligra 2.8 with the fix and yes, it seems like bug 340200 is also fixed.