Version: (using KDE 3.5.9) Installed from: Debian testing/unstable Packages OS: Linux [Bug from Debian http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469303] The attached file was created with a previous version of KWord, but crashes current KWord (1.6.3) when try opening it. OOo 2.4 opens the file correctly. Backtrace: Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 0xb695e6c0 (LWP 12691)] [KCrash handler] #6 0xb5c9733e in KoTextParag::drawParagStringInternal (this=0x8301778, painter=@0x8570df8, s=@0xbfd79b40, start=11, len=1, startX=289, lastY=0, baseLine=19, bw=13, h=23, drawSelections=false, format=0x82ff828, selectionStarts=@0xbfd79b24, selectionEnds=@0xbfd79b1c, cg=@0xbfd7a100, rightToLeft=false, line=0, zh=0x817aab4, drawingShadow=false) at /build/buildd/koffice-1.6.3/./lib/kotext/KoTextParag.cpp:1979 #7 0xb5c97f72 in KoTextParag::drawParagString (this=0x8301778, painter=@0x8570df8, str=@0xbfd79b40, start=11, len=1, startX=4112, lastY=0, baseLine=260, bw=160, h=320, drawSelections=<value optimized out>, format=0x82ff828, selectionStarts=@0xbfd79b24, selectionEnds=@0xbfd79b1c, cg=@0xbfd7a100, rightToLeft=false, line=0) at /build/buildd/koffice-1.6.3/./lib/kotext/KoTextParag.cpp:1800 #8 0xb5caaeeb in KoTextParag::paintLines (this=0x8301778, painter=@0x8570df8, cg=@0xbfd7a100, cursor=0x8399b28, drawSelections=<value optimized out>, clipx=4199, clipy=0, clipw=128, cliph=1) at /build/buildd/koffice-1.6.3/./lib/kotext/KoTextParag.cpp:1659 #9 0xb5cb12c7 in KoTextParag::paint (this=0x8301778, painter=@0x8570df8, cg=@0xbfd7a100, cursor=0x8399b28, drawSelections=<value optimized out>, clipx=4199, clipy=0, clipw=128, cliph=1) at /build/buildd/koffice-1.6.3/./lib/kotext/KoTextParag.cpp:1454 #10 0xb5ca2afb in KoTextDocument::drawParagWYSIWYG (this=0x82f3f10, p=0xbfd7a18c, parag=0x8301778, cx=296, cy=0, cw=10, ch=1, doubleBuffer=@0xbfd7a12c, cg=@0xbfd7a100, zoomHandler=0x817aab4, drawCursor=true, cursor=0x8399b28, resetChanged=false, drawingFlags=5) at /build/buildd/koffice-1.6.3/./lib/kotext/KoTextDocument.cpp:1365 #11 0xb5f0420e in KWTextFrameSet::drawCursor (this=0x82f3918, p=0xbfd7a18c, cursor=0x8399b28, cursorVisible=<value optimized out>, canvas=0x83d3000, theFrame=0x82ffe98) at /build/buildd/koffice-1.6.3/./kword/KWTextFrameSet.cpp:809 #12 0xb5f047a6 in KWTextFrameSetEdit::drawCursor (this=0x8375720, visible=true) at /build/buildd/koffice-1.6.3/./kword/KWTextFrameSet.cpp:3709 #13 0xb5bda7ac in KoTextView::blinkCursor (this=0x8375720) at /build/buildd/koffice-1.6.3/./lib/kotext/KoTextView.cpp:946 #14 0xb5cc84a1 in KoTextView::qt_invoke (this=0x8375720, _id=16, _o=0xbfd7a384) at ./KoTextView.moc:173 #15 0xb5ed50c2 in KWTextFrameSetEdit::qt_invoke (this=0x8375720, _id=16, _o=0xbfd7a384) at ./KWTextFrameSet.moc:275 #16 0xb72cc00d in QObject::activate_signal (this=0x8399b40, clist=0x8399c48, o=0xbfd7a384) at kernel/qobject.cpp:2359 #17 0xb72ccb8d in QObject::activate_signal (this=0x8399b40, signal=2) at kernel/qobject.cpp:2328 #18 0xb75f83d9 in QTimer::timeout (this=0x8399b40) at .moc/release-shared-mt/moc_qtimer.cpp:82 #19 0xb72eeddf in QTimer::event (this=0x8399b40, e=0xbfd7a684) at kernel/qtimer.cpp:222 #20 0xb726e1ca in QApplication::internalNotify (this=0xbfd7a86c, receiver=0x8399b40, e=0xbfd7a684) at kernel/qapplication.cpp:2638 #21 0xb726efb6 in QApplication::notify (this=0xbfd7a86c, receiver=0x8399b40, e=0xbfd7a684) at kernel/qapplication.cpp:2361 #22 0xb78ebb52 in KApplication::notify (this=0xbfd7a86c, receiver=0x8399b40, event=0xbfd7a684) at /build/buildd/kdelibs-3.5.8.dfsg.1/./kdecore/kapplication.cpp:550 #23 0xb72635ae in QEventLoop::activateTimers (this=0x80c4548) at kernel/qapplication.h:523 #24 0xb721d388 in QEventLoop::processEvents (this=0x80c4548, flags=4) at kernel/qeventloop_x11.cpp:392 #25 0xb7284bc0 in QEventLoop::enterLoop (this=0x80c4548) at kernel/qeventloop.cpp:201 #26 0xb7284a56 in QEventLoop::exec (this=0x80c4548) at kernel/qeventloop.cpp:148 #27 0xb726dd3f in QApplication::exec (this=0xbfd7a86c) at kernel/qapplication.cpp:2761 #28 0xb6746f30 in kdemain (argc=2, argv=0x8078f58) at /build/buildd/koffice-1.6.3/./kword/main.cpp:40 #29 0xb7f96454 in kdeinitmain (argc=2, argv=0x8078f58) at kword_dummy.cpp:3 #30 0x0804ed40 in launch (argc=2, _name=0x807b014 "kword", args=0x807b04c "", cwd=0x0, envc=1, envs=0x807b05d "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x807b062 "dumbledore;1204641696;511401;12680_TIME10447192") at /build/buildd/kdelibs-3.5.8.dfsg.1/./kinit/kinit.cpp:673 #31 0x0804f461 in handle_launcher_request (sock=9) at /build/buildd/kdelibs-3.5.8.dfsg.1/./kinit/kinit.cpp:1240 #32 0x0804f979 in handle_requests (waitForPid=0) at /build/buildd/kdelibs-3.5.8.dfsg.1/./kinit/kinit.cpp:1443 #33 0x0805045d in main (argc=5, argv=0xbfd7aff4, envp=0xbfd7b00c) at /build/buildd/kdelibs-3.5.8.dfsg.1/./kinit/kinit.cpp:1908 #34 0xb7ccf456 in __libc_start_main () from /lib/i686/cmov/libc.so.6 #35 0x0804bb41 in _start ()
Created attachment 23860 [details] Problematic file This file was created with a previous version of KWord and crashes when trying to open with current KWord 1.6.3
tested with r875946 compiled with gcc version 4.3.2 (Gentoo 4.3.2 p1.0). I'll post a backtrace but it turns out I don't have debugging symbols enabled atm.
still crashes in beta4
SVN commit 900931 by zander: Fixes: Crash on loading doc with embedded frame BUG:159107 Details: The assumption that there is already a line of text isn't correct if the anchor is the first charcter in a paragraph. So special case that. M +25 -8 KWAnchorStrategy.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=900931