[R] Rcmdr X11 protocol error message
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Tue Aug 31 09:32:27 CEST 2004
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
More information about the R-help
mailing list