[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: crash in SpellCheck plugin
From: Thorsten Zachmann <t.zachmann () zagge ! de>
Date: 2008-09-18 17:38:25
Message-ID: 200809181938.25671.t.zachmann () zagge ! de
[Download RAW message or body]
Hello,
I get the following crash in kpresenter.
To reproduce:
o create an empty document
o add a text shape
o activate the text tool
o undo the change (so that the text shape is removed again)
o add a new text shape
o activate the text tool
-> crash
here is the backtrace:
Application: KPresenter (kpresenter), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb5961720 (LWP 17486)]
[KCrash handler]
#6 0x00000001 in ?? ()
#7 0xb1f09264 in SpellCheck::setDocument (this=0x8d12c90, document=0x8d9f970)
at /home/tz/develop/kde/svn/koffice/plugins/textediting/spellcheck/SpellCheck.cpp:246
#8 0xb1f09aee in SpellCheck::checkSection (this=0x8d12c90,
document=0x8d9f970, startPosition=0, endPosition=0)
at /home/tz/develop/kde/svn/koffice/plugins/textediting/spellcheck/SpellCheck.cpp:77
#9 0xb3a2fe80 in TextTool::setShapeData (this=0x895f4b0, data=0x8f1a088)
at /home/tz/develop/kde/svn/koffice/plugins/textshape/TextTool.cpp:621
#10 0xb3a30286 in TextTool::activate (this=0x895f4b0, temporary=false)
at /home/tz/develop/kde/svn/koffice/plugins/textshape/TextTool.cpp:1088
#11 0xb400f8f0 in KoToolManager::switchTool (this=0x88ea180, tool=0x895f4b0,
temporary=false)
at /home/tz/develop/kde/svn/koffice/libs/flake/KoToolManager.cpp:364
#12 0xb400fb9c in KoToolManager::switchTool (this=0x88ea180, id=@0xbfecb7f0,
temporary=false)
at /home/tz/develop/kde/svn/koffice/libs/flake/KoToolManager.cpp:303
#13 0xb4010108 in KoToolManager::switchToolRequested (this=0x88ea180,
id=@0xbfecb7f0)
at /home/tz/develop/kde/svn/koffice/libs/flake/KoToolManager.cpp:553
#14 0xb4010c21 in KoToolManager::qt_metacall (this=0x88ea180,
_c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfecb77c)
at /home/ko2/koffice-build/libs/flake/KoToolManager.moc:100
#15 0xb6de6863 in QMetaObject::activate (sender=0x88f01e0,
from_signal_index=4, to_signal_index=4, argv=0xbfecb77c)
at kernel/qobject.cpp:3007
#16 0xb6de6ce5 in QMetaObject::activate (sender=0x88f01e0, m=0xb40768b8,
local_signal_index=0, argv=0xbfecb77c) at kernel/qobject.cpp:3080
#17 0xb3ffb146 in KoTool::activateTool (this=0x88f01e0, _t1=@0xbfecb7f0)
at /home/ko2/koffice-build/libs/flake/KoTool.moc:105
#18 0xb42803cb in KPrPlaceholderTool::activate (this=0x88f01e0,
temporary=false)
at /home/tz/develop/kde/svn/koffice/kpresenter/part/tools/KPrPlaceholderTool.cpp:107
#19 0xb400f8f0 in KoToolManager::switchTool (this=0x88ea180, tool=0x88f01e0,
temporary=false)
at /home/tz/develop/kde/svn/koffice/libs/flake/KoToolManager.cpp:364
#20 0xb400fb9c in KoToolManager::switchTool (this=0x88ea180, id=@0xbfecb9c8,
temporary=false)
at /home/tz/develop/kde/svn/koffice/libs/flake/KoToolManager.cpp:303
#21 0xb4010108 in KoToolManager::switchToolRequested (this=0x88ea180,
id=@0xbfecb9c8)
at /home/tz/develop/kde/svn/koffice/libs/flake/KoToolManager.cpp:553
#22 0xb3ba76fa in DefaultTool::mouseDoubleClickEvent (this=0x8a95ed0,
event=0xbfecba18)
at /home/tz/develop/kde/svn/koffice/plugins/defaultTools/defaulttool/DefaultTool.cpp:643
#23 0xb40180ea in KoToolProxy::mouseDoubleClickEvent (this=0x88ea080,
event=0xbfecc0e8, point=@0xbfecba98)
at /home/tz/develop/kde/svn/koffice/libs/flake/KoToolProxy.cpp:210
.....
The problem is that the plugin tries to disconnect from a QTextDocument that
is no longer exists. I tried to fix it by call setDocument(0) but that is not
possible as this a plugin and I don't think it would be a good idea to
dynamic_cast to it in the textshape plugin. So if anybody has an idea on how
to fix that please let me know.
Should I report bugs here or is there already a place to report where such
bugs can be reported on b.k.o? If so should I report it there?
Thorsten
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic