[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#25036: Please respond nicely when opening an invalid KWord file
From:       Ben Burton <benb () acm ! org>
Date:       2001-05-01 12:06:11
[Download RAW message or body]

Package: kword
Version: KDE 2.1.1 
Severity: wishlist
Installed from:    Debian Packages
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

Currently KWord crashes when opening an invalid .kwd file.  It would be nice if KWord \
would respond nicely (eg: "File is corrupt or not a Kword file - can't open") rather \
than crash.

An example can be found at http://bugs.debian.org/95931 (which was the Debian bug \
report that prompted this KWord bug report).  When loading this particular file KWord \
crashes with a SIGSEGV.  It consists of a corrupted XML file (cropped abruptly at \
both beginning and end); KWord crashes when loading it.  The corrupted XML file can \
be found at:

http://www.coker.com.au/teeth.kwd

The KWord output leading up to the crash is reproduced below.  If you want a copy of \
the corrupted XML file, please mail me at benb@acm.org.

KWord output:
-------------

kword:    desktopEntryPath=Office/kword.desktop   library=libkwordpart
QObject::connect: No such signal KCommandHistory::documentRestored()
QObject::connect:  (sender name:   'unnamed')
QObject::connect:  (receiver name: 'unnamed')
kword: KWDocument::setZoomAndResolution 100 75,75 m_resolutionX=1.041667 \
                m_zoomedResolutionX=1.041667 m_resolutionY=1.041667 \
                m_zoomedResolutionY=1.041667
kword: KWDocument::updateAllFrames
koffice (lib kofficecore): KoMainWindow::restoreWindowSize
koffice (lib kofficecore): KoDocument::openFile for /var/home/bab/teeth.kwd
koffice (lib kofficecore): KoDocument::openFile - importedFile \
/var/home/bab/teeth.kwd koffice (lib kofficecore): KoDocument::loadNativeFormat( \
/var/home/bab/teeth.kwd ) koffice (lib store): Opening for reading 'maindoc.xml'
koffice (lib store): WARNING: Unknown filename maindoc.xml
koffice (lib store): Opening for reading 'documentinfo.xml'
koffice (lib store): WARNING: Unknown filename documentinfo.xml
koffice (lib kofficecore): cannot open document info
koffice (lib kofficecore): KoMainWindow::setRootDocument this = [KoMainWindow pointer \
(0x810a260) to widget kword-mainwindow#1, geometry=1016x695+256+230] doc = 0x80fc788 \
                QGList::locate: Index 0 out of range
KCrash: crashing.... crashRecursionCounter = 2
KCrash: Application Name = kword path = <unknown>


(Submitted via bugs.kde.org)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic