Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 7 x64 scanning fails with: "Während der Vorschau ist ein Fehler aufgetreten" #27

Open
mbroemme opened this issue Oct 16, 2015 · 20 comments
Assignees
Labels

Comments

@mbroemme
Copy link

I tried to use WIASANE on Windows 7 x64 (German version) but whenever I try to fetch preview from the scanner it fails with:

"Während der Vorschau ist ein Fehler aufgetreten. Wenn ein anderes Programm den Scanner benutzt, warten Sie solange ab und versuchen Sie es erneut."

Actually the scanner is not busy and scanning from another Linux machine works fine. If I go to device manager and press "Check Device" in the WIA driver it shows: "Scanner device was successfully checked"

@mbroemme
Copy link
Author

@mback2k
Copy link
Owner

mback2k commented Oct 17, 2015

Could you please post the output of winsane-dbg.exe here? Maybe your scanner does not support all required options or uses different names for them. The "Check Device" function does not currently check if that is the case.

@virgoparna
Copy link

I'm getting following error under Windows 10:
An error occurred while setting scanner properties. If another program is scanning, please wait for it to complete and try again.
Which seems to be similar. How does one use winsane-dbg.exe? Just executing it generates no output.

@mback2k
Copy link
Owner

mback2k commented May 13, 2016

You need to run winsane-dbg.exe from the commandline and give it the host and port of the SANEd server as parameters.

@virgoparna
Copy link

virgoparna commented May 15, 2016

Added shortened log file (actual scanning messages are mostly removed).
scan-short.zip

@virgoparna
Copy link

Sorry for multiple attempts, uploads failed several times.

@virgoparna
Copy link

And I now thought to try it from different computer. And it works from there... Weird.

@virgoparna
Copy link

Uninstalling driver and reinstalling it fixed the problem.
At first time I did not enter network driver during installation. And I could not add it later - Install Scanner did nothing. In the end I run install again and entered scanner then. And it did not work. But now I did enter scanner immediately. And it did work. I don't know, if it is of any help.

@malakudi
Copy link

It seems I have the same problem, so I will not open a new issue.
winsane-dbg.exe finds the scanner correctly and even completes a scan. But when used from Fax and Scan utility, it gives the error messages mentioned before in this thread.
I attach log from winsane-dbg.exe

log.txt

@virgoparna
Copy link

Something that I noticed later: when scanner is turned off and then on again I need to re-select scanner in Device Manager. Could this be the issue also?

@malakudi
Copy link

@virgoparna: it doesn't make any difference in my case.

I just want to add that I use Windows 10 Anniversary Edition.

@malakudi
Copy link

And this is the log from saned with SANE_DEBUG_DLL=255 and -d255
saned_log.txt

@std66
Copy link

std66 commented Oct 12, 2016

I'm also having the same issue with all of my computers (tried on Windows 10 and Windows 7). I have a Canon Pixma MP160 multi-function device. Using SANEDroid (Android 4.2.2) I can use my scanner on my phone so I think the Linux-side works well. When I try to scan from Windows I get the error message described above. Under Windows my scanner also works with SaneTwain. I attached the output of winsane-dbg:
out.txt

@mback2k mback2k self-assigned this Oct 28, 2016
@mback2k mback2k added the bug label Oct 28, 2016
@alumni
Copy link

alumni commented Dec 22, 2016

I'm also having the same issue on a HP all-in-one, on both Windows 7 64bit and Windows 10 64bit. The message when I click the preview button in Windows Fax and Scan is:

An error occurred while setting scanner properties. If another program is scanning, please wait for it to complete and try again.

I can confirm that it works in SaneTwain/SaneWinDS. The debug executable can also retrieve data from the scanner. Here is the attached output: out.txt.

@satrafuckar
Copy link

satrafuckar commented Jan 26, 2017

hello
I'm experiencing the exact same situation as alumni describes. All is exactly as he writes, the only difference is my scanner: Canon MF4150 all-in-one.

out.txt

As i was trying to see what is going on in saned (saned -d255), i realized that something is periodically connecting to it (and causing it to bail out), even when I "do nothing" with it. (no scanning app, no winsane-dbg, etc). The connection comes from my computer, not from any other host.

server.txt

edit: when installing, only the debug version is able to completely install, the release version finds the scanner but cant connect to it / set it up. The scanner's name under release is: pixma:04A926A3, while under debug: pixma:04A926A3_SDF820055437B. (pixma is the backend used).

@arneko
Copy link

arneko commented Feb 26, 2017

