Summary: | Choqok crash at startup [QPixmapData::fromData with invalid data (xml/html as input), Choqok::MediaManager::slotImageFetched] | ||
---|---|---|---|
Product: | [Applications] choqok | Reporter: | julian |
Component: | general | Assignee: | Mehrdad Momeny <mehrdad.momeny> |
Status: | RESOLVED UPSTREAM | ||
Severity: | crash | CC: | alien4343, andresbajotierra, glauber.md, greve, jjesse, mail, Mathias.Homann, sputnikshock, william |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
julian
2009-10-18 22:10:08 UTC
*** Bug 215566 has been marked as a duplicate of this bug. *** It seems that Qt4.6 is less tolerant about loading invalid data as a pixmap... Fixed already: http://bugreports.qt.nokia.com/browse/QTBUG-5840 *** Bug 218059 has been marked as a duplicate of this bug. *** Any suggestions of how to get the qt fixes for Choqok to run? Or a possible workaround for now? Simple patch(workaround) to bypass this issue: Index: libchoqok/mediamanager.cpp =================================================================== --- libchoqok/mediamanager.cpp (revision 1063057) +++ libchoqok/mediamanager.cpp (working copy) @@ -120,7 +120,8 @@ emit fetchError( remote, errMsg ); } else { QPixmap p; - if( p.loadFromData( baseJob->data() ) ) { + if( !baseJob->data().startsWith(QByteArray("<?xml version=\"")) && + p.loadFromData( baseJob->data() ) ) { d->cache.insert( remote, p ); emit imageFetched( remote, p ); } else { Thank you very much Dario, that got it working perfectly. *** Bug 221675 has been marked as a duplicate of this bug. *** *** Bug 221819 has been marked as a duplicate of this bug. *** *** Bug 221941 has been marked as a duplicate of this bug. *** *** Bug 222194 has been marked as a duplicate of this bug. *** *** Bug 223990 has been marked as a duplicate of this bug. *** |