Bug 691087 - Error: IllegalAttributeValue
Summary: Error: IllegalAttributeValue
Status: NOTIFIED WONTFIX
Alias: None
Product: GhostPCL
Classification: Unclassified
Component: PCL interpreter (show other bugs)
Version: master
Hardware: Macintosh MacOS X
: P2 normal
Assignee: Marcos H. Woehrmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-22 09:53 UTC by Marcos H. Woehrmann
Modified: 2011-09-18 21:47 UTC (History)
0 users

See Also:
Customer: 120
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2010-01-22 09:53:38 UTC
The attached file cannot be read by GhostPCL head (r1063) or early versions.  Instead the following 
error is printed:

Warning interpreter exited with error code -992
Flushing to end of job
PCL XL error
    Subsystem:  KERNEL
    Error:      IllegalAttributeValue
    Operator:   SetColorSpace
    Position:   200
file position of error = 131289

  main/obj/pcl6 -sOutputFile=test.ppm -sDEVICE=ppmraw -dNOPAUSE 
./ricoh1357ex_1page_vector.spl

This file prints correctly on the newer HP printers I sent it to (P3005 and CP3505), older printers (4100 
and 4500) instead printed error messages.
Comment 1 Marcos H. Woehrmann 2010-01-22 09:54:06 UTC
Created attachment 5909 [details]
ricoh1357ex_1page_vector.spl
Comment 2 Hin-Tak Leung 2010-01-22 10:34:25 UTC
The palette data - for paletteDepth 2 (8-bit) gray, there should be 256 entries
rather than 48; OTOH, the image which follows has 4-bit color depth, which means
it expects 16 entries. 48 is just neither.

ubyte 1 ColorSpace // eGray=1
ubyte 2 PaletteDepth           
ubyte_array [ uint16 48             
0000   00 FF FE 0F 00 00 00 00 00 00 00 00 00 00 00 00    ................
0010   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0020   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

] PaletteData      
// Op Pos: 200  Op fOff: 21263  Op Hex: 6A  Level: 0
SetColorSpace 

Comment 3 Henry Stiles 2010-01-22 15:59:37 UTC
This does print on the HP Color Laserjet 4600 but I'm hesitant to attempt to
emulate the behavior on the HP.  It is obviously wrong with respect to the
specification.  HP probably does not check the palette data sizes and simply
continues.  Back to the customer for feedback.  Thanks for looking at this also,
Hin-Tak.
Comment 4 Marcos H. Woehrmann 2010-01-29 10:52:47 UTC
Customer has been notified. I'm closing this, will reopen if necessary.
Comment 5 Marcos H. Woehrmann 2011-09-18 21:47:31 UTC
Changing customer bugs that have been resolved more than a year ago to closed.