Skip to content
Prev 25358 / 63424 Next

X11 help please

On 6/18/2007 7:56 AM, Hin-Tak Leung wrote:
I don't know the default, but I've been specifying 24 or 32 bit depth 
each time, and rgl is seeing 32 bit depth.
I do get a warning about a missing font when I run Xvfb; Simon Urbanek 
thought it was ignorable, but maybe not:

Could not init font path element /usr/X11R6/lib/X11/fonts/CID/

This happens before R is running, and sometimes again during the run.

I've now implemented XSetErrorHandler(R_X11Err) as Brian suggested, and 
this moves the error elsewhere:  R doesn't quit when it hits that error, 
but it dies later because rgl isn't handling its incomplete 
initialization properly.  I think that will be relatively easy to track 
down and fix, but I'm still left with two problems I don't know how to 
solve:

1.  Why am I getting this error in the first place?  Since things work 
on Linux, this may be a bug in the MacOSX implementation of Xvfb, but 
Google doesn't turn up other reports of that, so it's more likely an rgl 
problem.

2.  XSetErrorHandler() is a global setting.  If rgl sets it, then it 
will override the setting that X11() used.  Is there a way to retrieve 
the previous setting, so I can set it only temporarily?  There doesn't 
appear to be any XGetErrorHandler() function.

Duncan Murdoch