Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY
The problem is that the XtOpenDisplay call did not specify the display. Easily fixed On Sat, 27 Oct 2007, [EMAIL PROTECTED] wrote: Hin-Tak Leung wrote: Peter Dalgaard wrote: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] BUILD]$ ssh -Y 192.168.1.10 [EMAIL PROTECTED]'s password: Last login: Sat Oct 27 02:40:16 2007 from 192.168.1.11 [EMAIL PROTECTED] ~]$ echo $DISPLAY localhost:10.0 [EMAIL PROTECTED] ~]$ DISPLAY=3D R -q x11(localhost:10.0) Error: Couldn't find per display information [EMAIL PROTECTED] ~]$ 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 [EMAIL PROTECTED] ~]$ 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 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327= 907 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY
Peter Dalgaard wrote: snipped You need x11() with a valid display to trigger the bug: [EMAIL PROTECTED] BUILD]$ ssh -Y 192.168.1.10 [EMAIL PROTECTED]'s password: Last login: Sat Oct 27 02:40:16 2007 from 192.168.1.11 [EMAIL PROTECTED] ~]$ echo $DISPLAY localhost:10.0 [EMAIL PROTECTED] ~]$ DISPLAY= R -q x11(localhost:10.0) Error: Couldn't find per display information [EMAIL PROTECTED] ~]$ uname -a Linux janus 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 20:47:39 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux [EMAIL PROTECTED] ~]$ cat /etc/issue Fedora release 7 (Moonshine) Kernel \r on an \m Agh, sorry. Yes, x11() (with or without $DISPLAY set) doesn't die catatrophically, x11(validinfo) does. HTL __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY
Hin-Tak Leung wrote: Peter Dalgaard wrote: snipped You need x11() with a valid display to trigger the bug: [EMAIL PROTECTED] BUILD]$ ssh -Y 192.168.1.10 [EMAIL PROTECTED]'s password: Last login: Sat Oct 27 02:40:16 2007 from 192.168.1.11 [EMAIL PROTECTED] ~]$ echo $DISPLAY localhost:10.0 [EMAIL PROTECTED] ~]$ DISPLAY= R -q x11(localhost:10.0) Error: Couldn't find per display information [EMAIL PROTECTED] ~]$ uname -a Linux janus 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 20:47:39 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux [EMAIL PROTECTED] ~]$ cat /etc/issue Fedora release 7 (Moonshine) Kernel \r on an \m Agh, sorry. Yes, x11() (with or without $DISPLAY set) doesn't die catatrophically, x11(validinfo) does. HTL The culprit would seem to be this bit of devX11.c 1302xtdpy = XtOpenDisplay(app_con, NULL, r_x11, R_x11, 1303 NULL, 0, zero, NULL); 1304toplevel = XtAppCreateShell(NULL, R_x11, The 2nd arg to XtOpenDisplay is listed as display_string, so passing a NULL here seems like trouble when the default ways of finding the display do not work. Looks like a fix is to insert p instead of NULL. (Tested rudimentarily.) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY
Hin-Tak Leung wrote: Peter Dalgaard wrote: snipped You need x11() with a valid display to trigger the bug: [EMAIL PROTECTED] BUILD]$ ssh -Y 192.168.1.10 [EMAIL PROTECTED]'s password: Last login: Sat Oct 27 02:40:16 2007 from 192.168.1.11 [EMAIL PROTECTED] ~]$ echo $DISPLAY localhost:10.0 [EMAIL PROTECTED] ~]$ DISPLAY=3D R -q x11(localhost:10.0) Error: Couldn't find per display information [EMAIL PROTECTED] ~]$ uname -a Linux janus 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 20:47:39 EDT 2007=20 x86_64 x86_64 x86_64 GNU/Linux [EMAIL PROTECTED] ~]$ cat /etc/issue Fedora release 7 (Moonshine) Kernel \r on an \m Agh, sorry. Yes, x11() (with or without $DISPLAY set) doesn't die catatrophically, x11(validinfo) does. HTL The culprit would seem to be this bit of devX11.c 1302xtdpy =3D XtOpenDisplay(app_con, NULL, r_x11,=20 R_x11, 1303 NULL, 0, zero, NULL); 1304toplevel =3D XtAppCreateShell(NULL, R_x11, The 2nd arg to XtOpenDisplay is listed as display_string, so passing a=20 NULL here seems like trouble when the default ways of finding the=20 display do not work. Looks like a fix is to insert p instead of NULL. (Tested rudimentarily.) --=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 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327= 907 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY
On 10/29/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: The problem is that the XtOpenDisplay call did not specify the display. Easily fixed On 10/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The culprit would seem to be this bit of devX11.c 1302xtdpy = XtOpenDisplay(app_con, NULL, r_x11, R_x11, 1303 NULL, 0, zero, NULL); 1304toplevel = XtAppCreateShell(NULL, R_x11, The 2nd arg to XtOpenDisplay is listed as display_string, so passing a NULL here seems like trouble when the default ways of finding the display do not work. Looks like a fix is to insert p instead of NULL. (Tested rudimentarily.) Prof. Ripley replaced that NULL with dsp -- p is normally the same. It's in svn (r43300 on he trunk, r43301 on R-2-6-branch). It built without a hitch, and the fix solves my problem. P. Dalgaard also pinpointed the problem. And confirmed Xt was involved :-) Apparently an XOpenDisplay on the specified display may be followed by an XtOpenDisplay, previously on the default display. Thanks to everyone who helped figure this out and fix the problem! /Christian Brechbuehler [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] (PR#10379) Re: x11(....) kills R without DISPLAY
Peter Dalgaard wrote: [EMAIL PROTECTED] 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= R x11(localhost:11.0)# this is my valid DISPLAY Error: Couldn't find per display information % snipped I see this on Fedora 7 too. I suspect that the earlier report was 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 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 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= $ R R version 2.6.0 (2007-10-03) ... x11() Error in X11(display, width, height, pointsize, if (is.null(gamma)) 1 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 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY
Hin-Tak Leung wrote: Peter Dalgaard wrote: [EMAIL PROTECTED] 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= R x11(localhost:11.0)# this is my valid DISPLAY Error: Couldn't find per display information % snipped I see this on Fedora 7 too. I suspect that the earlier report was 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 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 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= $ R R version 2.6.0 (2007-10-03) ... x11() Error in X11(display, width, height, pointsize, if (is.null(gamma)) 1 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: [EMAIL PROTECTED] BUILD]$ ssh -Y 192.168.1.10 [EMAIL PROTECTED]'s password: Last login: Sat Oct 27 02:40:16 2007 from 192.168.1.11 [EMAIL PROTECTED] ~]$ echo $DISPLAY localhost:10.0 [EMAIL PROTECTED] ~]$ DISPLAY= R -q x11(localhost:10.0) Error: Couldn't find per display information [EMAIL PROTECTED] ~]$ uname -a Linux janus 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 20:47:39 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux [EMAIL PROTECTED] ~]$ cat /etc/issue Fedora release 7 (Moonshine) Kernel \r on an \m -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY
Hin-Tak Leung wrote: Peter Dalgaard wrote: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] BUILD]$ ssh -Y 192.168.1.10 [EMAIL PROTECTED]'s password: Last login: Sat Oct 27 02:40:16 2007 from 192.168.1.11 [EMAIL PROTECTED] ~]$ echo $DISPLAY localhost:10.0 [EMAIL PROTECTED] ~]$ DISPLAY=3D R -q x11(localhost:10.0) Error: Couldn't find per display information [EMAIL PROTECTED] ~]$ 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 [EMAIL PROTECTED] ~]$ 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 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327= 907 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel