Menu

#760 Sony UP-DR80MD Printer Crash (USB Stack)

Open
open
nobody
None
5
2 days ago
2 days ago
No

Hello,

I have been migrating a project from the proprietary sonytoraster driver to use gutenprint and have discovered reproducible sequence that appears to crash the printer. When this crash occurs, the driver starts reporting: "Failure to send data to printer (libusb error -7: (65024/65536 to 0x01))". When this occurs the Sony UP-DR80MD Printer power button stops responding, doesn't respond to the "STOP" button, and shows the Print light as green and Ribbon/Paper as orange. The only resolution is to replug the AC power.

Other times, the backend will start reporting a blank serial number, firmware version, media type, remaining prints, and print count.

Cups Version: OpenPrinting 2.4.11
Gutenprint Version: 5.3.5

Prior to the crash, the backend reports normal status:

root@L1802J:~# BACKEND=sonyupdneo /usr/libexec/cups/backend/gutenprint53+usb -s
DEBUG: Multi-Call Dye-sublimation CUPS Backend version 0.134G
DEBUG: Copyright 2007-2025 Solomon Peachy
DEBUG: This free software comes with ABSOLUTELY NO WARRANTY!
DEBUG: Licensed under the GNU GPL.  Run with '-G' for more details.
DEBUG:
STATE: +connecting-to-device
STATE: +org.gutenprint.searching-for-device
DEBUG: Probing VID: 054C PID: 03c3
STATE: -org.gutenprint.searching-for-device
STATE: -offline-report
STATE: -connecting-to-device
DEBUG: Initializing 'Sony UP-D Neo' backend (version 0.23)
PPD: StpUsbBackend="sonyupdneo"
PPD: StpUsbVid=054c
PPD: StpUsbPid=03c3
PPD: StpUsbBus=001
PPD: StpUsbPort=004
INFO: Serial Number: 

INFO: Firmware Version: 02.01.10.00
INFO: Media type: UPC-R81MD (Letter)
INFO: Remaining prints: 8/50
INFO: Print count: 103
STATE: -connecting-to-device

To reproduce, you start with a Sony UP-DR80MD configured to use Letter with the tray closed. You then attempt to print a PDF but with PageSize=A4 to intentionally invoke the "Job does not match installed media" error. Then you open the tray, cancel the job, reenable the printer, and then attempt to print at A4 size again to intentionally invoke the "Tray open" error. Then you close the printer tray and attempt once more to print with PageSize=A4. However, this time the printer malfunctions until you replug AC power.

The error log can be found here (or see attached): https://gist.github.com/dscully/664b57e7fb16a2d05401c16f283fccb9

The script I used to reproduce this is below.

rm /var/log/cups/error_log
cupsctl --debug-logging
read -p "Insert a Sony DR80MD configured to Letter with tray closed (wait until all lights off) and press return to continue"
echo 'remove existing printer'
lpadmin -x SONY_DR80MD
echo 'add printer'
lpadmin -p SONY_DR80MD -E -v gutenprint53+usb://sony-updr80md/%ac%16%0b -m gutenprint.5.3://sony-updr80md/expert
echo 'Make default'
lpoptions -d SONY_DR80MD
echo 'Intentionally invoke Job does not match installed media error'
lp -o PageSize=A4 test.pdf
read -p "Wait a few seconds (Print=Solid Green and Ribbon/Paper=Solid Orange), open printer tray, wait a until printer is idle (Alarm=Orange), and press return to continue"
echo Intentionally invoke tray open error
cancel -a
cupsenable SONY_DR80MD
lp -o PageSize=A4 test.pdf
read -p "Wait a few seconds, close printer tray, wait a until printer is idle (Print=Solid Green and Ribbon/Paper=Solid Orange), and press return to continue"
cancel -a
cupsenable SONY_DR80MD
lp -o PageSize=A4 test.pdf
echo 'Printer will likely be hung now'
sleep 5
cupsctl --no-debug-logging
echo 'Script end!'

Let me know if I can clarify any behavior.

Thanks,
David

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB