Summary: | Calligra Words crash when exiting | ||
---|---|---|---|
Product: | [Applications] calligrawords | Reporter: | Thomas Fischer <fischer> |
Component: | general | Assignee: | Calligra Words Bugs <calligra-words-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | jcmoutinho60, lassi.ta.nieminen, sebsauer, skaumo |
Priority: | NOR | ||
Version: | 2.4-snapshots | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi |
Description
Thomas Fischer
2011-09-21 09:01:21 UTC
I am not 100% sure there (cause I was never able to reproduce that problem) but iirc we fixed that crash already a while ago. But then the bug-report says beta1 which was just released what means the problem would still be present... I've never been able to produce that crash either :( *** Bug 239452 has been marked as a duplicate of this bug. *** Doc you build calligra yourself? it may be you have not deleted a former installation (In reply to comment #4) > Doc you build calligra yourself? > > it may be you have not deleted a former installation I am using official Gentoo ebuilds which should basically guarantee to remove old files when updating a package. Configuration files are excluded, of course. I am wondering if the problem may be related to that I am still using KDE 4.6.5? It is the latest stable KDE release for Gentoo. I'll try to compile Calligra with debug flags enabled to see if I get more information... I'm using 4.6.5 too so that is not it It looks like it a QObject being deleted twice but since i don't get the crash there i no way for me to fix it actually the delete m_toolSelection; in the text tool destructor looks wrong as it's a qobject I'm can't see if a deleteLater or just not deleting is the right fix (In reply to comment #8) > actually the > delete m_toolSelection; > > in the text tool destructor looks wrong as it's a qobject > > I'm can't see if a deleteLater or just not deleting is the right fix I can compile and test the code on my machine. Can you please send me a patch or some instructions what to change? Even if Calligra does not crash in your case, using a tool like Valgrind should find the illegal delete? diff --git a/plugins/textshape/TextTool.cpp b/plugins/textshape/TextTool.cpp index 44cfa87..e699319 100644 --- a/plugins/textshape/TextTool.cpp +++ b/plugins/textshape/TextTool.cpp @@ -89,7 +89,8 @@ class TextToolSelection : public KoToolSelection public: TextToolSelection(QWeakPointer<KoTextEditor> editor) - : m_editor(editor) + : KoToolSelection(0) + , m_editor(editor) { } ah no that can't be it it crashes on deleting widgets, so it must be the option widgets then Git commit 0aa702d9466251405162f55eea86c128bbf474f8 by C. Boemann. Committed on 26/10/2011 at 09:43. Pushed by boemann into branch 'master'. Don't delete widgets that have this as parent - Qt will take care of that Deleting them just leads to crashes BUG:282462 M +0 -1 plugins/textshape/dialogs/SimpleCharacterWidget.cpp M +0 -1 plugins/textshape/dialogs/SimpleParagraphWidget.cpp http://commits.kde.org/calligra/0aa702d9466251405162f55eea86c128bbf474f8 Created attachment 71455 [details]
New crash information added by DrKonqi
calligrawords (2.4.0) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1
The bug occurred when closing a document template Calligra.
-- Backtrace (Reduced):
#7 0x00007f3c2a1fadef in qDeleteAll<QList<QWidget*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/qt4/QtCore/qalgorithms.h:322
#8 qDeleteAll<QList<QWidget*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#9 ~KoToolBasePrivate (this=0x122a410, __in_chrg=<optimized out>) at /build/buildd/calligra-2.4.0/libs/flake/KoToolBase_p.h:61
#10 KoToolBase::~KoToolBase (this=0x1293850, __in_chrg=<optimized out>) at /build/buildd/calligra-2.4.0/libs/flake/KoToolBase.cpp:52
#11 0x00007f3c0ff13689 in KarbonGradientTool::~KarbonGradientTool (this=0x1293850, __in_chrg=<optimized out>) at /build/buildd/calligra-2.4.0/karbon/plugins/tools/KarbonGradientTool.cpp:80
Created attachment 76858 [details]
New crash information added by DrKonqi
calligrawords (2.4.0) on KDE Platform 4.8.5 (4.8.5) using Qt 4.8.1
- What I was doing when the application crashed:
exiting then confirmed I wish to save the current document
-- Backtrace (Reduced):
#7 0x00007f23a8fd7def 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=0x2960190, __in_chrg=<optimized out>) at /build/buildd/calligra-2.4.0/libs/flake/KoToolBase_p.h:61
#10 KoToolBase::~KoToolBase (this=0x2901550, __in_chrg=<optimized out>) at /build/buildd/calligra-2.4.0/libs/flake/KoToolBase.cpp:52
#11 0x00007f238eee16a9 in KarbonGradientTool::~KarbonGradientTool (this=0x2901550, __in_chrg=<optimized out>) at /build/buildd/calligra-2.4.0/karbon/plugins/tools/KarbonGradientTool.cpp:80
|