Skip to content
Prev 29873 / 63462 Next

(PR#12628) Second X11 call with invalid display crashes R after first X11 call.

This is a different issue, and one that I am unable to reproduce.  If I 
start PUTTY with X11 forwarding and no X server, I get the usual message 
from X11().

As I understand it, when running available.packages() you are getting a 
call to the tcltk version of chooseCRANmirror().  Again that works 
correctly for me, falling back to a text menu.  This is related to whether 
capabilities("X11") returns TRUE for X11, and that does attempt to open a 
display via in_R_X11_access.

I think this has to be something specific to Bill's X setup.  Note that we 
don't even always set X11 handlers (Rf_setX11Display makes it optional), 
so I don't really want to follow your suggestion and set a handler 
unconditionally.  If we were to go that route, I think setting a separate 
simple handler before the calls to XOpenDisplay in X11_Open and 
in_R_X11_access would be more appropriate.  I'll send Bill a version that 
does that for testing, as I cannot reproduce this.

Rf_setX11Display is always called with setHandlers=TRUE from R itself. 
This seems lost in the mists of time (from the original version of 
src/modules/X11/devX11.h in 2001) so unless anyone knows of a package that 
uses it perhaps we should remove the option.
On Thu, 28 Aug 2008, Bill Dunlap wrote:

            

  
    
Message-ID: <alpine.LFD.1.10.0809011021550.9719@gannet.stats.ox.ac.uk>
In-Reply-To: <Pine.GSO.4.56.0808281359120.16731@devsun3201.insightful.com>