Bug 162653 - .pcx-Images are not displayed in view mode, until a action (e.g. rotate) is performed
Summary: .pcx-Images are not displayed in view mode, until a action (e.g. rotate) is p...
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-26 15:48 UTC by karsten roch
Modified: 2020-04-19 16:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Attached file: KARO.PCX (627.24 KB, application/octet-string)
2008-05-27 22:15 UTC, karsten roch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description karsten roch 2008-05-26 15:48:29 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) 
OS:                Linux

Problem:  .pcx-Images are not displayed in view mode, until a action (e.g. rotate) is performed

Qt: 4.4.0
KDE: 4.00.72 (KDE 4.0.72 >= 20080430
Gwenview: 2.1

file karo.pcx
karo.pcx: PCX ver. 3.0 image data bounding box [0, 0] - [398, 503], 3 planes each of 8-bit colour, 300 x 300 dpi, RLE compressed

[karo@krakatoa Bilder]$ gwenview karo.pcx
gwenview(3429)/kio (KDirWatch) KDirWatchPrivate::KDirWatchPrivate: Available methods:  ("Stat", "FAM", "INotify")
gwenview(3429)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-karo/ksycoca4"
gwenview(3429)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added File "/home/karo/.local/share//user-places.xbel" NotExisting for "" ["KDirWatch-2"]
gwenview(3429)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
gwenview(3429)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added Dir "/home/karo/.local/share" for "/home/karo/.local/share//user-places.xbel" [""]
gwenview(3429)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
gwenview(3429)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring
gwenview(3429)/kio (bookmarks) KBookmarkManager::KBookmarkManager: starting KDirWatch for  "/home/karo/.local/share//user-places.xbel"
gwenview(3429)/kio (KDirListerCache) KDirListerCache::listDir: KDirLister(0x9b0e5e8) url= KUrl("trash:/") keep= false reload= false
gwenview(3429)/kio (KDirListerCache) KDirListerCache::listDir: Listing directory: KUrl("trash:/")
gwenview(3429)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::KCoreConfigSkeleton: Creating KCoreConfigSkeleton ( 0x9b452d8 )
gwenview(3429)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::readConfig: KCoreConfigSkeleton::readConfig()
gwenview(3429)/kdecore (KLibLoader) kde4Factory: The library "/usr/lib/kde4/gvpart.so" does not offer a qt_plugin_instance function.
gwenview(3429)/kdeui (KIconEffect) KIconEffect::apply: Illegal icon effect:  160931314
gwenview(3429)/kparts KParts::MainWindow::createGUI: MainWindow::createGUI, part= Gwenview::GVPart(0x9c745a0)   Gwenview::GVPart   ""
gwenview(3429)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::instance: instance(): ... initialised
gwenview(3429)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readConfig: readConfig(): local zone= "Europe/Berlin"
gwenview(3429)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readZoneTab: readZoneTab( "/usr/share/zoneinfo/zone.tab" )
gwenview(3429)/kio (KIOJob) KDirModel::indexForUrl: KUrl("file:///home/karo/Bilder/karo.pcx") not found
gwenview(3429)/kio (Slave) KIO::Slave::createSlave: createSlave "trash" for KUrl("trash:/")
gwenview(3429)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-karo/gwenviewFW3429.slave-socket"
gwenview(3429)/kio (KDirListerCache) KDirListerCache::listDir: KDirLister(0x9d0c760) url= KUrl("trash:/") keep= false reload= false
gwenview(3429)/kio (KDirListerCache) KDirListerCache::listDir: Entry currently being listed: KUrl("trash:/")
gwenview(3429)/kio (KDirLister) KDirLister::stop:
gwenview(3429)/kio (KDirListerCache) KDirListerCache::slotEntries: new entries for  KUrl("trash:/")
gwenview(3429)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("trash:/")



An empty screen without image pops up. 
After hitting the button "rotate right":

gwenview(3429)/kimgio PCXHandler::read: Manufacturer:  10
gwenview(3429)/kimgio PCXHandler::read: Version:  5
gwenview(3429)/kimgio PCXHandler::read: Encoding:  1
gwenview(3429)/kimgio PCXHandler::read: Bpp:  8
gwenview(3429)/kimgio PCXHandler::read: Width:  399
gwenview(3429)/kimgio PCXHandler::read: Height:  504
gwenview(3429)/kimgio PCXHandler::read: Window:  0 , 398 , 0 , 503
gwenview(3429)/kimgio PCXHandler::read: BytesPerLine:  399
gwenview(3429)/kimgio PCXHandler::read: NPlanes:  3
gwenview(3429)/kimgio PCXHandler::read: Image Bytes:  804384
gwenview(3429)/kimgio PCXHandler::read: Image Bytes Per Line:  1596
gwenview(3429)/kimgio PCXHandler::read: Image Depth:  32
gwenview(3429)/kio (KDirListerCache) KDirListerCache::listDir: KDirLister(0x99a03d8) url= KUrl("file:///home/karo/Bilder") keep= false reload= false
gwenview(3429)/kio (KDirListerCache) KDirListerCache::listDir: Listing directory: KUrl("file:///home/karo/Bilder")
gwenview(3429)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added Dir "/home/karo/Bilder" for "" ["KDirWatch-1"]
gwenview(3429)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
gwenview(3429)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring
gwenview(3429)/kio (KIOJob) KDirModel::indexForUrl: KUrl("file:///home/karo/Bilder/karo.pcx") not found
gwenview(3429)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///home/karo/Bilder")
gwenview(3429)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-karo/gwenviewQb3429.slave-socket"
gwenview(3429)/kio (KDirListerCache) KDirListerCache::slotEntries: new entries for  KUrl("file:///home/karo/Bilder")
gwenview(3429) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
gwenview(3429) KMimeTypeFactory::parseMagic: Now parsing  "/home/karo/.local/share/mime/magic"
gwenview(3429)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("file:///home/karo/Bilder")

Picture is displayed correctly now.
Comment 1 Aurelien Gateau 2008-05-27 10:50:10 UTC
Thanks for the report.
Can you attach a test picture?
Comment 2 karsten roch 2008-05-27 22:15:39 UTC
On 27 May 2008 08:50:14 -0000 you wrote:

[bugs.kde.org quoted mail]

Voici, here is the test picture i used. 

attachment:
karo.pcx


Created an attachment (id=24970)
Attached file: KARO.PCX
Comment 3 Aurelien Gateau 2008-05-29 00:05:42 UTC
SVN commit 813928 by gateau:

Correctly handle documents whose size can't be determined from meta data.
BUG:162653


 M  +20 -10    imageview.cpp  
 M  +2 -0      imageview.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=813928