Bug 66705 - Kword crashes when ctrl - enter (new page) is pressed and the first word is misspelt and spellchecker is on
Summary: Kword crashes when ctrl - enter (new page) is pressed and the first word is m...
Status: RESOLVED DUPLICATE of bug 65933
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-27 21:03 UTC by Charles Fryett
Modified: 2004-02-16 17:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Fryett 2003-10-27 21:03:01 UTC
Version:           1.2.92 (using KDE KDE 3.1.92)
Installed from:    Gentoo Packages

Kword crashes when ctrl - enter (new page) is pressed and the first word is misspelt and spellchecker is on.
The bug does not happen if the spellcheck is off when ctrl - enter is pressed and then turned back on.
Comment 1 Stefan Hetzl 2003-11-07 23:35:18 UTC
I can reproduce this crash with current CVS HEAD by doing the following:
1) start kword (A4 page)
2) enter a misspelled word like xcxxxzyzx
3) Hit Pos1 to get to the beginning of the word
4) Hit Ctrl+Enter
[kword crashes]

Here is the backtrace:
[New Thread 16384 (LWP 26226)]
0x414f2387 in waitpid () from /lib/libpthread.so.0
#0  0x414f2387 in waitpid () from /lib/libpthread.so.0
#1  0x40a438b2 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#2  0x414f11ec in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x40dbe314 in QShared::ref() (this=0xbfffd8c0) at ../include/qshared.h:49
#5  0x40e3d492 in QFont (this=0xbfffd8c0, font=@0x838e0fc)
    at kernel/qfont.cpp:639
#6  0x41de5105 in KoTextFormat::screenPointSize(KoZoomHandler const*) const ()
   from /opt/kde-cvs/lib/libkotext.so.2
#7  0x41de5402 in KoTextFormat::screenFont(KoZoomHandler const*) const ()
   from /opt/kde-cvs/lib/libkotext.so.2
#8  0x41dfd821 in KoTextParag::drawParagStringInternal(QPainter&, QString const&, int, int, int, int, int, int, int, bool, KoTextFormat*, QMemArray<int> const&, QMemArray<int> const&, QColorGroup const&, bool, int, KoZoomHandler*, bool) ()
   from /opt/kde-cvs/lib/libkotext.so.2
#9  0x41dfd520 in KoTextParag::drawParagString(QPainter&, QString const&, int, int, int, int, int, int, int, bool, KoTextFormat*, QMemArray<int> const&, QMemArray<int> const&, QColorGroup const&, bool, int) ()
   from /opt/kde-cvs/lib/libkotext.so.2
#10 0x41dfc86d in KoTextParag::paintLines(QPainter&, QColorGroup const&, KoTextCursor*, bool, int, int, int, int) () from /opt/kde-cvs/lib/libkotext.so.2
#11 0x41dfbbed in KoTextParag::paint(QPainter&, QColorGroup const&, KoTextCursor*, bool, int, int, int, int) () from /opt/kde-cvs/lib/libkotext.so.2
#12 0x41e0cde5 in KoTextDocument::drawParagWYSIWYG(QPainter*, KoTextParag*, int, int, int, int, QPixmap*&, QColorGroup const&, KoZoomHandler*, bool, KoTextCursor*, bool, unsigned) () from /opt/kde-cvs/lib/libkotext.so.2
#13 0x41e0bc13 in KoTextDocument::drawWYSIWYG(QPainter*, int, int, int, int, QColorGroup const&, KoZoomHandler*, bool, bool, KoTextCursor*, bool, unsigned) ()
   from /opt/kde-cvs/lib/libkotext.so.2
#14 0x41bdc073 in KWTextFrameSet::drawFrameContents(KWFrame*, QPainter*, QRect const&, QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*) ()
   from /opt/kde-cvs/lib/kde3/libkwordpart.so
#15 0x41b5b34f in KWFrameSet::drawFrame(KWFrame*, QPainter*, QRect const&, QRect const&, QPoint const&, KWFrame*, QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*, bool) () from /opt/kde-cvs/lib/kde3/libkwordpart.so
#16 0x41bdbd95 in KWTextFrameSet::drawFrame(KWFrame*, QPainter*, QRect const&, QRect const&, QPoint const&, KWFrame*, QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*, bool) () from /opt/kde-cvs/lib/kde3/libkwordpart.so
#17 0x41b5ae10 in KWFrameSet::drawFrameAndBorders(KWFrame*, QPainter*, QRect const&, QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*, KWFrame*, bool) () from /opt/kde-cvs/lib/kde3/libkwordpart.so
#18 0x41b5a05d in KWFrameSet::drawContents(QPainter*, QRect const&, QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*) ()
   from /opt/kde-cvs/lib/kde3/libkwordpart.so
#19 0x41bdb6da in KWTextFrameSet::drawContents(QPainter*, QRect const&, QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*) ()
   from /opt/kde-cvs/lib/kde3/libkwordpart.so
#20 0x41b61e01 in KWFrameSetEdit::drawContents(QPainter*, QRect const&, QColorGroup const&, bool, bool, KWViewMode*) ()
   from /opt/kde-cvs/lib/kde3/libkwordpart.so
