LaserJet 1022n locks up after one print operation

Bug #788631 reported by frednet
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

I'm running hplip-3.11.5 on Gentoo ~x86_64 and I'm having major problems with my LaserJet 1022n. The first page I print goes ok but any subsequent print operation causes the printer to lock up and flash all it's LEDs. If I restart cups and switch the printer off and on it sometimes works again but normally requires a reboot. When this happens I can no longer access the printers web page until the printer is powered off then on.
The nearest I get to an error is the following
D [26/May/2011:15:10:36 +0100] [Job 893] prnt/backend/hp.c 745: ERROR: open device failed stat=12: hp:/net/HP_LaserJet_1022n?ip=131.227.76.106
I've contacted the cups developers and they claim it's nothing to do with them but an hplip problem.

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Please post us the out-put of "hp-check -t" command.

Thanks,
Goutam Kodu

Changed in hplip:
status: New → In Progress
Revision history for this message
frednet (andrew-walker27) wrote :

I've attached a text file with the results, the problem is the 1022n, the rest are just switched off but work ok. The printer was locked up but connected when I ran hp-check -t but when I cycle the power to the printer again and run hp-check -t it comes back up as you can see here.

HP_LaserJet_1022n
-----------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_1022n?ip=131.227.76.106
PPD: /etc/cups/ppd/HP_LaserJet_1022n.ppd
PPD Description: HP LaserJet 1022n zjs, hpcups 3.11.3a, requires proprietary plugin
Printer status: printer HP_LaserJet_1022n disabled since Thu 26 May 2011 15:29:23 B/usr/libexec/cups/backend/hp failed
warning: Optional plug-in status: Not installed
Communication status: Good

Is the propriety plugin essential? What exactly does it do?

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

HP_LaserJet_1022n requires propriety plugin to function correctly. Please install the plugin files. The same you can do by running command "hp-plugin".

Let us know on the same.

Thanks
Goutam Kodu

Revision history for this message
frednet (andrew-walker27) wrote :

Well I've installed the plugin but the same problem still continues. I get no errors at all and can access the printers web page perfectly until I try to print and then nothing, the printer locks up solid.

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Can you provide us some more debug information.

Please follow the below steps to provide the same

1.Open the file /etc/cups/cupsd.conf in write permissions.
$su -c "vim /etc/cups/cupsd.conf "
 Change LogLevel warn to LogLevel debug and below that line add hpLogLevel 15.

2. Restart the cups
$su -c"/etc/init.d/cups restart"

3. Enter the hplip source folder (hplip-3.11.5) and open the file io/hpmud/hpmudi.h and uncomment the line containing this
//#define HPMUD_DEBUG and save it.

4.Open the terminal and change directory to hplip_source_directory (hplip-3.11.5) and run "make" and su -c "make install" .

5.make the log file empty
$su -c "cat /dev/null > /var/log/messages (or) syslog "
$su -c"cat /dev/null > /var/log/cups/error_log

6. Reproduce the bug.

7 Copy the contents of log file in text file and attach me that file
$su -c "cat /var/log/messages (or) syslog > debug.txt"
$su -c"cat /var/log/cups/error_log > cups_log.txt

Attach me the debug.txt and cups_log.txt file.

Sorry for having you to do so much of work. Please let us know if you find any difficulty in obtaining the debug information.

Thanks & Regards,
Goutam Kodu

Revision history for this message
frednet (andrew-walker27) wrote :

I'm having a problem with debug info as I'm running Gentoo and there is no debug flag available with the hplip package. I've added the dbug flag to cups and rebuilt it, I'll see if I get any info but the fault is rather intermittent. I've also reverted dbus to an older version due to other issues but I don't think that is connected but I'll see.

Revision history for this message
Shane Rice (shane2peru) wrote :

Ok, i'm also very frustrated with this same exact problem. I had the same problem with PCLOS (and thought it was them) swapped over to Kubuntu and have the same problem. This appears to be a cross-distro problem, which would point back to the driver more than likely. I have also included my hp-check -t file. I started down the debugging trail hoping to find a solution to this very big problem. I got to the step that I would remake the driver. I get this error:

make: *** No targets specified and no makefile found. Stop.

Perhaps I didn't understand something. I have the tarball downloaded and un-packed, found that file modified it and was in the hplip-3.11.5 directory when I ran make. I didn't see any other directory, and no 'make' file anywhere?? I would be very happy to nail this bug to a wall and get this fixed as I use my printer on a very very regular basis. Please get back to me and let me know what to do. Thanks!!!

