plummer@iarc.fr
2000-May-22 15:24 UTC
[Rd] text() with large cex parameter crashes X11() (PR#553)
Trying to use text() with very large cex parameter crashes R when using the X11() device X11() plot(1,1,type="n") text(1,1,"foo", cex=10) This also crashes R points(1,1,pch="A", cex=10) presumably because we are trying to load a font that doesn't exist, but I haven't looked into it. Martyn --please do not edit the information below-- Version: platform = i686-unknown-linux arch = i686 os = linux system = i686, linux status major = 1 minor = 0.1 year = 2000 month = April day = 14 language = R Search Path: .GlobalEnv, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Ben Bolker
2000-May-22 15:40 UTC
[Rd] text() with large cex parameter crashes X11() (PR#553)
Works here with 1.0.0 (RH Linux 6.0)! R --vanilla with Version: platform = i686-unknown-linux arch = i686 os = linux system = i686, linux status = major = 1 minor = 0.0 year = 2000 month = February day = 29 language = R Search Path: .GlobalEnv, Autoloads, package:base On Mon, 22 May 2000 plummer@iarc.fr wrote:> Trying to use text() with very large cex parameter crashes > R when using the X11() device > > X11() > plot(1,1,type="n") > text(1,1,"foo", cex=10) > > This also crashes R > > points(1,1,pch="A", cex=10) > > presumably because we are trying to load a font that doesn't > exist, but I haven't looked into it. > > Martyn > > > --please do not edit the information below-- > > Version: > platform = i686-unknown-linux > arch = i686 > os = linux > system = i686, linux > status > major = 1 > minor = 0.1 > year = 2000 > month = April > day = 14 > language = R > > Search Path: > .GlobalEnv, Autoloads, package:base > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ > >-- Ben Bolker bolker@zoo.ufl.edu Zoology Department, University of Florida http://www.zoo.ufl.edu/bolker 318 Carr Hall/Box 118525 tel: (352) 392-5697 Gainesville, FL 32611-8525 fax: (352) 392-3704 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian Ripley
2000-May-22 17:46 UTC
[Rd] text() with large cex parameter crashes X11() (PR#553)
> From: plummer@iarc.fr > Date: Mon, 22 May 2000 17:24:21 +0200 (MET DST) > To: r-devel@stat.math.ethz.ch > Subject: [Rd] text() with large cex parameter crashes X11() (PR#553) > CC: R-bugs@biostat.ku.dk > X-Loop: R-bugs@biostat.ku.dk > > Trying to use text() with very large cex parameter crashes > R when using the X11() device > > X11() > plot(1,1,type="n") > text(1,1,"foo", cex=10) > > This also crashes R > > points(1,1,pch="A", cex=10) > > presumably because we are trying to load a font that doesn't > exist, but I haven't looked into it.As a matter of interest, does it crash R-devel? I added some X11 error handlers a couple of weeks ago, so X11 errors should no longer crash R. -- Brian D. Ripley, ripley@stats.ox.ac.uk 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian Ripley
2000-May-23 11:21 UTC
[Rd] text() with large cex parameter crashes X11() (PR#553)
> X-Priority: 3 (Normal) > Date: Tue, 23 May 2000 11:12:11 +0200 (CEST) > From: Martyn Plummer <plummer@iarc.fr> > To: Ben Bolker <ben@zoo.ufl.edu>, Uwe Ligges<ligges@statistik.uni-dortmund.de>, Martin Maechler <maechler@stat.math.ethz.ch>, Prof Brian Ripley <ripley@stats.ox.ac.uk>> Subject: Re: [Rd] text() with large cex parameter crashes X11() (PR#553) > Cc: R-bugs@biostat.ku.dk, r-devel@stat.math.ethz.ch > > Well, I wasn't wrong. Here's R with DEBUG_X11 switched on > > > plot(1,1,type="n") > loading: > -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* > success > > points(1,1,pch="A", cex=10) > loading: > -*-helvetica-medium-r-*-*-120-*-*-*-*-*-*-* > failure > loading: > -*-helvetica-medium-r-*-*-34-*-*-*-*-*-*-* > failure > > Program received signal SIGSEGV, Segmentation fault. > 0x8126336 in SetFont (face=1, size=120, dd=0x8251168) at devX11.c:940 > 940 XSetFont(display, xd->wgc, xd->font->fid); > (gdb) p xd->font > $1 = (XFontStruct *) 0x0 > > RLoadFont ignores the fact that it has failed to load a font > and returns a null pointer.I think it is SetFont that ignores the null pointer.> If this works for you it is perhaps because you have the size 34 font > (the last resort) on your system.I at least have Helvetica in type 1 and so do have 120pt Helevetica (and have used such a system all the time I have been using X11).> R-devel gives the same result.What should we do in this circumstance? Drop back to fixed? Try a smaller size? What sizes do you have? A quick look around on an R6.0 system suggests that it has 8,10,12,14,18,24, which is what Solaris has as bitmaps too. And at this point basefontsize must have succeeded. So should we: try 34 then 24 then basefontsize. Should we issue a warning if the displayed fontsize differs by more than 10%, say, from that requested? -- Brian D. Ripley, ripley@stats.ox.ac.uk 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Martyn Plummer
2000-May-23 13:30 UTC
[Rd] text() with large cex parameter crashes X11() (PR#553)
On 23-May-00 Prof Brian Ripley wrote:>> RLoadFont ignores the fact that it has failed to load a font >> and returns a null pointer. > > I think it is SetFont that ignores the null pointer.Yes.>> If this works for you it is perhaps because you have the size 34 font >> (the last resort) on your system. > > I at least have Helvetica in type 1 and so do have 120pt Helevetica > (and have used such a system all the time I have been using X11). > >> R-devel gives the same result.Apparently I had an error in the configuration file for the font server (due to the fact that RPM kept the old configuration file when I upgraded) As a result, all my 75dpi fonts were considered non-scaleable by the font server. I have now fixed this and everything works.> What should we do in this circumstance? Drop back to fixed? Try a > smaller size? What sizes do you have? A quick look around on an R6.0 > system suggests that it has 8,10,12,14,18,24, which is what Solaris > has as bitmaps too. And at this point basefontsize must have succeeded. > So should we: > > try 34 then 24 then basefontsize. > > Should we issue a warning if the displayed fontsize differs by more than > 10%, say, from that requested?This seems like a good plan. If failure to load a large font is indicative of a problem with the X setup then it would be a good idea to issue a warning. Sorry to trouble everyone over what is basically a problem with my setup. Martyn -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._