[R] Use of xvfb : X11 cannot allocate additional graphics colors. Consider using colortype="pseudo.cube" or "gray"

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Sep 12 20:35:28 CEST 2006


Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:

> It's a known problem.  Run the X11 device with the arguments stated,
> as it says ....

Alternatively, try playing with the pixel depth of xvfb. I think this
mainly happens with 8-bit displays. 
 
> On Tue, 12 Sep 2006, Gael Even wrote:
> 
> > Hi,
> > 
> > I use R in remote access on a Debian server.
> > I need X11() to create graphical things so I use xvfb-run (Virtual X server 
> > environnement) R to allowing X11() capabilities to R.
> > An other technique is to connect in shh -X to execute my R script.
> > With the connection ssh -X, my R script is well executed. BUT when I use Xvfb, 
> > some graphics are created but an error occured and  stop the script.
> > here the error :
> > 
> > " X11 cannot allocate additional graphics colors. Consider using 
> > colortype="pseudo.cube" or "gray" "
> > 
> > There is obviously a problem witth xvfb but I can't not resolve it
> > please help me!
> > 
> > Thank you
> > 
> > Gael Even


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list