#21 0x41b40014 in KWCanvas::drawFrameSet(KWFrameSet*, QPainter*, QRect const&, bool, bool, KWViewMode*) () from /opt/kde-cvs/lib/kde3/libkwordpart.so
#22 0x41b3f2cf in KWCanvas::repaintChanged(KWFrameSet*, bool) ()
   from /opt/kde-cvs/lib/kde3/libkwordpart.so
#23 0x41b88fa7 in KWDocument::slotRepaintChanged(KWFrameSet*) ()
   from /opt/kde-cvs/lib/kde3/libkwordpart.so
#24 0x41c6d5c4 in KWBgSpellCheck::slotRepaintChanged(KoTextObject*) ()
   from /opt/kde-cvs/lib/kde3/libkwordpart.so
#25 0x41eb10ca in KoBgSpellCheck::nextParagraphNeedingCheck() ()
   from /opt/kde-cvs/lib/libkotext.so.2
#26 0x41eb1181 in KoBgSpellCheck::spellCheckNextParagraph() ()
   from /opt/kde-cvs/lib/libkotext.so.2
#27 0x41eb024c in KoBgSpellCheck::qt_invoke(int, QUObject*) ()
   from /opt/kde-cvs/lib/libkotext.so.2
#28 0x40e8937f in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x81225e0, clist=0x8122508, o=0xbfffed20) at kernel/qobject.cpp:2333
#29 0x40e8921e in QObject::activate_signal(int) (this=0x81225e0, signal=2)
    at kernel/qobject.cpp:2302
#30 0x411c7f7a in QTimer::timeout() (this=0x81225e0)
    at .moc/debug-shared-mt/moc_qtimer.cpp:82
#31 0x40eadb5b in QTimer::event(QEvent*) (this=0x81225e0, e=0xbfffef90)
    at kernel/qtimer.cpp:219
#32 0x40e2655d in QApplication::internalNotify(QObject*, QEvent*) (
    this=0xbffff1b0, receiver=0x81225e0, e=0xbfffef90)
    at kernel/qapplication.cpp:2582
#33 0x40e25a1a in QApplication::notify(QObject*, QEvent*) (this=0xbffff1b0, 
    receiver=0x81225e0, e=0xbfffef90) at kernel/qapplication.cpp:2305
#34 0x4099a323 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#35 0x40dbd427 in QApplication::sendEvent(QObject*, QEvent*) (
    receiver=0x81225e0, event=0xbfffef90) at kernel/qapplication.h:490
#36 0x40e14490 in QEventLoop::activateTimers() (this=0x80b4ac8)
    at kernel/qeventloop_unix.cpp:557
#37 0x40dcef42 in QEventLoop::processEvents(unsigned) (this=0x80b4ac8, flags=4)
    at kernel/qeventloop_x11.cpp:346
#38 0x40e3bf26 in QEventLoop::enterLoop() (this=0x80b4ac8)
    at kernel/qeventloop.cpp:198
#39 0x40e3be42 in QEventLoop::exec() (this=0x80b4ac8)
    at kernel/qeventloop.cpp:145
#40 0x40e266dd in QApplication::exec() (this=0xbffff1b0)
    at kernel/qapplication.cpp:2705
#41 0x4001710f in main () from /opt/kde-cvs/lib/kword.so
#42 0x41636857 in __libc_start_main () from /lib/libc.so.6

The debugging output:
kio (KSycoca): Trying to open ksycoca from /var/tmp/kdecache-stefan/ksycoca
kio (KTrader): KServiceTypeProfile::offers( KOfficePart, )
kio (KTrader): Returning 12 offers
koffice (lib kospell): KOSpellConfig::interpret []
koffice (lib kospell): KOSpellConfig::interpret []
koffice (lib kospell): KOSpellConfig::getAvailDictsAspell /usr/lib/aspell /usr/lib
koffice (lib kospell): KOSpellConfig/usr/lib/aspell
koffice (lib kospell):
koffice (lib kospell): entryList().count()=11
koffice (lib kospell): KOSpellConfig::interpret [de-only.rws]
koffice (lib kospell): KOSpellConfig::interpret [de]
koffice (lib kospell): KOSpellConfig::interpret [de_CH-only.rws]
koffice (lib kospell): KOSpellConfig::interpret [de_CH]
koffice (lib kospell): KOSpellConfig::interpret [de_DE-only.rws]
koffice (lib kospell): KOSpellConfig::interpret [de_DE]
koffice (lib kospell): KOSpellConfig::interpret [deutsch.alias]
koffice (lib kospell): KOSpellConfig::interpret [german.alias]
koffice (lib kospell): KOSpellConfig::interpret [swiss.alias]
koffice (lib kospell): KOSpellConfig::interpret []
koffice (lib kospell): KOSpellConfig::interpret []
koffice (lib kospell): KOSpellConfig::interpret []
kio (KDirLister): +KDirLister
kio (KDirListerCache): +KDirListerCache
kio (KDirWatch): Can't use FAM (fam daemon not running?)
kio (KDirWatch): Available methods: Stat
kio (KTrader): KServiceTypeProfile::offers( ThumbCreator, )
kio (KTrader): Returning 12 offers
kio (KTrader): KServiceTypeProfile::offers( ThumbCreator, )
kio (KTrader): Returning 12 offers
kio (KTrader): KServiceTypeProfile::offers( KOfficePart, )
kio (KTrader): Returning 12 offers
koffice (filter manager): KoFilterEntry::query(  )
kio (KTrader): KServiceTypeProfile::offers( KOfficeFilter, )
kio (KTrader): Returning 62 offers
koffice (filter manager): Checking whether KOffice XSLT Export Filter is available.
koffice (filter manager): Not cached, checking...
koffice (filter manager): Filter: KOffice XSLT Export Filter not available.
kio (KTrader): KServiceTypeProfile::offers( ThumbCreator, )
kio (KTrader): Returning 12 offers
kio (KTrader): KServiceTypeProfile::offers( ThumbCreator, )
kio (KTrader): Returning 12 offers
kio (KTrader): KServiceTypeProfile::offers( ThumbCreator, )
kio (KTrader): Returning 12 offers
kio (KTrader): KServiceTypeProfile::offers( ThumbCreator, )
kio (KTrader): Returning 12 offers
kio (KIOJob): stat file:/tmp/test.kwd
kio (KIOJob): stat file:/home/stefan/uni/graphstego/submission/graphstego.pdf
kio (KDirLister): -KDirLister
kio (KDirLister): [virtual void KDirLister::stop()]
kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)] lister: 0x81caeb0
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*)] 0x81caeb0
koffice (lib kofficecore): KoDocument::loadNativeFormat( /opt/kde-cvs/share/apps/kword/templates/Normal/.source/A4.kwt )
kword: Loading took 0.111 seconds
kword: [void KWDocument::processPictureRequests()] 0 picture requests.
kword (formatting): KWDocument::recalcFrames from=0 to=-1
kword: fixing page 0 z-orders
kotext: kospell.cc:128 Codec = <default>
kotext: Try #0
kotext: Using ispell
kparts: found Plugin : /opt/kde-cvs/share/apps/kword/kpartplugins/scan-kword.rc !
kparts: loadPlugins found desktopfile for kword:
kparts: load plugin
kword: 1 false
kio (KTrader): KServiceTypeProfile::offers( KOfficePart, )
kio (KTrader): Returning 12 offers
kword: KWTextFrameSetEdit::KWTextFrameSetEdit Text Frameset 1
kparts: 0x8160ee0 emitting activePartChanged 0x81137f8
kdecore (KAction): WARNING: KAction::plug(): has no KAccel object; this = 0x8117b78 name = koffice_undo parentCollection = 0x8117938
kdecore (KAction): WARNING: KAction::plug(): has no KAccel object; this = 0x811ce30 name = koffice_redo parentCollection = 0x8117938
kword: [KFormula::Document* KWDocument::getFormulaDocument()]
kotext: KoSpell::KoSpell2
kdecore (KProcIO): Empty
kdeui (KCommand): Initializing the Command History
kdecore (KAction): WARNING: KAction::updateShortcut(): name = "koffice_undo", cut = Ctrl+Z; No KAccel, probably missing a parent collection.
kdecore (KAction): WARNING: KAction::updateShortcut(): name = "koffice_redo", cut = Ctrl+Shift+Z; No KAccel, probably missing a parent collection.
kparts: ReadWritePart::setModified( true)
kword: [bool KoDocument::isModified()]  Modified doc='' extern=false
QFile::open: No file name specified
kdecore (KProcIO): Sending [5]
kdecore (KProcIO): Empty
kdecore (KProcIO): Sending [6]
kdecore (KProcIO): Empty
kdecore (KProcIO): Sending [9]
kdecore (KProcIO): Empty
kotext: KoTextFormatter::format 1 warning, availableWidth=0
kotext: 15771 over maxY=15771 -> final choice for the line: y=0
kword (formatting): slotAfterFormatting We need more space in Text Frameset 1 bottom2=16092 availHeight=15771
kword (formatting): AutoExtendFrame bottom=16092 availHeight=15771 => difference = 323
kword (formatting): createNewPageAndNewFrame creating new frame in frameset Text Frameset 1
kword (formatting):  last frame=0x81b21e8 pagenum=0 getpages-1=0   frames count=1
kword (formatting): height we will get in the new page:15771 current overflow height:323
kword: 2 false
kword (formatting): now frames count=2
kdecore (KAction): WARNING: KAction::updateShortcut(): name = "koffice_undo", cut = Ctrl+Z; No KAccel, probably missing a parent collection.
kdecore (KProcIO): Sending [9]
kdecore (KProcIO): Empty

Maybe this bug is related to bug 65933.

Greetings,
Stefan
Comment 2 Waldo Bastian 2004-02-16 17:21:11 UTC
Confirmed, same issue as BR65933.

*** This bug has been marked as a duplicate of 65933 ***