[gs-bugs] [Bug 692234] Floating point exception with the x11cmyk device

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Tue Jul 19 19:56:45 UTC 2011


http://bugs.ghostscript.com/show_bug.cgi?id=692234

Henry Stiles <henry.stiles at artifex.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|michael.vrhel at artifex.com   |chris.liddell at artifex.com

--- Comment #13 from Henry Stiles <henry.stiles at artifex.com> 2011-07-19 19:56:42 UTC ---
(In reply to comment #12)
> I think I found why the components[] array only has one entry.
> 
> I added a break point at gx_imager_dev_ht_install().
> 
> When pspcl6 -sDEVICE=x11cmyk calls gx_imager_dev_ht_install(), the dev arg is
> DeviceGray, not DeviceCMYK:
> 
> (gdb) p dev->color_info
> $6 = {max_components = 1, num_components = 1, polarity =
> GX_CINFO_POLARITY_ADDITIVE, 
>   depth = 1 '\001', gray_index = 0 '\000', max_gray = 1, max_color = 0,
> dither_grays = 2, 
>   dither_colors = 1, anti_alias = {text_bits = 1, graphics_bits = 1}, 
>   separable_and_linear = GX_CINFO_SEP_LIN, comp_shift = '\000' <repeats 63
> times>, 
>   comp_bits = "\001", '\000' <repeats 62 times>, comp_mask = {1, 0 <repeats 63
> times>}, 
>   cm_name = 0xb555cd "DeviceGray", opmode = GX_CINFO_OPMODE_NOT, process_comps
> = 0, 
>   black_component = 0}
> 
> so the language_switch build appears to set its device, based on -sDEVICE, too
> late.

Revisiting this one sorry to leave it open so long X11 is not customer critical
and doesn't get attention like other devices.

The first call to gx_imager_dev_ht_install is for the null device which should
be gray.  The problem I see with this file is the new color management does not
work properly with Xfonts.  This patch should fix the problem it does for me,
let us know if it doesn't work for you.


diff --git a/gs/base/gdevxres.c b/gs/base/gdevxres.c
index 3d4a5ed..e78abc7 100644
--- a/gs/base/gdevxres.c
+++ b/gs/base/gdevxres.c
@@ -108,8 +108,8 @@ ZapfChancery-MediumItalic:-Adobe-ITC Zapf
Chancery-Medium-I-Normal--"),
          "Symbol: -Adobe-Symbol-Medium-R-Normal--"),

     rbool("useBackingPixmap", "UseBackingPixmap", useBackingPixmap, True),
-    rbool("useExternalFonts", "UseExternalFonts", useXFonts, True),
-    rbool("useFontExtensions", "UseFontExtensions", useFontExtensions, True),
+    rbool("useExternalFonts", "UseExternalFonts", useXFonts, False),
+    rbool("useFontExtensions", "UseFontExtensions", useFontExtensions, False),
     rbool("useScalableFonts", "UseScalableFonts", useScalableFonts, True),
     rbool("useXPutImage", "UseXPutImage", useXPutImage, True),
     rbool("useXSetTile", "UseXSetTile", useXSetTile, True),




I don't know if we want to dig into this because we should be deprecating
Xfonts this release.  I'll assign it to Chris and let him decide what's best. 
Chris assign it back to me if more analysis is needed.

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list