I seem to have the same program with my Canon Pixma MP600 and Win10x64 Pro

It seems to install fine, finds the printer, the dbg program even seems to complete the scan, but when trying to do an actual scan it complains about another program accessing the device. SaneTwain/SaneWinDs on the same machine work fine (but I can't seem to get them properly integrated), so does the windows machine.

Many people with this problem seem to have Canon Scanners - could that be related?

@arneko
Copy link

arneko commented Feb 27, 2017

Just tried another computer, Win10x64 Home, and it worked. Could installing SaneTwain or SaneWinDS before wiasane be the problem? I tried uninstalling it from the other computer, reinstalling wiasane, removing everything from c:\Windows\twain_32\ and reinstalling, but nothing helped.

@lexa2
Copy link

lexa2 commented Apr 22, 2017

Affects me too. Win10x64 Pro, Samsung SCX-4200 as a target device.
It used to work with Windows 7 and even Windows 10 with older WIASane releases but since I've been forced to update to Founders Edition things broke.
Each end every program I tried that is capable of using WIA interface complains about "... if another program is accessing the device wait till it finish and click preview again". Both SaneTwain and SaneWinDS are able to access the scanner and successfully aquire both preview and scanned image.

I suspect that recent versions of WIASane started to expect some options being available from the scanner driver and fail to perform preview/scan in case these options are missing or fail to return proper value. xerox_mfp sane driver that is being used to handle Samsung SCX-4200 device seems to be somewhat messy w.r.t. options provided. I think that WIASane requirements on the provided options should be relaxed a bit so borked sane drivers/devices still would be able to produce an image no matter if it is possible for WIASane to control brightness/contrast/whatever or not.

Here is the output from winsane-dbg.exe connecting to the device in question:

------------------------------------------------------------
Name:   xerox_mfp:libusb:003:006
Vendor: SAMSUNG
Model:  ORION
Type:   multi-function peripheral
------------------------------------------------------------
Name:
Title:          Number of options
Description:    Read-only option that specifies how many options a specific devices supports.
Value:          11
Unit:           None
------------------------------------------------------------
Name:           standard
Title:          Standard
Description:    Source, mode and resolution options
Value:          <FAIL>
Unit:           None
------------------------------------------------------------
Name:           resolution
Title:          Scan resolution
Description:    Sets the resolution of the scanned image.
Value:          150
Unit:           DPI
Word:           75
Word:           100
Word:           150
Word:           200
Word:           300
Word:           600
Resolution:     300
------------------------------------------------------------
Name:           mode
Title:          Scan mode
Description:    Selects the scan mode (e.g., lineart, monochrome, or color).
Value:          Color
Unit:           None
String:         Lineart
String:         Halftone
String:         Gray
String:         Color
Mode:           Color
------------------------------------------------------------
Name:           highlight
Title:          Threshold
Description:    Select minimum-brightness to get a white point
Value:          <FAIL>
Unit:           Percent
Min:            30.000000       (1966080)
Max:            70.000000       (4587520)
Quant:          10.000000       (655360)
------------------------------------------------------------
Name:           source
Title:          Scan source
Description:    Selects the scan source (such as a document-feeder).
Value:          Flatbed
Unit:           None
String:         Flatbed
String:         ADF
String:         Auto
------------------------------------------------------------
Name:           geometry
Title:          Geometry
Description:    Scan area and media size options
Value:          <FAIL>
Unit:           None
------------------------------------------------------------
Name:           tl-x
Title:          Top-left x
Description:    Top-left x position of scan area.
Value:          0.000000        (0)
Unit:           Millimeter
Min:            0.000000        (0)
Max:            215.899994      (14149222)
Quant:          1.000000        (65536)
------------------------------------------------------------
Name:           tl-y
Title:          Top-left y
Description:    Top-left y position of scan area.
Value:          0.000000        (0)
Unit:           Millimeter
Min:            0.000000        (0)
Max:            297.179993      (19475988)
Quant:          1.000000        (65536)
------------------------------------------------------------
Name:           br-x
Title:          Bottom-right x
Description:    Bottom-right x position of scan area.
Value:          215.899994      (14149222)
Unit:           Millimeter
Min:            0.000000        (0)
Max:            215.899994      (14149222)
Quant:          1.000000        (65536)
------------------------------------------------------------
Name:           br-y
Title:          Bottom-right y
Description:    Bottom-right y position of scan area.
Value:          297.179993      (19475988)
Unit:           Millimeter
Min:            0.000000        (0)
Max:            297.179993      (19475988)
Quant:          1.000000        (65536)
------------------------------------------------------------
Format:         1
Last Frame:     1
Bytes per Line: 7776
Pixel per Line: 2592
Lines:          3469
Depth:          8

In case I answer "y" to the "Scan?" query winsane-dbg.exe actually is able to perform a scan and acquire image data.

@amorphobia
Copy link

Me too. Win10 Home 64-bit, Version 1703. My log is as following.

------------------------------------------------------------
Name:	hpaio:/usb/Deskjet_2520_series?serial=CN26C1P0CJ05VD
Vendor:	Hewlett-Packard
Model:	Deskjet_2520_series
Type:	all-in-one
------------------------------------------------------------
Name:		option-cnt
Title:		Number of options
Description:	Read-only option that specifies how many options a specific devices supports.
Value:		15
Unit:		None
------------------------------------------------------------
Name:		mode-group
Title:		Scan mode
Description:	(null)
Value:		<FAIL>
Unit:		None
------------------------------------------------------------
Name:		mode
Title:		Scan mode
Description:	Selects the scan mode (e.g., lineart, monochrome, or color).
Value:		Lineart
Unit:		None
String:		Lineart
String:		Gray
String:		Color
Mode:		Color
------------------------------------------------------------
Name:		resolution
Title:		Scan resolution
Description:	Sets the resolution of the scanned image.
Value:		75
Unit:		DPI
Word:		75
Word:		100
Word:		200
Word:		300
Word:		600
Word:		1200
Word:		2400
Resolution:	300
------------------------------------------------------------
Name:		source
Title:		Scan source
Description:	Selects the scan source (such as a document-feeder).
Value:		Flatbed
Unit:		None
String:		Flatbed
------------------------------------------------------------
Name:		advanced-group
Title:		Advanced
Description:	(null)
Value:		<FAIL>
Unit:		None
------------------------------------------------------------
Name:		brightness
Title:		Brightness
Description:	Controls the brightness of the acquired image.
Value:		1000
Unit:		None
Min:		0
Max:		2000
Quant:		0
------------------------------------------------------------
Name:		contrast
Title:		Contrast
Description:	Controls the contrast of the acquired image.
Value:		1000
Unit:		None
Min:		0
Max:		2000
Quant:		0
------------------------------------------------------------
Name:		compression
Title:		Compression
Description:	Selects the scanner compression method for faster scans, possibly at the expense of image quality.
Value:		None
Unit:		None
String:		None
String:		JPEG
Compression:	None
------------------------------------------------------------
Name:		jpeg-quality
Title:		JPEG compression factor
Description:	Sets the scanner JPEG compression factor. Larger numbers mean better compression, and smaller numbers mean better image quality.
Value:		<FAIL>
Unit:		None
Min:		0
Max:		100
Quant:		0
------------------------------------------------------------
Name:		geometry-group
Title:		Geometry
Description:	(null)
Value:		<FAIL>
Unit:		None
------------------------------------------------------------
Name:		tl-x
Title:		Top-left x
Description:	Top-left x position of scan area.
Value:		0.000000	(0)
Unit:		Millimeter
Min:		0.000000	(0)
Max:		215.900009	(14149223)
Quant:		0.000000	(0)
------------------------------------------------------------
Name:		tl-y
Title:		Top-left y
Description:	Top-left y position of scan area.
Value:		0.000000	(0)
Unit:		Millimeter
Min:		0.000000	(0)
Max:		297.010681	(19464892)
Quant:		0.000000	(0)
------------------------------------------------------------
Name:		br-x
Title:		Bottom-right x
Description:	Bottom-right x position of scan area.
Value:		215.900009	(14149223)
Unit:		Millimeter
Min:		0.000000	(0)
Max:		215.900009	(14149223)
Quant:		0.000000	(0)
------------------------------------------------------------
Name:		br-y
Title:		Bottom-right y
Description:	Bottom-right y position of scan area.
Value:		297.010681	(19464892)
Unit:		Millimeter
Min:		0.000000	(0)
Max:		297.010681	(19464892)
Quant:		0.000000	(0)
------------------------------------------------------------
Format:		1
Last Frame:	1
Bytes per Line:	0
Pixel per Line:	0
Lines:		3508
Depth:		8
Scan? (y/n)

@woutf
Copy link

woutf commented Mar 23, 2021

I know it's been years since this issue was opened, but I was wondering/hoping if anyone has found a solution in the meantime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests