R-alpha: Image: Graphics on X11: color allocation error

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Tue, 3 Dec 1996 11:28:43 +1300 (NZDT)


From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Date: Tue, 3 Dec 1996 11:28:43 +1300 (NZDT)
Message-Id: <199612022228.LAA17483@stat13.stat.auckland.ac.nz>
To: Martin Maechler <maechler@stat.math.ethz.ch>
Subject: R-alpha: Image: Graphics on X11:	color allocation error
In-Reply-To: <9612021330.AA07500@>

Martin Maechler writes:
 > Try the following
 > 
 > > source(system.file("demos/graphics", "image"))
 > 
 > The first  (greenish) is drawn nicely,
 > during the drawing of the 2nd image, I get :
 > 
 > Error: color allocation error

This is a known problem.  Because redoing the entire graphics system
is "on the list" I was letting it slide.  The real problem is that all
colors in use by the device driver should be freed when a new plot is
started.  This is really just a matter of maintaining a list of
allocated colors and cycling through it at the start of each plot
freeing everything.

Since it appears to be affecting people I will give it a higher
priority.

In the mean time, a quick work around is to restart the drvice driver
with x11() when the the problem occurs.
	Ross
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-