Canon MX310 printer hangs when printing LibreOffice Writer doc

Bug #1346868 reported by JohnWashington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

New Linux user reports problem printing letters from Lenovo T60 with Linux Mint 17 (Qiana) on Canon MX310 printer using LibreOffice 4.2.4.2.

I've borrowed the printer and done a fresh install of Mint 17 and Ubuntu 14.04 and reproduced the problem on both systems. A short letter prints to completion as far as the computer is concerned and is removed from the print queue. The printer prints the full text but does not eject the page, and the display shows "PRINTING...". The paper has to be manually pulled out of the printer and it has to be power cycled to resume normal operation.

I will attach the document used.

I've turned on the error log, but it's about 14MB, rather large to upload.

I'll be returning the printer today, and travelling for perhaps a week, but after that I'm keen to resume investigation, though this is my first time with a printer problem so I'll be appreciating any guidance.

In contrast, printing from Firefox and Gedit have not shown any problem.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cups 1.7.2-0ubuntu1.1
ProcVersionSignature: Ubuntu 3.13.0-30.55-generic 3.13.11.2
Uname: Linux 3.13.0-30-generic i686
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: i386
CurrentDesktop: Unity
Date: Tue Jul 22 11:52:10 2014
InstallationDate: Installed on 2014-07-14 (7 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140417)
Lpstat: device for MX310-series: usb://Canon/MX310%20series?serial=470CDE&interface=1
MachineType: LENOVO 1706W5K
Papersize: a4
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
PpdFiles: MX310-series: Canon MX310 series - CUPS+Gutenprint v5.2.10-pre2
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-30-generic root=UUID=f88bfaa3-b8a8-4ec0-beaf-cf990a6066cc ro quiet splash
SourcePackage: cups
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/21/2006
dmi.bios.vendor: LENOVO
dmi.bios.version: 7BET45WW (1.05 )
dmi.board.name: 1706W5K
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7BET45WW(1.05):bd04/21/2006:svnLENOVO:pn1706W5K:pvrThinkPadX60:rvnLENOVO:rn1706W5K:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 1706W5K
dmi.product.version: ThinkPad X60
dmi.sys.vendor: LENOVO

Revision history for this message
JohnWashington (ubuntu-johnwash) wrote :
Revision history for this message
JohnWashington (ubuntu-johnwash) wrote :

lsusb:
Bus 001 Device 007: ID 04a9:1728 Canon, Inc. MX310 ser

$ ls -l /dev/usb/lp* /dev/bus/usb/*/*
crw-rw-r-- 1 root root 189, 0 Jul 21 19:49 /dev/bus/usb/001/001
crw-rw-r--+ 1 root lp 189, 6 Jul 21 19:49 /dev/bus/usb/001/007
crw-rw-r-- 1 root root 189, 128 Jul 21 19:49 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 132 Jul 21 19:49 /dev/bus/usb/002/005
crw-rw-r-- 1 root root 189, 256 Jul 21 19:49 /dev/bus/usb/003/001
crw-rw-r-- 1 root root 189, 384 Jul 21 19:49 /dev/bus/usb/004/001
crw-rw-r-- 1 root root 189, 512 Jul 21 19:49 /dev/bus/usb/005/001
crw-rw-r-- 1 root root 189, 513 Jul 21 19:49 /dev/bus/usb/005/002
crw-rw-r-- 1 root root 189, 514 Jul 21 19:49 /dev/bus/usb/005/003
crw-rw---- 1 root lp 180, 0 Jul 21 19:49 /dev/usb/lp0
crw-rw---- 1 root lp 180, 1 Jul 21 19:49 /dev/usb/lp1

$ sudo usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Canon;CMD:BJL,BJRaster3,BSCCe,PLI;SOJ:TXT01;MDL:MX310 series;CLS:PRINTER;DES:Canon MX310 series;VER:1.040;STA:10;HRI:EU;MSI:E3;

$ sudo usb_printerid /dev/usb/lp1
GET_DEVICE_ID string:
MFG:Canon;CMD:MultiPASS 2.1;MDL:MX310 series FAX;CLS:PRINTER;DES:Canon MX310 series FAX;

$ lpinfo -v
network https
network http
network ipp
network ipps
network socket
network lpd
network ipp14
direct usb://Canon/MX310%20series?serial=470CDE&interface=1
direct usb://Canon/MX310%20series%20FAX?serial=470CDE&interface=2
direct hp
network smb
direct hpfax
$

Cups 1.7.2

Revision history for this message
JohnWashington (ubuntu-johnwash) wrote :

Example LO document used in above test.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please follow the instructions of the section "USB printer does not print or prints garbage" on https://wiki.ubuntu.com/DebuggingPrintingProblems. Thanks.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
JohnWashington (ubuntu-johnwash) wrote :

Thanks for quick response. I did follow as much of that as seemed relevant to me. Can you be more specific?

By the way, I had difficulty following the instructions to turn on the error log. The gear icon in 14.04 has no 'Printer' in its menu (and 12.04 has 'Printers', not 'Printer'). Though once I explored 12.04 and realised that the intent was to use the standard dialog in System Settings, I got past that. It's a wiki, but it's an immutable page, so someone needs to fix it.

Revision history for this message
JohnWashington (ubuntu-johnwash) wrote :

I have the MX310 printer on loan again for a short time. I suspected that the behaviour, with the printer hanging up and requiring the power plug to be pulled to recover, while Ubuntu was fine, is perhaps due to a firmware error. After all, no matter what one throws at the printer, it shouldn't lock up, right? But I've downloaded the firmware update program (Windows and Mac only, grrr) using XP and found that the firmware is already at 1.040, Canon's latest version.

On XP the printer prints the example doc (supplied above) without incident, again using Libre Office.

Revision history for this message
JohnWashington (ubuntu-johnwash) wrote :

lpadmin -p MX310-series -o usb-unidir-default=true seems to fix the problem. Removing that (-R) and using instead lpadmin -p MX310-series -o usb-no-reattach-default=true the symptoms are as before.

Does this help? Are there further tests I can run?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Reported to CUPS upstream as https://www.cups.org/str.php?L4482

Changed in cups (Ubuntu):
status: Incomplete → Confirmed
Changed in cups (Ubuntu):
status: Confirmed → Triaged
tags: removed: apparmor
Revision history for this message
JohnWashington (ubuntu-johnwash) wrote :

Isn't this really a workaround, rather than a proper fix? Presumably when bi-directional comms are used there is useful info being returned by the printer, so now that it's prevented that will cause the printer to run slower or other problems will be ignored?

Will this be taken up with Canon's engineers, or were they not the people who wrote the driver?

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

This bug was fixed in the package cups - 1.7.5-3

---------------
cups (1.7.5-3) unstable; urgency=medium

  [ Didier Raboud ]
  * Add two USB quirk fixes for Canon MX310 and MX320 printers
    (LP: #1346868, #1369547)

  [ Jamie Strandboge ]
  * Update the apparmor-profile
    - move Ux to Cx -> third_party and provie a third_party child profile. In
      this manner, we can add some modest confinement (can't change MAC
      policy, change_profile or mount) but more importantly it allows us to
      specify peer=third_party to restrict where the strictly confined cups
      process can send signals (LP: #1370930)
    - allow r of /var/cache/samba/*.tdb (LP: #1371097)
    - allow r of /var/{cache,lib}/samba/printing/printers.tdb

 -- Didier Raboud <email address hidden> Tue, 30 Sep 2014 08:21:21 +0200

Changed in cups (Ubuntu):
status: Triaged → Fix Released
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.