Page 1 of 2

[Fixed] USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Posted: 3. May 2019, 15:59
by mipri

ModEdit; related ticket: #18593: USB Printer not work (ver. 5.2.28 or 6.0.6)
Hello,

I am using a (pretty old) USB scanner HP ScanJet 5470C. There is no driver for my host's OS (Win 7), so I've installed it in a VM running Windows XP. I created a permament filter in the USB-settings of the VM, so the USB device is grabbed immediately when the VM starts. This setup worked for many years now, but with VirtulBox 6.0.6 it doesn't:

After starting the scanner application (HP Precisionscan Pro 3.1) the scanner is recognized and can be accessed. After starting a previev scan, the scanner carriage moves to the starting position, but then nothing more happens. The application says "warming up" forever and the actual scan does not start.

After killing and restarting the scanner application, it tells that there is no scanner installed. After switching the scanner off and on again and restarting the application, it recognizes the scanner, but the problem remains as described above.

Attached is a log recorded while trying to perform a scan.

Re: USB scanner stopped working in Virtualbox 6.0.6.

Posted: 4. May 2019, 13:32
by glendale
Hi,

+1

I have a similar issue since the new version of VirtualBox. I use a WindowsXP box (with guest extensions installed) to run an old software for an old synthesizer. It worked fine with previous versions but with the new version it connects to the synth but data transfer gets interrupted. I'm curious whether it's the same issue as described here :)

Best regards,
glen

Re: USB scanner stopped working in Virtualbox 6.0.6.

Posted: 5. May 2019, 10:32
by andyp73
mipri wrote:I am using a (pretty old) USB scanner HP ScanJet 5470C
Judging by the fact that this has two connection options - parallel port and USB I am assuming that it only supports USB 1.1. That would probably make the following entries in the VBox.log file pertinent:
VBox.log wrote:
00:02:01.157898 OHCI#0: Raising unrecoverable error
00:02:01.158123 OHCI: Software reset
00:02:01.161208 OHCI: USB Operational
00:02:01.161977 OHCI#0: Raising unrecoverable error
00:02:01.162141 OHCI: Software reset
00:02:01.162190 OHCI: USB Operational
mipri wrote:This setup worked for many years now, but with VirtulBox 6.0.6 it doesn't
We (the devs possibly) are going to need to some help to determine which version(s) of VirtualBox do and don't work. Do you remember which version you were using previously? Can you try downgrading to 5.2.28 to see if the 5.2.x version still works and also try 6.0.0 to determine if it has always been an issue with the 6.0.x versions.

-Andy.

Re: USB scanner stopped working in Virtualbox 6.0.6.

Posted: 5. May 2019, 22:48
by mipri
The scanner is an USB 1.1 device. It is connected to an USB 2.0 hub which is connected to the host. I also tried to connect the scanner directly to the host, this makes no difference.

I am using VirtualBox since version 4.3.12 on this host with this scanner and installed nearly every version since then. The scanner was usable with all of them as far as they did not have generic problems with providing USB ports to a guest.

After also testing version 5.2.28 and 6.0.0 the results summarize as follows:

5.2.24: scanner is working
5.2.28: scanner is not working

6.0.0: scanner is working
6.0.4: scanner is working
6.0.6: scanner ls not working

I've attached a ZIP file containing the logs from both versions 5.2.28 and 6.0.0.

Re: USB scanner stopped working in Virtualbox 6.0.6.

Posted: 14. May 2019, 20:12
by glendale
Hi,

thanks for your reply and investigation. It also works in my case with version 6.0.4 *yeay*

Maybe it helps: I tried USB 1.1, USB 2.0 and USB 3.0 in 6.0.6 - I got the error message with 1.1 and 2.0, with 3.0 WinXP prompted me to install a new USB device (which I declined).

I guess, this is the ticket it is related to: https://www.virtualbox.org/ticket/18593

Cheers from Berlin,
glen

USB scanner unable to work on VM

Posted: 18. May 2019, 12:24
by satimis
Hi all,

