Skip to content

polygon kills X-server (PR#14055)

4 messages · Ludo Pagie, Ben Bolker, Uwe Ligges

#
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')
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.
#
<lpagie <at> xs4all.nl> writes:
It took quite a while, and every time I obscure the window
it hangs R while it redraws, but that all seems as expected.
The rest of my system seems to be running fine while it works
on that (one core is pegged at 100% CPU, but the other is
handling everything OK).

Linux bolker-lap2 2.6.27-15-generic #1 SMP Tue Oct 20 06:52:09 UTC 2009 i686
GNU/Linux

Ubuntu 8.10
for what it's worth, I'm not running a window manager with any
fancy screen effects (don't know if that would matter??)

R 2.10.0, stock Ubuntu installation
#
Ben Bolker wrote:
Maybe related to graphics card driver that cannot handle it or even 
graphics hardware. I will try on some machine with really different 
graphics hardware as well as on some virtual machine.

Uwe
#
I was thinking along the same line. I have an NVidia, GeForce
6600 GT, 256 MB, NVIDIA Driver Version:169.12.

Ludo
On Wed, Nov 11, 2009 at 10:01:02AM +0100, Uwe Ligges wrote: