Hi,
This has been cross-posted on http://stackoverflow.com/q/10045109

While plotting to a window in R, X11 kept hanging. These steps reproduce the error.
plot(c(1,2,3),c(4,5,6))

X11 window becomes active. Press [Apple]+[Tab] to go back to the terminal window.
dev.new()

Second X11 window becomes active. Press [Apple]+[Tab] to go back to the terminal window.
Making sure you are in the terminal and you are not holding down any 
keys, press [Apple]+[Tab] again to try to go to X11. The X11 is no 
longer responding!
Setup details: I am on OSX 10.7.3 with R and xorg-* installed through Macports. I can give  more details if they will be helpful. 


The screenshot of the Activity monitor is here: http://i.imgur.com/8JusD.png?1

The R version is 2.14.1 (2011-12-22)
Platform: x86_64-apple-darwin11.0.0/x86_64 (64-bit)


The sampling of the process is at http://pastebin.com/3rXM2BBn

	[[alternative HTML version deleted]]