Shane

Revision history for this message
Shane Rice (shane2peru) wrote :

On Kubuntu, I'm also running 64bit, 11.04, however on PCLOS I was only running x86 latest up to date.

Shane

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Prior to run make and make install you have to run the configure script . Please follow the link http://hplipopensource.com/hplip-web/install/manual/distros/ubuntu.html for more help on how to install hplip-3.11.5 in Ubuntu / Kubuntu.

Thanks & Regards,
Goutam Kodu

Revision history for this message
Shane Rice (shane2peru) wrote :

Ok, thanks for that link, it has been a while since I compiled stuff, and I had forgotten about configure. :) Everything compiled nicely, I reproduced the error on the first attempt to print. I forgot to clear the log files before reproducing the error, so I manually went in and deleted a million entries that were seeming irrelevant in the debug.txt file. I think I left a few. The log file was FULL or repetitive printer errors even without the debug stuff. At any rate, I'm attaching those two log files.

Revision history for this message
Shane Rice (shane2peru) wrote :

And the other file.

Shane

Revision history for this message
frednet (andrew-walker27) wrote :

Just to confuse everyone further I've just had exactly the same problem with a Mac using Inkscape! I suspect the bug actually lies with the print application that is used by Inkscape as it is the same as the one used by gerbv which also shows up this bug and is also used by Inkscape on the Mac. I'm not sure what the package is but it looks gtk based. I'm also wondering if it is related to printer memory as it only seems to affect large vector graphic documents but not very simple ones which seem to print ok.

Revision history for this message
Shane Rice (shane2peru) wrote :
Download full text (7.7 KiB)

