Bug 223017

Summary: Acquire images does not scan the whole image
Product: [Frameworks and Libraries] libksane Reporter: Unknown <null>
Component: generalAssignee: Kåre Särs <kare.sars>
Status: RESOLVED NOT A BUG    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Log of scangui (Standalone version of Acquire Images plugin

Description Unknown 2010-01-16 19:44:49 UTC
Version:           unknown (using 4.3.90 (KDE 4.3.90 (KDE 4.4 RC1)), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.32-10-generic-pae

Using Kubuntu Lucid (development version) and an Epson Perfection V10 with scanner driver from Avasys (iscan 2.23.0-3.ltdl7 with iscan-plugin of same version).

Preview scanning using Acquire Images works fine, but when scanning to a file, the progress indicator goes up to 19% and restarts back at zero three times. The result is an only partly scanned image, the rest of the image is transparent.

Settings were the default settings (Color, 600 DPI, 8 Bit). No special selection after a preview scan was made.
Comment 1 Unknown 2010-01-17 12:08:31 UTC
I forgot to say that scanning to a file works as expected when using the iscan program.
Comment 2 Kåre Särs 2010-01-17 21:17:09 UTC
Thanks, for the report.

Can you enable some debug info?

1) Enable KDebug for KSANE in kdebugdialog
2) Enable sane debug info by setting the environment variable SANE_DEBUG_EPKOWA to something between 1 and 128 before running the application.

Then report back the debug info.
Comment 3 Unknown 2010-01-25 19:32:40 UTC
Created attachment 40224 [details]
Log of scangui (Standalone version of Acquire Images plugin

I added KSANE in kdebugdialog.

First I ran
export SANE_DEBUG_EPKOWA=127

Then I ran scangui. The console output is in the attached file.
Comment 4 Kåre Särs 2010-01-25 21:08:09 UTC
The sane debugging did not get enabled somehow...
and the KSANE debug info did not reveal anything special :(

Could you also try with Skanlite?
Comment 5 Unknown 2010-01-25 21:33:00 UTC
I think I found the problem myself. After the scanning was done the window was frozen but I clicked it away because I thought it was finished.
Probably when it's frozen, it is still saving the image so it was not finished saving the file before I quit the application.
When waiting, both skanlite and scangui give a proper result.

Maybe some more clear information to the user that it was saving the file might resolve this kind of problems.

This bug may be marked as invalid.
Comment 6 Kåre Särs 2010-01-25 22:14:11 UTC
Thanks for the information.

I'll mark it a invalid even tho there should be an indicator that the file is being saved.

I guess you scanned the whole page with 600 DPI, which results in quite a big picture :)

Kåre