[Digikam-devel] [Bug 137495] showfoto crashes when doing any modification to a loaded directory

Fabien fabien.ubuntu at gmail.com
Mon Nov 20 10:43:48 GMT 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=137495         




------- Additional Comments From fabien.ubuntu gmail com  2006-11-20 11:43 -------
Sorry, I wasn't precise enough.

I opened a directory in command line, eg :
# showfoto mydir/

Then, I will get a blank "photo". If then I apply any fix or filter, showfoto will crash :

<<
QFile::open: No file name specified
QFile::open: No file name specified
showfoto: /tmp : RAW file identified
showfoto: Cannot load metadata using Exiv2 (/tmp: The file contains data of an unknown image type)
showfoto: Running dcraw command (digikamdcraw,-c,-w,-a,-H,0,-b,1,-q,0,-o,1,/tmp)
showfoto: Dcraw StdErr: Cannot decode /tmp
showfoto: Cannot load metadata using Exiv2 (/tmp: The file contains data of an unknown image type)

Apply any filter or any fix then, crash

KCrash: Application 'showfoto' crashing...
>>

I did more tests and the problem is the same if you try to open a directory in "File/Open" instead of "File/Open folder".

But, the problem is not only that :

- if you open from cmdline any unsupported file or even a file that doesn't exist, you will get the same problem. Eg :
<<<
QFile::open: No file name specified
QFile::open: No file name specified
showfoto: /etc/passwd : RAW file identified
showfoto: Cannot load metadata using Exiv2 (/etc/passwd: The file contains data of an unknown image type)
showfoto: Running dcraw command (digikamdcraw,-c,-w,-a,-H,0,-b,1,-q,0,-o,1,/etc/passwd)
showfoto: Dcraw StdErr: Cannot decode /etc/passwd
showfoto: Cannot load metadata using Exiv2 (/etc/passwd: The file contains data of an unknown image type)
kio_digikamthumbnail: Cannot load metadata using Exiv2 (/etc/passwd: The file contains data of an unknown image type)
kio_digikamthumbnail: Running dcraw command dcraw -c -e '/etc/passwd'
sh: dcraw: command not found
kio_digikamthumbnail: Running dcraw command dcraw -c -h -w -a '/etc/passwd'
sh: dcraw: command not found
kio_digikamthumbnail: Running dcraw command dcraw -c -e '/etc/passwd'
sh: dcraw: command not found
kio_digikamthumbnail: Running dcraw command dcraw -c -h -w -a '/etc/passwd'
sh: dcraw: command not found
kio_digikamthumbnail: /etc/passwd : RAW file identified
kio_digikamthumbnail: Cannot load metadata using Exiv2 (/etc/passwd: The file contains data of an unknown image type)
kioslave: ####### CRASH ###### protocol = kio_digikamthumbnail pid = 30395 signal = 11
>>>


I also made some tests with a false jpeg file. Just create a text file and name it textfile.jpg
Open digikam ImageEditor on an invalid picture (textfile.jpg), you'll get an error :
Failed to load image "textfile.jpg"
But, this doesn't prevent you to apply any filter or fix

<<<

digikam: Cannot load metadata using Exiv2 (/home/fabien/Photos/2006-11-18_tests/test_ixus/textfile.jpg: The file contains data of an unknown ima
ge type)
QFile::open: No file name specified
QFile::open: No file name specified
digikam: /home/fabien/Photos/2006-11-18_tests/test_ixus/textfile.jpg : JPEG file identified
digikam: Cannot load metadata using Exiv2 (/home/fabien/Photos/2006-11-18_tests/test_ixus/textfile.jpg: The file contains data of an unknown ima
ge type)
digikam: WARNING: [Digikam::DImg* Digikam::DImgInterface::getImg()] d->image is NULL
digikam: Cannot load metadata using Exiv2 (/home/fabien/Photos/2006-11-18_tests/test_ixus/textfile.jpg: The file contains data of an unknown ima
ge type)
digikam: WARNING: Failed to load image textfile.jpg
digikam: WARNING: [Digikam::DImg* Digikam::DImgInterface::getImg()] d->image is NULL
digikam: CimgIface::m_resize is on, new size: (0, 0)
digikam: ::No valid image data !!! ...
digikam: WARNING: [Digikam::DImg* Digikam::DImgInterface::getImg()] d->image is NULL
digikam: WARNING: [Digikam::DImg* Digikam::DImgInterface::getImg()] d->image is NULL
digikam: Reading LensDistortion settings
digikam: Preview lensdistortion started...
digikam: WARNING: [Digikam::DImg* Digikam::DImgInterface::getImg()] d->image is NULL
KCrash: Application 'digikam' crashing...
>>>



More information about the Digikam-devel mailing list