D [06/Jul/2011:10:38:27 -0500] PID 16076 (/usr/lib/cups/filter/pstopdf) exited with no errors.
D [06/Jul/2011:10:38:27 -0500] [Job 21] Filetype: PDF
D [06/Jul/2011:10:38:27 -0500] [Job 21] Driver does not understand PDF input, converting to PostScript
D [06/Jul/2011:10:38:27 -0500] [Job 21] Storing temporary files in /var/spool/cups/tmp
D [06/Jul/2011:10:38:27 -0500] PID 16077 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [06/Jul/2011:10:38:27 -0500] [Job 21] Starting process "pdf-to-ps" (generation 1)
D [06/Jul/2011:10:38:27 -0500] [Job 21] Filetype: PostScript
D [06/Jul/2011:10:38:27 -0500] [Job 21] Reading PostScript input ...
D [06/Jul/2011:10:38:27 -0500] [Job 21] --> This document is DSC-conforming!
D [06/Jul/2011:10:38:27 -0500] [Job 21] Job claims to be DSC-conforming, but "%%BeginProlog" was missing before first line with another"%%BeginProlog" comment (is this a TeX/LaTeX/dvips-generated PostScript file?). Assuming start of "Prolog" here.
D [06/Jul/2011:10:38:27 -0500] [Job 21] Inserting option code into "Prolog" section.
D [06/Jul/2011:10:38:27 -0500] [Job 21]
D [06/Jul/2011:10:38:27 -0500] [Job 21] -----------
D [06/Jul/2011:10:38:27 -0500] [Job 21] Found: %%BeginProlog
D [06/Jul/2011:10:38:27 -0500] [Job 21] Found: %%EndProlog
D [06/Jul/2011:10:38:27 -0500] [Job 21]
D [06/Jul/2011:10:38:27 -0500] [Job 21] -----------
D [06/Jul/2011:10:38:27 -0500] [Job 21] Found: %%BeginSetup
D [06/Jul/2011:10:38:27 -0500] [Job 21] Found: %%EndSetup
D [06/Jul/2011:10:38:27 -0500] [Job 21] Inserting PostScript code for CUPS' page accounting
D [06/Jul/2011:10:38:27 -0500] [Job 21] Inserting option code into "Setup" section.
D [06/Jul/2011:10:38:27 -0500] [Job 21]
D [06/Jul/2011:10:38:27 -0500] [Job 21] -----------
D [06/Jul/2011:10:38:27 -0500] [Job 21] New page: %%Page: 1 1
D [06/Jul/2011:10:38:27 -0500] [Job 21]
D [06/Jul/2011:10:38:27 -0500] [Job 21] Found: %%BeginPageSetup
D [06/Jul/2011:10:38:27 -0500] [Job 21] Inserting option code into "PageSetup" section.
D [06/Jul/2011:10:38:27 -0500] [Job 21] New page found but previous not printed, print it now.
D [06/Jul/2011:10:38:27 -0500] [Job 21] Found: %%Page: 2 2
D [06/Jul/2011:10:38:27 -0500] [Job 21] --> Output goes directly to the renderer now.
D [06/Jul/2011:10:38:27 -0500] [Job 21]
D [06/Jul/2011:10:38:27 -0500] [Job 21]
D [06/Jul/2011:10:38:27 -0500] [Job 21] Starting renderer with command: "foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p9 -T3 -m1 -s7 -d1 -n1 "
D [06/Jul/2011:10:38:27 -0500] [Job 21] Starting process "kid3" (generation 1)
D [06/Jul/2011:10:38:27 -0500] [Job 21] Starting process "kid4" (generation 2)
D [06/Jul/2011:10:38:27 -0500] [Job 21] Starting process "renderer" (generation 2)
D [06/Jul/2011:10:38:27 -0500] [Job 21] JCL: 12345X@PJL
D [06/Jul/2011:10:38:27 -0500] [Job 21] <job data>
D [06/Jul/2011:10:38:27 -0500] [Job 21]
D [06/Jul/2011:10:38:27 -0500] [Job 21]
D [06/Jul/2011:10:38:27 -0500] [Job 21] -----------
D [06/Jul/2011:10:38:27 -0500] [Job 21] New page: %%Page: 2 2
D [06/Jul/2011:10:38:27 -0500] [Job 21] Found: %%Page: 2 2
D [06/Jul/2011:10:38:27 -0500] [Job 21] --> Output goes to the FIFO buffer now.
D [06/Jul/2011:10:38:27 -0500] [Job 21]
D [...

Read more...

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi Shane,

I checked out debug.txt and cups log files. I did not find any errors or fails in them. The print job is going through the cups filters and hpcups filter and exited without errors . The hp backend also exited without errors. That clears me that print job is going perfectly fine to the printer. There could be something at the printer side either memory problem or something.
As now you have installed latest hplip-3.11.5. Can you post us the "hp-check -t" output.
If you have a windows machine with you, can you connect the device to windows machine and check if problem is there on windows.

Thanks & Regards,
Goutam Kodu

Revision history for this message
Shane Rice (shane2peru) wrote :
Download full text (8.2 KiB)

Ok, here is the hp-ckeck output:

hp-check -t

HP Linux Imaging and Printing System (ver. 3.11.5)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to
determine if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already
built HPLIP supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile-
and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux shanekub 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Distribution:
ubuntu 11.04

Checking Python version...
OK, version 2.7.1 installed

Checking PyQt 4.x version...
OK, version 4.8.3 installed.

Checking for CUPS...
Status: scheduler is running
Version: 1.4.6
error_log is set to level: debug

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.1

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Py...

Read more...

Revision history for this message
frednet (andrew-walker27) wrote :

Don't know if there is anything useful here from cups error log but I'll post it anyway just in case.

D [07/Jul/2011:11:24:38 +0100] [Job 960] envp[27]="FINAL_CONTENT_TYPE=printer/HP_LaserJet_1022n"
D [07/Jul/2011:11:24:38 +0100] [Job 960] Start rendering...
D [07/Jul/2011:11:24:38 +0100] [Job 960] Processing page 1...
D [07/Jul/2011:11:24:38 +0100] [Job 960] STATE: +connecting-to-device
D [07/Jul/2011:11:24:38 +0100] [Job 960] Inconsistency detected by ld.so: dl-deps.c: 622: _dl_map_object_deps: Assertion `nlist > 1' failed!
D [07/Jul/2011:11:24:38 +0100] [Job 960] STATE: -connecting-to-device
D [07/Jul/2011:11:24:38 +0100] [Job 960] STATE: -media-empty-error,media-jam-error,hplip.plugin-error,cover-open-error,toner-empty-error,other
D [07/Jul/2011:11:24:38 +0100] [Job 960] ready to print
D [07/Jul/2011:11:24:38 +0100] [Job 960] End of messages
D [07/Jul/2011:11:24:38 +0100] [Job 960] printer-state=3(idle)
D [07/Jul/2011:11:24:38 +0100] [Job 960] printer-state-message="ready to print"
D [07/Jul/2011:11:24:38 +0100] [Job 960] printer-state-reasons=none

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.