hplip crashes when printing

Bug #1746237 reported by Deepinthekernel on 2018-01-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Shivani Mandora

Bug Description

This is hplip-3.17.11 but we seemed to have the same problem with older versions under both Ubunti 16.04 and 14.04.

This is a network printer


All jobs (or some jobs) or intermittently jobs go to status stopped and do not print.

Eventually we traced it down to an error in the log:

The gist of the error was an assertion failure in Mode10.cpp line 186 ASSERT (curPixel <= lastPixel);

It may be significant that the job that generated the error was a small range of pages from a large document printed from evibce to a network printer.


Yes there is a workaround as follows:

cd hplip-3.17.11
(You should find this in the same directory as the hplip-3.17.11.run from which you did the installation.

vim ./prnt/hpcups/Mode10.cpp

comment out lines 186 and 210 bith of which contain similar ASSERT statements, by prefixing the line with //

save the file.

sudo make install
service cups restart

(or some such similar way to restart the cups demon)

We had the same issue wuth hplip 3.14 on Ubuntu 14.04 installed from synaptic.

The workaround worked on this version of hplip for both Ubuntu 14.04 and 16.o4


The attached file when submitted with lp caused the problem everysingle time with the unmodified hplip.

Shivani Mandora (shivani1709) wrote :


I have checked this issue in Marlin printer and printing is happening for the attached pdf file as expected.

HPLIP Driver version: 3.17.11
Distro version: Ubuntu 16.04

Can you please attach the below log files for further analysis?

1)output of hp-check -rt
2)cups log
path : /var/log/cups/error_log
To enable cups log, go to /etc/cups/cupsd.conf and change loglevel from warn to debug2 in cupsd.conf file and then restart the cups using the command: sudo service cups restart
3) system log
path : /var/log/syslog

Shivani Mandora

Changed in hplip:
assignee: nobody → Shivani Mandora (shivani1709)
status: New → In Progress
Deepinthekernel (mark-winder4) wrote :

Right, so I did the following:
0) Printed the file and verified I currently have no problem. Time about 16.40
   You will see that in the log.
1) Change log level to debug2
2) cd ~/hp/hplip-3.17.11
   reverse changes I made to Mode10.cpp (So now I am using the code as supplied.)
   sudo make install
   sudo service cups stop
   sudo service cups start

output of hp-check -rt attached as file1.txt
Note: you should ignore the printer Officejet-6500-E709n as this device is used for scanning only and the printer part of it is broken.
You should look at HP-Officejet-7500-E910

Right now I shall print the file with lp - the file is called problem.pdf
It doesnt seem to have come out, but 1 page has. Time is Mon 5 Feb 17:00:31 GMT 2018 FYI.

Hmm, seems I need to make multiple posts for multiple files... Ok, I'll do that

Deepinthekernel (mark-winder4) wrote :

Right, next the log file

Deepinthekernel (mark-winder4) wrote :

The file /var/log/syslog is dated 16.09 yesterday, so I presume no entries.

I note that the assertion failure did occur in the cups error log.

U hope that is some help,


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

Other bug subscribers