Host - Ubuntu 16.04
VM - Ubuntu 18.04
Epson scanner 3490
XSane

The scanner is working on Host XSane but unable to work on VM.

On VM:
$ lsusb

Code: Select all

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ scanimage -L

Code: Select all

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
$ sane-find-scanner

Code: Select all

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.
  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.
  # Not checking for parallel port scanners.
  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.
could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)

$ ls -al /usr/share/sane/snapscan/

Code: Select all

total 72
drwxr-xr-x 2 root    root     4096 May 13 21:56 .
drwxr-xr-x 4 root    root     4096 May 13 21:55 ..
-rwxrwxrwx 1 satimis satimis 64000 May 13 21:54 Esfw52.bin
On Host
⟫ cat /etc/group | grep vboxuser

Code: Select all

vboxusers:x:129:satimis
User already registered.

Edit-1
====
$ ls -ald /usr/share/sane

Code: Select all

drwxr-xr-x 4 root root 4096 May 13 21:55 /usr/share/sane
$ ls -ald /usr/share/sane

Code: Select all

drwxr-xr-x 4 root root 4096 May 13 21:55 /usr/share/sane
$ ls -ald /usr/share/sane/snapscan/

Code: Select all

drwxr-xr-x 2 root root 4096 May 13 21:56 /usr
Do I need to change all of them to satimis:satimis ?

Edit-2
Problem solved as follow:
===================

VM VirtualBox Manager
--> Settings --> USB

USB Device Filters
right click the "Blank window"
--> Add Filter From Device
--> select [EPSON Scanner [0110]]
--> OK

Restart VM
now Epson scanner is working on VM. XSane finds the scanner.

Regards
satimis

Cannot use USB scanner since upgrade

Posted: 18. May 2019, 22:42
by Dave S
I was running an older 5.x version of VB within Win10 to run XP, as my Canon scanner does not work in Win10 64bit. All worked fine till I recently upgraded to 5.2.28

Now Win XP within VB sees the scanner in Device Manager when I insert it, I see it as an option for the scanning device in my scanning program, but when I try to scan, it says it cannot communicate with the scanner.

I have VBoxGuestAdditions_5.2.26 and Oracle_VM_VirtualBox_Extension_Pack-5.2.28 installed

I have re-installed Canon Scangear, tried to re-install the driver, but it tells me I have the best one already.

Help please !

Re: USB scanner stopped working in Virtualbox 6.0.6.

Posted: 19. May 2019, 19:06
by socratis
@mipri
Great detective work, just what the developers would need to track the issue down.

@glendale
Good job finding the ticket. I'll post a link.

@both
There have been updates it seems. Could you see the ticket for more info, try the testbuilds and let the developers know?

Re: USB scanner stopped working in Virtualbox 6.0.6.

Posted: 19. May 2019, 19:14
by Dave S
Interesting, My USB scanner won't work in 5.2.28, worked fine in a previous 5.x version, can't say which version though.

Logs attached.

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Posted: 19. May 2019, 19:19
by socratis
@Dave S
I merged a thread that you had opened with this one. No need to have multiple "fronts" open.

Please read my previous post about visiting the ticket USB Printer not work (ver. 5.2.28 or 6.0.6) and trying the Testbuilds.

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Posted: 19. May 2019, 19:23
by socratis
@satimis
Same merge for you for your thread.

Moving this to "Using VirtualBox".

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Posted: 19. May 2019, 21:17
by Dave S
Thanks socratis

good to know this is not just me and a fix is in sight.

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Posted: 22. May 2019, 17:47
by mipri
I've tried Testbuild 6.0.9-130662 today, and the scanner is working again.

Thank you very much.

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Posted: 8. Jun 2019, 20:55
by Dave S
Any news on when the fix will be rolled out for the 5.2 build ?

Re: USB scanner stopped working in Virtualbox 6.0.6. (#18593)

Posted: 9. Jun 2019, 19:02
by socratis
@Dave S
Did you try the 5.2.x testbuild and there was no fix?