trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: June 2012

Re: [trinity-devel] Corrupt image files in gwenview sources

From: "David C. Rankin" <drankinatty@...>
Date: Mon, 18 Jun 2012 10:09:42 -0500
On 06/18/2012 09:41 AM, Darrell Anderson wrote:
> There are 6 png and 2 svg files in applications/gwenview/src/gvdirpart.
> 
> All png files are unviewable. I can restore the 6 png images from the original 1.4.2 sources. The difference with the png images is one byte in file size, so probably some kind of CR/LF copy error. I have pushed those 6 fixes to GIT.

Using different viewers, I tried eog (eye of gnome) and received the following
on the png images:

Could not load image 'cr22-app-gvdirpart.png'.
Fatal error reading PNG image file: PNG file corrupted by ASCII conversion

That goes for all the pngs. So your suspicion regarding the crlf type issue is
one target.

> 
> One of the svg files won't open in gwenview, in Trinity GIT or 3.5.10. Gwenview crashes trying to open the file. Looking through past source archives of gwenview, this file never changed size and all of the past copies crash gwenview.
> 

I can view crsc-app-gvdipart.svg and hisc-app-gvdipart.svg in eog without issue.
However attempting to open crsc-app-gvdipart.svg in konqueror preview in kde
3.5.10 results in a CRASH that takes konqueror down. This further points to some
BUG in the kde/tde svg handling/rendering code. eog opened the svg without any
issue and displayed it correctly. kde (and I presume tde as well) viewers crash
on the same svg. That suggests to me that the kde/tde svg code lack basic error
checking to allow correct loading and display of svg images.

Darrell, if you have eog installed, then conduct the same test. View
crsc-app-gvdipart.svg in eog and then attempt to view it in konqueror by
rt-clicking and choosing KSVGPlugin. If you get the same crash, then we have a
real svg bug in TDE that is a blocker and needs to be fixed for 14. My kde
kcrash is attached.



-- 
David C. Rankin, J.D.,P.E.


System configuration startup check disabled.

[Thread debugging using libthread_db enabled]
[KCrash handler]
#5  0x00007fa9ecbd4ab5 in raise () from /lib64/libc.so.6
#6  0x00007fa9ecbd5fb6 in abort () from /lib64/libc.so.6
#7  0x00007fa9ecfcda9d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib64/libstdc++.so.6
#8  0x00007fa9ecfcbcb6 in ?? () from /usr/lib64/libstdc++.so.6
#9  0x00007fa9ecfcbce3 in std::terminate() () from /usr/lib64/libstdc++.so.6
#10 0x00007fa9ecfcbdee in __cxa_throw () from /usr/lib64/libstdc++.so.6
#11 0x00007fa9e5968afd in DOM::Document::createElementNS (this=<value optimized out>, namespaceURI=<value optimized out>, qualifiedName=<value optimized out>) at khtml/dom/dom_doc.cpp:248
#12 0x00007fa9e1ac2725 in KSVG::InputHandler::startElement(QString const&, QString const&, QString const&, QXmlAttributes const&) () from /opt/kde3/lib64/libksvg.so.0
#13 0x00007fa9edcb50d1 in QXmlSimpleReader::processElementEmptyTag() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#14 0x00007fa9edcbd4ed in QXmlSimpleReader::parseElement() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#15 0x00007fa9edcbc91b in QXmlSimpleReader::parseContent() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#16 0x00007fa9edcbd448 in QXmlSimpleReader::parseElement() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#17 0x00007fa9edcbc91b in QXmlSimpleReader::parseContent() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#18 0x00007fa9edcbd448 in QXmlSimpleReader::parseElement() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#19 0x00007fa9edcbc91b in QXmlSimpleReader::parseContent() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#20 0x00007fa9edcbd448 in QXmlSimpleReader::parseElement() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#21 0x00007fa9edcbc91b in QXmlSimpleReader::parseContent() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#22 0x00007fa9edcbd448 in QXmlSimpleReader::parseElement() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#23 0x00007fa9edcbc91b in QXmlSimpleReader::parseContent() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#24 0x00007fa9edcbd448 in QXmlSimpleReader::parseElement() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#25 0x00007fa9edcbc91b in QXmlSimpleReader::parseContent() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#26 0x00007fa9edcbd448 in QXmlSimpleReader::parseElement() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#27 0x00007fa9edcbc91b in QXmlSimpleReader::parseContent() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#28 0x00007fa9edcbd448 in QXmlSimpleReader::parseElement() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#29 0x00007fa9edcbc91b in QXmlSimpleReader::parseContent() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#30 0x00007fa9edcbd448 in QXmlSimpleReader::parseElement() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#31 0x00007fa9edcbff38 in QXmlSimpleReader::parseBeginOrContinue(int, bool) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#32 0x00007fa9edcc015c in QXmlSimpleReader::parse(QXmlInputSource const*, bool) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#33 0x00007fa9e19b3cbd in KSVG::SVGDocumentImpl::slotSVGContent(QIODevice*) () from /opt/kde3/lib64/libksvg.so.0
#34 0x00007fa9e19b4b45 in KSVG::SVGDocumentImpl::qt_invoke(int, QUObject*) () from /opt/kde3/lib64/libksvg.so.0
#35 0x00007fa9edaf0b84 in QObject::activate_signal(QConnectionList*, QUObject*) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#36 0x00007fa9e1ab7abd in KSVG::KSVGLoader::gotResult(QIODevice*) () from /opt/kde3/lib64/libksvg.so.0
#37 0x00007fa9e1ab937e in KSVG::KSVGLoader::slotResult(KIO::Job*) () from /opt/kde3/lib64/libksvg.so.0
#38 0x00007fa9e1ab971d in KSVG::KSVGLoader::qt_invoke(int, QUObject*) () from /opt/kde3/lib64/libksvg.so.0
#39 0x00007fa9edaf0b84 in QObject::activate_signal(QConnectionList*, QUObject*) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#40 0x00007fa9ee7df83d in KIO::Job::result (this=0xa56440, t0=0xa56440) at kio/kio/jobclasses.moc:162
#41 0x00007fa9ee7f453e in KIO::Job::emitResult (this=0xa56440) at kio/kio/job.cpp:235
#42 0x00007fa9ee812476 in KIO::SimpleJob::slotFinished (this=0xa56440) at kio/kio/job.cpp:601
#43 0x00007fa9ee815fff in KIO::TransferJob::slotFinished (this=0xa56440) at kio/kio/job.cpp:971
#44 0x00007fa9ee7f3e74 in KIO::TransferJob::qt_invoke (this=0xa56440, _id=17, _o=0x7fff9ba824a0) at kio/kio/jobclasses.moc:1071
#45 0x00007fa9edaf0b84 in QObject::activate_signal(QConnectionList*, QUObject*) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#46 0x00007fa9edaf0c6c in QObject::activate_signal(int) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#47 0x00007fa9ee80cd2e in KIO::SlaveInterface::dispatch (this=0xc5e7f0, _cmd=104, rawdata=<value optimized out>) at kio/kio/slaveinterface.cpp:243
#48 0x00007fa9ee7def60 in KIO::SlaveInterface::dispatch (this=0xc5e7f0) at kio/kio/slaveinterface.cpp:173
#49 0x00007fa9ee7dd3d6 in KIO::Slave::gotInput (this=<value optimized out>) at kio/kio/slave.cpp:300
#50 0x00007fa9ee7de5c8 in KIO::Slave::qt_invoke (this=0xc5e7f0, _id=4, _o=0x7fff9ba82810) at kio/kio/slave.moc:113
#51 0x00007fa9edaf0b84 in QObject::activate_signal(QConnectionList*, QUObject*) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#52 0x00007fa9edaf0dcb in QObject::activate_signal(int, int) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#53 0x00007fa9edb06c4b in QSocketNotifier::event(QEvent*) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#54 0x00007fa9eda9e185 in QApplication::internalNotify(QObject*, QEvent*) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#55 0x00007fa9eda9e346 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#56 0x00007fa9ee3694fe in KApplication::notify (this=0x7fff9ba83500, receiver=0xbf2f40, event=0x7fff9ba82b10) at kdecore/kapplication.cpp:552
#57 0x00007fa9eda94b46 in QEventLoop::activateSocketNotifiers() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#58 0x00007fa9eda57e58 in QEventLoop::processEvents(unsigned int) () from /usr/lib/qt3/lib64/libqt-mt.so.3
#59 0x00007fa9edaafbf1 in QEventLoop::enterLoop() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#60 0x00007fa9edaafb42 in QEventLoop::exec() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#61 0x00007fa9e7f81887 in kdemain () from /opt/kde3/lib64/libkdeinit_konqueror.so
#62 0x0000000000406f91 in launch (argc=2, _name=<value optimized out>, args=<value optimized out>, cwd=0x0, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40a3c5 "0") at kinit/kinit.cpp:673
#63 0x0000000000407aad in handle_launcher_request (sock=9) at kinit/kinit.cpp:1240
#64 0x00000000004082fa in handle_requests (waitForPid=0) at kinit/kinit.cpp:1443
#65 0x00000000004091cf in main (argc=5, argv=0x7fff9ba84358, envp=0x61c2d0) at kinit/kinit.cpp:1908