[Digikam-devel] [Bug 162132] crash while saving tiff (possibly caused by present alpha channel)

Gilles Caulier caulier.gilles at gmail.com
Thu May 15 19:51:10 BST 2008


------- 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=162132         
caulier.gilles gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcel.wiesweg gmx de



------- Additional Comments From caulier.gilles gmail com  2008-05-15 20:51 -------
DrSlony,

You backtrace is not suitable. Mine is better :

/bin/sh -c libtool gdb /home/gilles/Documents/devel/SVN/branch/kde3/graphics/digikam/showfoto/showfoto --interpreter=mi2 -quiet
Using host libthread_db library "/lib/i686/libthread_db.so.1".
(gdb) bt
bt
#0  0xb7cf926d in QWidget::setUpdatesEnabled () from /usr/lib/libtiff.so.3
#1  0xb430c0b0 in ?? ()
#2  0x00000152 in ?? ()
#3  0xb7cf7cea in TIFFVSetField () from /usr/lib/libtiff.so.3
#4  0xb7cf877e in TIFFSetField () from /usr/lib/libtiff.so.3
#5  0x080d81c3 in Digikam::TIFFLoader::save (this=0xb5cc32c8, filePath= 0x8564920, observer=0x8564918) at tiffloader.cpp:502
#6  0x080d10da in Digikam::DImg::save (this=0x856491c, filePath= 0x8564920, format= 0x8564924, observer=0x8564918) at dimg.cpp:459
#7  0x080e0231 in Digikam::SavingTask::execute (this=0x8564910) at loadsavetask.cpp:398
#8  0x080decda in Digikam::LoadSaveThread::run (this=0x82e7aa8) at loadsavethread.cpp:122
#9  0xb6bc43ea in QThreadInstance::start () from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0xb66974e2 in start_thread () from /lib/i686/libpthread.so.0
#11 0xb613c47e in clone () from /lib/i686/libc.so.6
Current language:  auto; currently c++
^done(gdb) quitquit
The program is running.  Exit anyway? (y or n) [answered Y; input not from terminal]
(gdb) Process exited
/bin/sh -c libtool gdb /home/gilles/Documents/devel/SVN/branch/kde3/graphics/digikam/showfoto/showfoto --interpreter=mi2 -quiet
Using host libthread_db library "/lib/i686/libthread_db.so.1".
(gdb) bt
bt
#0  0xb7d0426d in QWidget::setUpdatesEnabled () from /usr/lib/libtiff.so.3
#1  0xb4308cd0 in ?? ()
#2  0x00000152 in ?? ()
#3  0xb7d02cea in TIFFVSetField () from /usr/lib/libtiff.so.3
#4  0xb7d0377e in TIFFSetField () from /usr/lib/libtiff.so.3
#5  0x080d81c3 in Digikam::TIFFLoader::save (this=0xb5cce2c8, filePath= 0x83762e8, observer=0x83762e0) at tiffloader.cpp:502
#6  0x080d10da in Digikam::DImg::save (this=0x83762e4, filePath= 0x83762e8, format= 0x83762ec, observer=0x83762e0) at dimg.cpp:459
#7  0x080e0231 in Digikam::SavingTask::execute (this=0x83762d8) at loadsavetask.cpp:398
#8  0x080decda in Digikam::LoadSaveThread::run (this=0x82e7a68) at loadsavethread.cpp:122
#9  0xb6bcf3ea in QThreadInstance::start () from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0xb66a24e2 in start_thread () from /lib/i686/libpthread.so.0
#11 0xb614747e in clone () from /lib/i686/libc.so.6
^done

Marcel,

Look like the crash appear when digiKam set alpha channel with libtiff. There is no reason for that

The PNG file to test has Alpha channel. It can be converted to TIFF file without any problem using ImageMagick. So something is wrong in digiKam tiffloader.

If you want to test, the PNG image is here: 

http://www.panopixel.org/drslony/20080513_zg_roof_5_47_rh4_tonemapped.png

Arnd, 

Are you able to reproduce the crash on your computer ?

Gilles Caulier



More information about the Digikam-devel mailing list