hplip crashes laserjet 1020 printer

Bug #1510367 reported by uski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

Hello,

I am using HPLIP 3.15.9

When connecting a HP LaserJet 1020 printer, it is crashed by HPLIP. No printing is possible.
The printer works fine under Windows 8.

I see the following in /var/log/syslog

Oct 27 00:18:11 yoga kernel: [ 2493.110332] usb 1-2: new high-speed USB device number 14 using xhci_hcd
Oct 27 00:18:12 yoga kernel: [ 2493.314897] usb 1-2: New USB device found, idVendor=03f0, idProduct=2b17
Oct 27 00:18:12 yoga kernel: [ 2493.314905] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 27 00:18:12 yoga kernel: [ 2493.314909] usb 1-2: Product: HP LaserJet 1020
Oct 27 00:18:12 yoga kernel: [ 2493.314912] usb 1-2: Manufacturer: Hewlett-Packard
Oct 27 00:18:12 yoga kernel: [ 2493.314915] usb 1-2: SerialNumber: JL22T4F
Oct 27 00:18:12 yoga kernel: [ 2493.318117] usblp 1-2:1.0: usblp1: USB Bidirectional printer dev 14 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Oct 27 00:18:12 yoga logger: loading HP Device 001 014
Oct 27 00:18:12 yoga python: io/hpmud/musb.c 2165: [18524] hpmud_make_usb_uri() bus=001 dev=014
Oct 27 00:18:12 yoga python: io/hpmud/musb.c 2262: hpmud_make_usb_uri() uri=hp:/usb/HP_LaserJet_1020?serial=JL22T4F bytes_read=39
Oct 27 00:18:12 yoga python: io/hpmud/musb.c 2165: [18528] hpmud_make_usb_uri() bus=001 dev=014
Oct 27 00:18:12 yoga python: io/hpmud/musb.c 2262: hpmud_make_usb_uri() uri=hp:/usb/HP_LaserJet_1020?serial=JL22T4F bytes_read=39
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 426: Found interface conf=0, iface=0, altset=0, index=1
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 388: Active kernel driver on interface=0 ret=1
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 392: Detaching kernel driver on interface=0 ret=0
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 531: claimed 7/1/2 interface
Oct 27 00:18:15 yoga kernel: [ 2496.675088] usblp1: removed
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 775: read actual device_id successfully fd=1 len=82
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 557: released 7/1/2 interface
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 426: Found interface conf=0, iface=0, altset=0, index=1
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 388: Active kernel driver on interface=0 ret=0
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 531: claimed 7/1/2 interface
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 775: read actual device_id successfully fd=1 len=82
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 557: released 7/1/2 interface
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 426: Found interface conf=0, iface=0, altset=0, index=1
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 388: Active kernel driver on interface=0 ret=0
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 531: claimed 7/1/2 interface
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 775: read actual device_id successfully fd=1 len=82
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 557: released 7/1/2 interface
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 426: Found interface conf=0, iface=0, altset=0, index=1
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 388: Active kernel driver on interface=0 ret=0
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 531: claimed 7/1/2 interface
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 775: read actual device_id successfully fd=1 len=82
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 557: released 7/1/2 interface
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 955: new PRINT channel=2 clientCnt=1 channelCnt=1
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 426: Found interface conf=0, iface=0, altset=0, index=1
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 388: Active kernel driver on interface=0 ret=0
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 531: claimed 7/1/2 interface
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 557: released 7/1/2 interface
Oct 27 00:18:15 yoga python: io/hpmud/musb.c 970: removed PRINT channel=2 clientCnt=0 channelCnt=0
Oct 27 00:18:15 yoga udev-configure-printer: add /devices/pci0000:00/0000:00:14.0/usb1/1-2
Oct 27 00:18:15 yoga udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:14.0/usb1/1-2
Oct 27 00:18:15 yoga udev-configure-printer: Device vendor/product is 03F0:2B17

Then I see the printer doing something (motor starts, LEDs blink).
And after a few seconds :

Oct 27 00:18:21 yoga udev-configure-printer: Failed to fetch Device ID
Oct 27 00:18:21 yoga colord: Device added: sysfs-Hewlett-Packard-HP_LaserJet_1020

And then nothing. From now one, the printer will no longer enumerate on the USB bus.
If I disconnect and reconnect it, all I get is :
usb 1-2: new high-speed USB device number 15 using xhci_hcd
and that's it. And lsusb hangs until I unplug the printer (yes this is a USB 3.0 port and I tried on a USB 2.0 port, same result)

