[Digikam-devel] [Bug 273765] replacing pgf files with an open digikam lead to reproducible crash

Gilles Caulier caulier.gilles at gmail.com
Mon Jun 20 12:06:16 BST 2011


https://bugs.kde.org/show_bug.cgi?id=273765





--- Comment #45 from Gilles Caulier <caulier gilles gmail com>  2011-06-20 13:06:12 ---
Marcel, Raphael

I hacked a lot digiKam PGF Utils interface and found a bug in lipgf API call
arguments (in fact, an evolution of API to update in digiKam core).

I tested with pgf test program from digiKam, and encoding and decoding PGF work
fine.

BUT, the problem still here about thumb database. I set a debug print to see if
PGF data taken from thumb db are not null. It's not the case :

digikam(11244)/digikam (core) Digikam::readPGFImageData: image data stream size
is :  8722
digikam(11244)/digikam (core) Digikam::readPGFImageData: Error running libpgf (
2 )!
digikam(11244)/digikam (core) Digikam::ThumbnailCreator::loadFromDatabase:
Cannot load PGF thumb from DB 
digikam(11244)/KDCRAW KDcrawIface::KDcraw::loadEmbeddedPreview: Preview data
size: 345669
digikam(11244)/KDCRAW KDcrawIface::KDcraw::loadEmbeddedPreview: Using embedded
RAW preview extraction
digikam(11244)/digikam (core) Digikam::DMetadata::getIccProfile: Exif
color-space tag is sRGB. Using default sRGB ICC profile.
digikam(11244)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation =>
Exif.Image.Orientation =>  1
digikam(11244)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation =>
Exif.Image.Orientation =>  1
digikam(11244)/digikam (core) Digikam::readPGFImageData: image data stream size
is :  8002
digikam(11244)/digikam (core) Digikam::readPGFImageData: Error running libpgf (
2 )!
digikam(11244)/digikam (core) Digikam::ThumbnailCreator::loadFromDatabase:
Cannot load PGF thumb from DB 
digikam(11244)/KDCRAW KDcrawIface::KDcraw::loadEmbeddedPreview: Preview data
size: 101661
digikam(11244)/KDCRAW KDcrawIface::KDcraw::loadEmbeddedPreview: Using embedded
RAW preview extraction
digikam(11244)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation =>
Exif.Image.Orientation =>  1
digikam(11244)/digikam (core) Digikam::readPGFImageData: image data stream size
is :  8814
digikam(11244)/digikam (core) Digikam::readPGFImageData: Error running libpgf (
2 )!
digikam(11244)/digikam (core) Digikam::ThumbnailCreator::loadFromDatabase:
Cannot load PGF thumb from DB 
digikam(11244)/KDCRAW KDcrawIface::KDcraw::loadEmbeddedPreview: Preview data
size: 331522
digikam(11244)/KDCRAW KDcrawIface::KDcraw::loadEmbeddedPreview: Using embedded
RAW preview extraction
digikam(11244)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote:
digikam(11244)/digikam (core) Digikam::DMetadata::getIccProfile: Exif
color-space tag is sRGB. Using default sRGB ICC profile.
digikam(11244)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation =>
Exif.Image.Orientation =>  1
digikam(11244)/digikam (core) Digikam::readPGFImageData: image data stream size
is :  10966
digikam(11244)/digikam (core) Digikam::readPGFImageData: Error running libpgf (
2 )!
digikam(11244)/digikam (core) Digikam::ThumbnailCreator::loadFromDatabase:
Cannot load PGF thumb from DB

Thumbs size are around 8/10Kb (256x256 pixels). So it sound fine.

The exception generated by libPGF appear when image data taken from DB is
passed to CPGFImage::Open() as a memory stream :

https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/threadimageio/pgfutils.cpp#L67

What's error #2 given by libPGF ?

Note : in my pgf test code, i use this method, and all work fine ! PGF image
data are taken from a file, not DB of course.

Gilles Caulier

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list