[Rd] polygon kills X-server (PR#14055)

From: <lpagie_at_xs4all.nl>
Date: Tue, 10 Nov 2009 21:30:16 +0100 (CET)


Full_Name: Ludo Pagie
Version: 2.10.0
OS: linux, ubuntu, 8.04
Submission from: (NULL) (83.163.218.221)

when I make a polygon with 100,000 vertices my X-server is being killed. This occurs in R-2.9.0 and a freshly installed R-2.10.0 I'm running Ubuntu with a locally compiled R:

uname -a
Linux onyx 2.6.24-24-generic #1 SMP Tue Aug 18 16:22:17 UTC 2009 x86_64 GNU/Linux

xlower = -2e6:2e6
xupper = rev(xlower)
ylower = runif(length(xlower))
yupper = ylower+.1

plot(NA,xlim=range(xlower),ylim=range(ylower)) idx=1:10000
# it draws fine for lower number of vertices: polygon(x=c(xlower[idx],xupper[idx]),y=c(ylower[idx],yupper[idx]),col='grey') # but X is killed when I draw 100000 vertices or more idx=1:100000
# I've commented the next call to prevent people accidently
# killing their X?
#polygon(x=c(xlower[idx],xupper[idx]),y=c(ylower[idx],yupper[idx]),col='grey')


> sessionInfo()
R version 2.10.0 (2009-10-26)
x86_64-unknown-linux-gnu

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

I've posted above to the R-help list and got replies from Uwe Ligges saying it also killed his Windows completely.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 10 Nov 2009 - 20:37:44 GMT

This archive was generated by hypermail 2.2.0 : Wed 11 Nov 2009 - 04:00:23 GMT