Subject: pkg/19726: gv displaying black on black
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 01/07/2003 09:59:08
>Number:         19726
>Category:       pkg
>Synopsis:       gv displaying black on black
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 07 07:00:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     TheMan
>Release:        1.6K (from 20021220, pkgsrc from 20021225)
>Organization:
none
>Environment:
	
System: NetBSD this 1.6K NetBSD 1.6K (ATATAT) #211: Fri Dec 20 12:32:28 EST 2002     andrew@this:/usr/src/sys/arch/i386/compile/ATATAT i386

>Description:

i was trying to look at a graph of the pkgs i have installed

	% ( lintpkgsrc -i ; audit-packages ) > pkgdepgraph.in
	% pkgdepgraph -clv pkgdepgraph.in > pkgdepgraph.dot
	% dot -Tps pkgdepgraph.dot > pkgdepgraph.ps
	% gv pkgdepgraph.ps

and all of a sudden gv came up in black on black (not an ac/dc
reference).  for a time i played around with installing older versions
of pkgdepgraph, gv, ghostscript, freetype2, and even png, but nothing
would make it normal (colored lines on white) again.

then i discovered that if i changed the following lines in the
postscript file

	%%BoundingBox: 35 35 33759 825
	%%PageBoundingBox: 36 36 33759 825

to

	%%BoundingBox: 35 35 31510 825
	%%PageBoundingBox: 36 36 31510 825

the colors would go back to normal.  then i discovered that if i
scaled the display back (gv -scale -2) it would also display properly.
then i discovered that gs could display it properly as well (the
colors were right, but the shape of the window was wrong).  that
convinced me that the problem was in gv (and in the older gv versions
that i tried reinstalling) and was not new.

it seems something in gv is overflowing and painting everything black
(yes, a rolling stones reference).

>How-To-Repeat:

step 1: install a lot of pkgs (> 350)

step 2: return to step 1 and install pkgdepgraph in case you missed it
the first time

step 3: use the pkg from step 2 to generate a graph with as much
information as possible (pkgdepgraph -cglov)

step 4: turn it into a postscript file

step 5: run gv on said postscript file

>Fix:

i dunno.  i've been poking at gv a bit, but i haven't gotten anywhere
yet.  perhaps someone else will have more luck?
>Release-Note:
>Audit-Trail:
>Unformatted: