[R] Rcmdr X11 protocol error message

John Fox jfox at mcmaster.ca
Tue Aug 31 13:36:09 CEST 2004


Dear Michael,

A question: Do you observe these problems with tcltk in general or just with
the Rcmdr package? Is it possible for you to test a Tcl/Tk program outside
of R?

Regards,
 John

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Peter Dalgaard
> Sent: Tuesday, August 31, 2004 2:32 AM
> To: Michael Bibo
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] Rcmdr X11 protocol error message
> 
> Michael Bibo <mbibo at qldnet.com.au> writes:
> 
> > What's happening?
> >     Both Java and R are reading events from the X11 event loop ``at 
> > the same time''. As a result, R is reading events meant for 
> Java and 
> > vice-versa and bad things happen!
> > 
> >     There are two solutions:
> > 
> >         * use the Java graphics device which uses the Java graphics 
> > facilities to do the rendering;
> >         * don't run the GUI and the X11 device at the same time. 
> > 
> >     The second solution is clearly not ideal. What we can do is to 
> > compile the
> > X11 device code to be thread-safe. However, the same effect will be 
> > seen if we load another X11 event handler (e.g. the Tcl/Tk library).
> 
> I don't think that is the issue. The X11 device and Tk sit on 
> different connections to the X device, so they shouldn't be 
> seeing eachother's events (the event loops can starve 
> eachother though since they are multiplexed). I'd rather 
> suspect a race condition with the Tk code itself - sending 
> events to a window that is in the process of being destroyed 
> and things like that. Which Tk version are we talking about, 
> by the way?
> 
> -- 
>    O__  ---- Peter Dalgaard             Blegdamsvej 3  
>   c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
>  (*) \(*) -- University of Copenhagen   Denmark      Ph: 
> (+45) 35327918
> ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: 
> (+45) 35327907
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html




More information about the R-help mailing list