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

From: <b.rowlingson_at_lancaster.ac.uk>
Date: Thu, 28 Aug 2008 10:55:09 +0200 (CEST)


I get this with R 2.7.2 (and 2.7.1, and 2.6.2, but NOT 2.4.0):

 > X11() # this one opens up okay
 > X11("foo")
 Error: Couldn't find per display information  $

and R crashes out back to my shell prompt.

If I do X11("foo") as a first command I get a meaningful error and my R prompt back:

> X11("foo")

Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, d$colortype, :

  unable to start device X11cairo
In addition: Warning message:
In X11("foo") : unable to open connection to X11 display 'foo'
>

So it only seems to be after a *successful* X11() call it that it crashes R.

Can't find anything in latest changes that refer to fixing this.

My system is Ubuntu 7.10 with R 2.7.2 from latest repository, also happens with an R 2.7.0 binary I've got hanging around compiled from source and also happens on other systems I've tried.

> sessionInfo()

R version 2.7.2 (2008-08-25)
i486-pc-linux-gnu

locale:
LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_ MONETARY=C;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=C;LC_ADDRESS=C;L
C_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 28 Aug 2008 - 08:58:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 28 Aug 2008 - 11:37:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive