[Rd] text() with large cex parameter crashes X11() (PR#553)
Martyn Plummer
plummer@iarc.fr
Tue, 23 May 2000 11:12:11 +0200 (CEST)
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.
If this works for you it is perhaps because you have the size 34 font
(the last resort) on your system.
R-devel gives the same result.
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._