Bug 264899 - crash when saving lineart scanned image to file
Summary: crash when saving lineart scanned image to file
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: libksane
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: imaging-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-30 22:44 UTC by raffamaiden
Modified: 2015-09-17 09:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description raffamaiden 2011-01-30 22:44:49 UTC
Version:           1.8.0 (using KDE 4.6.0) 
OS:                Linux

Hi,

kipi crash when i save a scanned lineart image to a PNG file

Reproducible: Always

Steps to Reproduce:
1) Open GwenView
2) Click on Plugins->Import->Import from scanner
3) Wait till it identify the scanner, then a scan setting page will appear
4) Select "Lineart" in "Scanmode" and "300 DPI" in "Scan resolution"
5) Click the scan button
6) After the scan finish, it will ask you where to save the image. Choose a location and press the "save" button.leave PNG as the file format!
7) The application crash

Actual Results:  
Segmentation fault


Here are the backtrace:

(gdb) backtrace
#0  0x0332fa05 in KIPIPlugins::KPWriteImage::write2PNG(QString const&) () from /usr/lib/libkipiplugins.so.1
#1  0x03fc3035 in ?? () from /usr/lib/kde4/kipiplugin_acquireimages.so
#2  0x00580df9 in QThreadPrivate::start (arg=0x872cee8) at thread/qthread_unix.cpp:266
#3  0x0239dcc9 in start_thread (arg=0xb4b31b70) at pthread_create.c:304
#4  0x01bad69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

How do not know why that ?? in the #1 line. I have all debug symbols installed.
Comment 1 raffamaiden 2011-01-30 22:52:18 UTC
Here are some more results:

- Using "Halftone" as Scan mode will make the application crash as well
- Using "Gray" the application do not crash, but the resulting file contain nothing, only a fully trasparent white image
- Using "Color" seems to work correctly. The application do not crash and the final image looks correct. It seems to be the only mode which works correct.

I have a HP SCX-4300
Comment 2 caulier.gilles 2011-01-30 22:53:10 UTC
Do you use libpng 1.5.0 ? If yes, this problem is already fixed in current implementation from svn trunk (next 1.9.0)

Gilles Caulier
Comment 3 raffamaiden 2011-01-30 23:20:51 UTC
hi,

thanks for your response.

Seeing KPackageKit, my libpng12-0 package version is 1.2.44-1.

This bugs also happen with JPEG and TIFF, the application crash also when saving to these file formats.

JPEG-2000 give "The target image file format JP2 is unsupported"
RGB does not work either (cannot save image file message)
MNG animation does not work either (cannot save image message)

All others file formats work as expected. The application do not crash and the image looks correct.
Comment 4 caulier.gilles 2011-11-03 12:44:25 UTC
kipi-plugins 2.2.0 is out since few weeks. Crash still valid with this version ?

Gilles Caulier
Comment 5 caulier.gilles 2011-12-20 10:26:20 UTC
Raffamaiden,

This file still valid using kipi-plugins 2.4 ?

Gilles Caulier
Comment 6 caulier.gilles 2012-06-22 08:56:09 UTC
Official Kipi-plugins 2.6.0 release is out since few days now :

http://www.digikam.org/drupal/node/656

Please, check if this entry still valid, or update report accordingly.

Thanks in advance.

Gilles Caulier
Comment 7 raffamaiden 2012-06-22 12:42:03 UTC
I do not use KDE anymore
Comment 8 caulier.gilles 2015-06-28 10:01:26 UTC
New Kipiplugins 4.11.0 is available :

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?

Gilles Caulier
Comment 9 caulier.gilles 2015-08-23 14:30:39 UTC
digiKam 4.12.0 is out :

https://www.digikam.org/node/741

We need a fresh feedback using this release please...
Thanks in advance.