[Digikam-devel] [CRASH] writing a png crashs digikam-SVN

Gilles Caulier caulier.gilles at kdemail.net
Fri Dec 15 14:51:59 GMT 2006


On Friday 15 December 2006 13:36, Thorsten Schnebeck wrote:
> On Friday, December 15, 2006 07:48:03 AM Gilles Caulier wrote:
> > Not reproductible here. I use every day PNG file format to save my photo.
> > No crash here...
> >
> > Your report sound like a problem with your HDD free space/ or something
> > is broken in your KDE installation ?
> >
> > > kio (KIOJob): stat file:///home/schnebeck/EOS/einTest/IMG_4876.png
> > > kio (KIOJob): error 11 /home/schnebeck/EOS/einTest/IMG_4876.png
> >
> > Why KIOJob return an error just before than digiKam start the PNG stuff ?
> >
> > Gilles
>
> Hi Gilles,
>
> no, I loaded the same image into KolourPaint that nearly have the same
> "save as"-dialog and there it no problem to save to png. As a non-KDE
> program GIMP has also no problems.
> There is 12 GB left on partition, should be enough ;-)
> Although no room on a device should never crash an already running
> application.
>
> So I tried to recompile some of the involved packages to get a BT and here
> it is:
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1250223200 (LWP 12511)]
> 0xb633a819 in adler32 () from /lib/libz.so.1
> (gdb) bt
> #0  0xb633a819 in adler32 () from /lib/libz.so.1
> #1  0xb633d3c3 in deflateCopy () from /lib/libz.so.1
> #2  0xb633e4fc in deflateParams () from /lib/libz.so.1
> #3  0xb633d6c7 in deflate () from /lib/libz.so.1
> #4  0xb64ab391 in png_save_uint_16 () from /usr/lib/libpng12.so.0
> #5  0xb64ac498 in png_write_chunk_start () from /usr/lib/libpng12.so.0
> #6  0xb64b2f5a in png_write_info_before_PLTE () from /usr/lib/libpng12.so.0
> #7  0xb64b2fbc in png_write_info () from /usr/lib/libpng12.so.0
> #8  0xb7ea86d3 in Digikam::PNGLoader::save (this=0xb57b136c,
> filePath=@0x8519bc8,
>     observer=0x8519bc0) at pngloader.cpp:691
> #9  0xb7ebea99 in Digikam::DImg::save (this=0x8519bc4, filePath=@0x8519bc8,
> format=@0x8519bcc,
>     observer=0x8519bc0) at dimg.cpp:397
> #10 0xb7e3c036 in Digikam::SavingTask::execute (this=0x8519bb8) at
> loadsavetask.cpp:395
> #11 0xb7e399fd in Digikam::LoadSaveThread::run (this=0x84cd550) at
> loadsavethread.cpp:172
> #12 0xb6946853 in QThreadInstance::start () from
> /usr/qt/3/lib/libqt-mt.so.3 #13 0xb6461294 in start_thread () from
> /lib/libpthread.so.0
> #14 0xb620597e in clone () from /lib/libc.so.6
>
> (This is another computer, here is libpng12. On the other system it was
> libpng13)
>
> Strange that a save command enters a loader code. Maybe that libpng does
> not want to write a illegal png format to disk?
> To make it clear: there is no problem to write to jpg, tiff, bmp etc. When
> using jpeg2000 I get an error message but png results in a longer freeze
> and then a crash.
>
> But its also strange that no-one else seems to trigger such a generic
> problem.
>
> Bye
>
>   Thorsten

Look like the BT sound a crash in libpng using libz (used to compress image 
data). I suspect a problem with a shared library in your system. Check it.

Gilles



More information about the Digikam-devel mailing list