Comment 9 for bug 288666

Revision history for this message
Stefan Lucke (stefan-lucke) wrote :

I made some progress in search te cause of the hang.
I modified 'prnt/backend/hp.c' in a way so that all data written to the network printer
is written to a dump file too. This happens even when timeout happens.
By this I can 'nc printer_host_name 9100 < dump_file' to reproduce some effects.
The printer hangs when doing 'nc hp-c7280 9100 < hplip-trace-03-orig-hangs.dmp'
Interresting is that, if I cut out the first sheet of paper from the dump file, 2nd
sheet gets printed fine.

Fix is by treating DATA_FORMAT for printer as RASTER_LINE instead of RASTER_STRIP
and optimizing all white/blank transmissing by a skip command.
'nc hp-c7280 9100 < hplip-trace-03-patched-ok.dmp' prints fine.

Patch to fix it for me is:
http://lucke.in-berlin.de/hplip-c7280/hplip-trace-03-patched-ok.dmp

The last and final mod to cure the hang was:
if (0) //skipcount >= 200)

You'll find above mentioned dump files at:
http://lucke.in-berlin.de/hplip-c7280/