Print is failed via USB

Bug #1982551 reported by Jiang
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Phenomenon:
After installing the driver (such as RICOH IM C6000 PS) via USB protocol, it can be printed at the first time, but after the second or multiple times, the job will be canceled.

Comment:
1.Wait a few minutes and the job still won't be printed.
2.After unplugging in and plugging in the USB cable, the job can be printed
3.The problem does not occur via network printing.
4.Other systems (such as Windows, Mac OS) do not have this problem.

Our analysis:
1.We think that part of the data was lost via USB transmission

2.In CUPS ErrorLog, the job has been delivered completely.
(refer to error_log->[Job 313])
D [21/Jul/2022:15:21:17 +0800] [Job 313] Starting renderer with command: \"printf \"%%!PS-Adobe-3.0
D [21/Jul/2022:15:21:17 +0800] [Job 313] %%%%Title: (/home/rits/文档/17540黑白-2017.doc)
D [21/Jul/2022:15:21:17 +0800] [Job 313] %%
D [21/Jul/2022:15:21:17 +0800] [Job 313] %%\\n/lppswd()def\\n/usrcode()def\\n/sppswd()def\\nmark\\n/usrcode where{pop}{/usrcode()def}ifelse\\n(rits) usrcode (20`date +%y%m%d%R | sed \'s/://\'`) {setuserinfo} stopped\\ncleartomark\\nmark {\\n<<\\n /JobType 0\\n /JobInfo <<\\n /UserID (rits)\\n /Time (20`date +%y%m%d%R | sed \'s/://\'`)\\n /HostLoginName (rits)\\n /HostName (rits-OptiPlex-3010)\\n >>\\n>> /RDeviceProcSet /ProcSet findresource /SetJobType get exec\\n}stopped cleartomark\\nmark{\\nuserdict /RPS_BPdict 2 dict put\\nuserdict /RPS_BPdict get begin /RPS_BP_MEDIAPOSITION null def end\\n} stopped cleartomark\\nmark{\\nuserdict /RPS_BPdict get begin\\n/RPS_BP_MEDIATYPE (Auto) def end\\n} stopped cleartomark\\nmark{\\n<<\\n/BannerPageMode false\\n/MediaPosition null\\n/MediaType null\\n>>\\n/RDeviceProcSet\\n/ProcSet findresource\\n/SetBannerPage get exec\\n} stopped cleartomark\\n\"%%%%; cat;\"
D [21/Jul/2022:15:21:17 +0800] [Job 313] Starting process \"kid3\" (generation 1)
D [21/Jul/2022:15:21:17 +0800] [Job 313] Starting process \"kid4\" (generation 2)
D [21/Jul/2022:15:21:17 +0800] [Job 313] Starting process \"renderer\" (generation 2)
D [21/Jul/2022:15:21:17 +0800] [Job 313] JCL: \033%-12345X@PJL
D [21/Jul/2022:15:21:17 +0800] [Job 313] <job data>
…………
I [21/Jul/2022:15:21:25 +0800] [Job 313] Job completed.

3.However, I found an error on USB Request Block (URB) with Wireshark on Ubuntu 18.04
[Error: undefined; Off fendingCommand: BPdict Flushing: rest of job (to end of file) will be ignored] appeared at [URB BULK IN]
(refer to usb2.pcapng, snapshot.pn)

4.We extracted the accepted data on the printer side, the data is really lost.
(refer to prt00016.prn,
prt00013.prn is the data of normal print)

Description: Ubuntu 18.04.5 LTS
Release: 18.04
CUPS 2.2.7

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cups 2.2.7-1ubuntu2.9
ProcVersionSignature: Ubuntu 5.4.0-122.138~18.04.1-generic 5.4.192
Uname: Linux 5.4.0-122-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.28
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Jul 22 15:43:30 2022
InstallationDate: Installed on 2022-07-05 (16 days ago)
InstallationMedia: Ubuntu 18.04.5 LTS "Bionic Beaver" - Release amd64 (20200806.1)
MachineType: Dell Inc. OptiPlex 3010
Papersize: a4
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-122-generic root=UUID=72470cc0-4db9-4b77-b9de-77d32b61feb5 ro quiet splash vt.handoff=1
SourcePackage: cups
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/16/2013
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A11
dmi.board.name: 042P49
dmi.board.vendor: Dell Inc.
dmi.board.version: A02
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA11:bd09/16/2013:svnDellInc.:pnOptiPlex3010:pvr01:rvnDellInc.:rn042P49:rvrA02:cvnDellInc.:ct6:cvr:
dmi.product.name: OptiPlex 3010
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.

Revision history for this message
Jiang (jjlblue) wrote :
Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Is this report related to https://bugs.launchpad.net/ubuntu/+bug/1982531 ?

(this report is the better one, having apport data on it)

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

This may sound silly, but try a different USB cable between your printer and the system. That will help rule out a USB cable problem. (Even though Windows and macOS don't have this problem, there's still a chance that the USB cable is at fault.)

Revision history for this message
Jiang (jjlblue) wrote :

Yes, it is related to https://bugs.launchpad.net/ubuntu/+bug/1982531.
And I tried some other USB cables, the problem is still happened.

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote (last edit ):

And it's happening with multiple printers as well? (Asking to narrow down where the problem might be)

Jiang (jjlblue)
description: updated
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

I added back the "Our analysis" section from the old bug report since it has a wealth of useful debugging data. Thank you for going to so much trouble to make this report, all that debugging you did may prove extremely useful.

description: updated
Revision history for this message
Jiang (jjlblue) wrote :

Yes, this problem is happened with multiple printers.

Revision history for this message
Jiang (jjlblue) wrote :
Revision history for this message
Jiang (jjlblue) wrote :
Revision history for this message
Jiang (jjlblue) wrote :
Revision history for this message
Jiang (jjlblue) wrote :
Revision history for this message
Jiang (jjlblue) wrote :

I added attachments from the old bug report.
Is there any progress for this issue?

Revision history for this message
Jiang (jjlblue) wrote :

Can anyone analyze the cause of this problem?

Revision history for this message
Jiang (jjlblue) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cups (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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