Summary: | "Error: /unregistered in --run--" with --saved-pages-test | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Marcos H. Woehrmann <marcos.woehrmann> |
Component: | General | Assignee: | Ray Johnston <ray.johnston> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | sphinx.pinastri |
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- |
Description
Marcos H. Woehrmann
2014-02-21 14:31:37 UTC
This is not just a saved-pages-test problem but also occurs in clist mode. It is seen with --saved-pages-test because that forces clist mode. I am seeing that a pattern with transparency (id == 0x25b) is calling the gx_default_strip_tile_rectangle from gx_dc_pattern_fill_rectangle with the bits->data == NULL, and de-referencing rwidth and rheight which are not initialized. On linux these are 0 causing the 'unregistered' error. On Windows I see copying from garbage locations. Changing to use the gx_dc_pattern_trans procs by calling gx_set_pattern_procs_trans in pdf14_clist_begin_typed_image doesn't really help because these procs are made to write to the transparency buffers, not to the clist. The image_render_simple prepares the data for copy_portrait (in gxifast.c) which call gx_dc_default_fill_masked which breaks the mask down to calls to a rectangle which calls the (*(pdevc)->type->fill_rectangle). When the device is a clist, this probably needs to call fill_rectangle_hl_color. For this to work, we need some changes to support pattern hl colors since the clist playback and pdf14_fill_rectangle_hl_color only currently allow devn hl colors. Most of the files attached to the bug 693365 still fail with similar errors. I've tried the command line with all 5 files attached to bug 693365 and none of them give any errors for me. |