Data transfer fails when printing via USB

Bug #1982531 reported by Jiang
This bug report is a duplicate of:  Bug #1982551: Print is failed via USB. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

Phenomenon:
After installing the driver (such as Lenovo LJ6700DN 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.The problem does not occur viai network.
5.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)

Revision history for this message
Jiang (jjlblue) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1982531/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Jiang (jjlblue) wrote :

I didn't compile any code, just found issues with USB printing on Ubuntu system

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

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 :

I tried some other USB cables, the problem is still happened.

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

Marking this bug as a duplicate since I see you've made a second bug with more detail.

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/1982551 ?

(this report has no release details; if a LTS release which kernel stack is in use etc. It needs an apport-collect performed, but only after package change)

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

Other bug subscribers

Bug attachments

Remote bug watches

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