I have to power off and power on the printer again, so it can enumerate, but printing is not possible.
I can reproduce this as much as I want and the printer does work under Windows.

I have removed foo2zjs driver, it did not help.

Kernel is 4.3.0 amd64
Distro is ubuntu 14.04.3

I have used this printer in the past on this exact computer. Not sure what caused the malfunction.

After finishing the above text I tried uninstalling hplip, reinstalling foo2zjs, I was able to install the printer, but I still can't print (that's probably a different issue). But at least it does not crash the printer firmware.

It looks like HPLIP does something that crashes the printer internal firmware.

Revision history for this message
uski (ba-cykian) wrote :

Just tested 3.12.10 and guess what, it works.

So there is a regression somewhere.
3.15.4 did not work either so it's between 3.12.10 and 3.15.4

This confirms my setup is correct and this is a hplip bug.

Revision history for this message
uski (ba-cykian) wrote :

3.13.2 works too.
3.14.6 has a "communication error" (might be the same issue as with the latest driver)
Going back to 3.13.5 : it works.

I'm staying there.

The developpers might want to take a look at the changes since 3.13.5, the regression is somewhere there.

Revision history for this message
goutam (goutamkk) wrote :

Hi uski,

Thank you for reporting this issue.
We will look into it.

Thanks,
goutam

Revision history for this message
Lukasz Konkol (konkoluk) wrote :

@uski - thank you for your description.
I've lost 2 hours trying to install HP 1020 with the latest version of hplip: 3.17.11 and it is not working there.
I've tried now with 3.13.5, even if it wasn't recommended. I've got warning:
error: linuxmint-17.3 version is not supported, so all dependencies may not be installed. However trying to install using linuxmint-14 version packages.

But after this installation - the HP is working like harm :)

Before I've had at logs:
Mar 10 11:56:00 konki-ThinkPad-T520 python: io/hpmud/musb.c 975: removed PRINT channel=2 clientCnt=0 channelCnt=0
Mar 10 11:56:00 konki-ThinkPad-T520 udev-configure-printer: add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Mar 10 11:56:00 konki-ThinkPad-T520 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Mar 10 11:56:00 konki-ThinkPad-T520 udev-configure-printer: Device vendor/product is 03F0:2B17
Mar 10 11:56:06 konki-ThinkPad-T520 udev-configure-printer: Failed to fetch Device ID
Mar 10 11:56:12 konki-ThinkPad-T520 colord: Device added: sysfs-Hewlett-Packard-HP_LaserJet_1020
Mar 10 11:56:17 konki-ThinkPad-T520 kernel: [ 120.086997] usblp 1-1.1:1.0: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar 10 11:56:17 konki-ThinkPad-T520 kernel: [ 120.087073] usbcore: registered new interface driver usblp
Mar 10 11:56:17 konki-ThinkPad-T520 kernel: [ 120.089122] usblp0: removed
Mar 10 11:56:28 konki-ThinkPad-T520 kernel: [ 131.081200] usblp 1-1.1:1.0: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar 10 11:56:28 konki-ThinkPad-T520 kernel: [ 131.084216] usblp0: removed
Mar 10 11:56:32 konki-ThinkPad-T520 wpa_supplicant[1779]: wlan0: CTRL-EVENT-SCAN-STARTED
Mar 10 11:56:39 konki-ThinkPad-T520 kernel: [ 142.079140] usblp: can't set desired altsetting 0 on interface 0
Mar 10 11:56:50 konki-ThinkPad-T520 python: io/hpmud/musb.c 153: unable get_string_descriptor -7: Resource temporarily unavailable
Mar 10 11:56:50 konki-ThinkPad-T520 python: io/hpmud/musb.c 2104: invalid product id string ret=-7
Mar 10 11:56:55 konki-ThinkPad-T520 python: io/hpmud/musb.c 153: unable get_string_descriptor -7: Resource temporarily unavailable
Mar 10 11:56:55 konki-ThinkPad-T520 python: io/hpmud/musb.c 2109: invalid serial id string ret=-7
Mar 10 11:57:00 konki-ThinkPad-T520 python: io/hpmud/musb.c 153: unable get_string_descriptor -7: Resource temporarily unavailable

Thank you

/Konki

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.