Bug 119315 - digikam crashes when viewing a photo
Summary: digikam crashes when viewing a photo
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-RAW (show other bugs)
Version: 0.8.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-31 17:13 UTC by Oliver Doerr
Modified: 2017-08-08 10:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Doerr 2005-12-31 17:13:21 UTC
Version:           0.8.1-svn (using KDE 3.4.2 Level "b" , SUSE 10.0)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-default

I've got some photos that could the image editor from digikam not display. Everytime i'll try it the application crashes. All i see is the followuing output from stdout/stderr.

Findings for /jukebox/fotos/2005-12/IMG_5273.JPG:
Make   is "Canon"
Model  is "Canon PowerShot A80"
Ungültige Adresse        (<- means invalid address)
digikam: WARNING: Running dcraw command : dcraw -c -q -2 -w -a '/jukebox/fotos/2005-12/IMG_5273.JPG'
/jukebox/fotos/2005-12/IMG_5273.JPG: Cannot decode Canon PowerShot A80 JPEG images.
digikam: WARNING: Not a raw digital camera image.
***** Imlib2 Developer Warning ***** :
        This program is calling the Imlib call:

        imlib_image_get_data_for_reading_only();

        With the parameter:

        image

        being NULL. Please fix your program.
*** glibc detected *** double free or corruption (!prev): 0x085abe18 ***


Any help wpuld be nice
Oliver
Comment 1 caulier.gilles 2005-12-31 17:57:16 UTC
JPEG file cannot be decoding using dcraw. It's strange because image file to load is parsed in this order : JPEG, RAW, PNG, TIFF, etc...

I can reproduce this problem here with my jpeg files. Are you sure that you have a fresh checkout of svn ? Are you sure that your JPEG files aren't corrupted ? Can you put online your file to testing ?

Gilles Caulier
Comment 2 Oliver Doerr 2005-12-31 18:06:13 UTC
and here is one of the files...

Oliver

BTW: Happy new year ;-)


Gilles Caulier wrote:
[bugs.kde.org quoted mail]
Comment 3 Oliver Doerr 2005-12-31 18:19:53 UTC
Hi Gilles,

i've made a checkout a few hours ago and installed it. So it should be a fresh one. Of course i'm not sure whether my JPEG files are corrupt. It's no problem to look at them with other applications like konqueror and gimp.

I don't know where testing is and so i will send you the file to your mail adress.

Oliver
Comment 4 caulier.gilles 2006-01-01 10:01:58 UTC
SVN commit 493015 by cgilles:

Digikam 0.9.0 from stable : fix RAW file support backported from trunk. Removed static dcraw_parse method depency and added an image file format analys in imlibinterface to prevent any loading order problem with dcraw.
CCBUG: 119315
CCMAIL: digikam-devel@kde.org

 M  +1 -0      kioslave/Makefile.am  
 M  +8 -8      kioslave/digikamthumbnail.cpp  
 M  +152 -84   utilities/imageeditor/imlibinterface.cpp   [POSSIBLY UNSAFE: popen,scanf]
 M  +13 -0     utilities/imageeditor/imlibinterface.h  
Comment 5 Oliver Doerr 2006-01-01 12:34:49 UTC
Hi Gilles,

this fixed that issue.

Thanks
Oliver
Comment 6 caulier.gilles 2006-01-01 12:49:36 UTC
*** Bug has been marked as fixed ***.
Comment 7 caulier.gilles 2017-08-08 10:53:20 UTC
This problem is relevant of KIOSlave which have been dropped from digiKam since 5.0.0 release. This will never reproducible.

Gilles Caulier