Your message dated Fri, 31 Mar 2006 15:25:15 -0700
with message-id <[EMAIL PROTECTED]>
and subject line close #65251
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: gs-aladdin
Version: 5.50-8
gs crashes when used with vncserver: there seemed to be too few colors
for a colorcube and its switched to grayscale (somewhere in
gdevxini.c) , but the color lookup function still tried to use a color
cube. This patch does it for me (maybe someone forward it to an
upstream maintainer? i'm not in any gs mailinglist -- thank you :)
--- gdevx.c Fri Jul 17 16:31:27 1998
+++ ../gs-aladdin-5.50-xx/gdevx.c Mon Jun 5 20:58:28 2000
@@ -663,16 +663,27 @@
#endif
/* Check the dither cube/ramp. */
if (xdev->dither_colors) {
- int size = xdev->color_info.dither_colors;
- int size3 = size * size * size;
+ int size;
+ int size3;
+ int step;
int i;
- for (i = 0; i < size3; ++i)
+ if (xdev->color_info.num_components == 1) {
+ size = xdev->color_info.dither_grays;
+ size3 = size;
+ step = (size + 1) * size + 1; /* gray only */
+ } else {
+ size = xdev->color_info.dither_colors;
+ size3 = size * size * size;
+ step = 1;
+ }
+ for (i = 0; i < size3; ++i) {
if (xdev->dither_colors[i] == color) {
+ int rgb_index = i * step;
uint max_rgb = size - 1;
- unsigned long
- r = i / (size * size), g = (i / size) % size, b = i % size;
-
+ unsigned long r = rgb_index / (size * size);
+ unsigned long g = (rgb_index / size) % size;
+ unsigned long b = rgb_index % size;
/*
* See above regarding the choice of color mapping algorithm.
*/
@@ -681,6 +692,7 @@
prgb[2] = b * gx_max_color_value / max_rgb;
goto found;
}
+ }
}
/* Finally, search the list of dynamic colors. */
if (xdev->dynamic_colors) {
-- System Information
Debian Release: potato
Kernel Version: Linux tarzan 2.2.13ac3 #5 SMP Mit Feb 2 10:04:18 CET 2000 i686
unknown
Versions of the packages gs-aladdin depends on:
ii libc6 2.1.3-10 GNU C Library: Shared libraries and Timezone
ii libpaperg 1.0.3-13 Library for handling paper characteristics [
ii libpng2 1.0.5-1 PNG library - runtime
ii svgalib-dummyg 1.4.0-2 Dummy replacement for svgalib1
ii xlib6g 3.3.6-7 shared libraries required by X clients
ii zlib1g 1.1.3-5 compression library - runtime
^^^ (Provides virtual package libz1)
svgalibg1 Not installed or no info
--- End Message ---
--- Begin Message ---
Tested, not valid anymore. See the full communication with the original bug
reporter below.
> > > > Hello,
> > > >
> > > > I came across this bug you reported way back in Jun 2000
> > > > (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=65251). I
> > > > realize that it's been a while and you may not even be at this
> > > > email address anymore. However, it's an old bug report at 5 years
> > > > and 262 days and counting and I really would like to know if it's
> > > > still valid.
> > >
> > > wow... long time ago... :-)
> > >
> > > Actually, this bug report may still be valid... I think at that
> > > time I used a vnc server with only 8 colours, and that made gs
> > > crash. Now I use a vnc server with 16 bits colour depth, and its
> > > scaled down for remote clients. Maybe there are no users left
> > > running X with so few colors... then its ok to close the bug I
> > > think... In any case, I can't test it any more, and the bug might
> > > have been fixed upstream long time ago.
> > >
> > > >
> > > > Regards,
> > > >
> > > > Alex.
> > >
> > > cheers
> > > Andreas
> >
> > Andreas,
> >
> > Thank you very much for answering to my belated request :). I wonder
> > if I could run vncserver in 8-bit mode on my machine and try
> > connecting to it from a client elsewhere to test for this bug. What
> > activity were you performing that caused the crash?
>
> OK, it should be possible to test it with something like the following
> setup:
>
> Start the vnc server:
>
> $ vncserver -pixelformat RGB332
>
> Start the vnc viewer
>
> $ xvncviewer localhost:1
>
> In the viewer window, start gs (with gunzip'ed tiger.ps example file):
>
> $ gs /tmp/tiger.ps
>
> It works for me with a current gs-esp (the only one I have installed
> atm.), so it seems the bug can be closed :-), but maybe you should try
> with gs-gpl too.
>
> Thank you for working on Debian bugs!!
>
> cheers
> Andreas
>
> PS: I'll be offline for 2 weeks (skiing in Austria :-)
--- End Message ---