Simple Scan crashes USB hub in Ubuntu 16.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Simple Scan |
New
|
Undecided
|
Unassigned |
Bug Description
I'm scanning with an old HP Deskjet F380 printer/scanner, which has worked fine for years, and still works fine when scanning with scanimage or xsane or with simple-scan in Ubuntu 16.04. However in Ubuntu 16.10 it fails every time when scanning a page of text. It starts scanning and displaying the scan on the screen but at some random point locks up. lsusb shows that the scanner is no longer present, and in fact the USB driver for that hub has crashed.
dmesg gives the following:
when finding the device:
[ 2.398527] usb 4-1: New USB device found, idVendor=03f0, idProduct=5511
[ 2.398529] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.398530] usb 4-1: Product: Deskjet F300 series
[ 2.398531] usb 4-1: Manufacturer: HP
[ 2.398531] usb 4-1: SerialNumber: CN6C7GM0JF04KH
When scanning starts:
[ 381.010913] Did not find alt setting 1 for intf 0, config 1
[ 381.012390] Did not find alt setting 1 for intf 0, config 1
When it locks up:
[ 391.537875] ohci-pci 0000:00:12.1: HcDoneHead not written back; disabled
[ 391.537887] ohci-pci 0000:00:12.1: HC died; cleaning up
[ 391.538010] usb 4-1: USB disconnect, device number 2
Attempting to rebind the hub driver fails with "write error: No such device" and dmesg prints "hub: probe of 4-0:1.0 failed with error -22". That's -EINVAL. It can only be restarted by rebooting the machine.
I tried running it in a QEMU virtual machine (the scanner didn't seem to work at all in VirtualBox.) Scanning was very slow, but it eventually crashed near the end of the page. dmesg in the guest OS said:
usb 1-1: USB disconnect, device number 2
while dmesg in the host said:
[ 3650.175052] ohci-pci 0000:00:12.1: frame counter not updating; disabled
[ 3650.175058] ohci-pci 0000:00:12.1: HC died; cleaning up
[ 3650.175138] usb 4-1: USB disconnect, device number 3
I've attached a scan log, which goes bad at:
[+20.38s] DEBUG: scanner.vala:1314: sane_read (14881) -> (SANE_STATUS_GOOD, 1488
0)
[+20.41s] DEBUG: scanner.vala:1314: sane_read (14881) -> (SANE_STATUS_GOOD, 1488
0)
[+20.41s] DEBUG: simple-
eskjet_
sb/Deskjet_
[+20.43s] DEBUG: scanner.vala:1514: Requesting redetection of scan devices
[+20.43s] DEBUG: 4:2 does not exist
If I start with Ubuntu 16.04, and upgrade the kernel to 4.7.1 from http:// kernel. ubuntu. com/~kernel- ppa/mainline/ v4.7.1/, then simple-scan still works. But if I upgrade the kernel to 4.8-rc1 from http:// kernel. ubuntu. com/~kernel- ppa/mainline/ v4.8-rc1/ then it locks up.