Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY

From: <p.dalgaard_at_biostat.ku.dk>
Date: Sat, 27 Oct 2007 02:50:17 +0200 (CEST)


Hin-Tak Leung wrote:
> Peter Dalgaard wrote:

>> brechbuehler_at_gmail.com wrote:
>>> Full_Name: Christian Brechbuehler
>>> Version: 2.4.1, 2.5.1, OS: Ubuntu GNU/Linux
>>> Submission from: (NULL) (24.61.47.236)
>>>
>>>

> <snipped>
>>> Example (start R without DISPLAY from bash):
>>>   % DISPLAY=3D R
>>>   > x11("localhost:11.0")                        # this is my valid=20
>>> DISPLAY
>>>   Error: Couldn't find per display information
>>>   %

> <snipped>
>>>  =20
>> I see this on Fedora 7 too. I suspect that the earlier report was=20
>> thought to be Mac specific.

> <snipped>

>
> I was experimenting with xvfb last week and didn't see the catatrophic =

> problem like that, so I tried again. Is it possible that this has=20
> already been fixed in R 2.6.0 ? (I am on fedora 7, x86_64 as well).

>

> ------------------------------------------
> $ export -n DISPLAY
>

> $ R
> R version 2.6.0 (2007-10-03)
> ...
> > x11()
> Error in X11(display, width, height, pointsize, if (is.null(gamma)) 1=20
> else gamma, :
> unable to start device X11
> In addition: Warning message:
> In x11() : unable to open connection to X11 display ''
> > q()
> Save workspace image? [y/n/c]: n
> $ export DISPLAY=3D
> $ R
> R version 2.6.0 (2007-10-03)
> ...

> > x11()
> Error in X11(display, width, height, pointsize, if (is.null(gamma)) 1=20
> else gamma, :
> unable to start device X11
> In addition: Warning message:
> In x11() : unable to open connection to X11 display ''
> > q()
> Save workspace image? [y/n/c]: n
> --------------------------------------------------
>
You need x11() with a valid display to trigger the bug:

[pd_at_titmouse2 BUILD]$ ssh -Y 192.168.1.10 pd_at_192.168.1.10's password:
Last login: Sat Oct 27 02:40:16 2007 from 192.168.1.11 [pd_at_janus ~]$ echo $DISPLAY
localhost:10.0
[pd_at_janus ~]$ DISPLAY=3D R -q
 > x11("localhost:10.0")
Error: Couldn't find per display information [pd_at_janus ~]$ uname -a
Linux janus 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 20:47:39 EDT 2007 x86_64=20 x86_64 x86_64 GNU/Linux
[pd_at_janus ~]$ cat /etc/issue
Fedora release 7 (Moonshine)
Kernel \r on an \m

--=20

   O__  ---- Peter Dalgaard             =D8ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327=
918
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk)                  FAX: (+45) 35327=
907

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 27 Oct 2007 - 00:54:03 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 Tue 30 Oct 2007 - 03:46:12 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.