Skip to content

RGL crashes

10 messages · Rainer M Krug, Duncan Murdoch, Matt Dowle +1 more

#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

rgl crashes my R session, when resizing the rgl graphic window.

I am using Ubuntu Maversick, with dual monitor setup. If I disconnect
one monitor, I can resize it "a little bit", but it still craches if I
enlarge it to much.

I assume that the problem has to do with allocated graphic memory in the
kernel, but why is R crashing completely, and not evn giving the usual
crash options?

Cheers,

Rainer
R version 2.12.0 (2010-10-15)
Platform: i686-pc-linux-gnu (32-bit)

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

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

other attached packages:
[1] rgl_0.92.794
_
platform       i686-pc-linux-gnu
arch           i686
os             linux-gnu
system         i686, linux-gnu
status
major          2
minor          12.0
year           2010
month          10
day            15
svn rev        53317
language       R
version.string R version 2.12.0 (2010-10-15)
After executing

library(rgl)
example(rgl)

and resizing the graph window, R crashes witrh the following message:

drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command
stream. See dmesg for more info.

from dmesg:

[ 7349.471959] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small
for color buffer 0 (need 413696 have 262144) !
[ 7349.471964] [drm:r100_cs_track_check] *ERROR* [drm] color buffer 0
(256 4 0 404)
[ 7349.471967] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      Rainer at krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz/X/MACgkQoYgNqgF2egr1pQCeMBJFYu6W21bYG1K8NBFV3kQo
Hg4An0RHmwplw5ox213ZZYYFtMXwvLJw
=X/sg
-----END PGP SIGNATURE-----
#
Rainer M Krug wrote:
Those messages look like they're coming from your graphics driver, not 
from R.  So rgl may be doing something it shouldn't do, but you'll 
probably have to diagnose what that is.  It's unlikely to be 
reproducible on another system.

Duncan Murdoch
#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/08/2010 12:05 PM, Duncan Murdoch wrote:
That's what I fear as well - could you give me any tips on how to
proceed to identify the problem?

Rainer
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      Rainer at krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz/ZuUACgkQoYgNqgF2egoPDwCfYQqfotaTxJ2dkFDMqrVt/Kzr
/REAmwQIWe2N3iiFxYYjCEcaPYgTx8As
=VpUe
-----END PGP SIGNATURE-----
#
On 08/12/2010 6:07 AM, Rainer M Krug wrote:
It might help to know which line of code in rgl actually triggered the 
error, but debugging X11 code is tricky.  The function that likely 
triggered the problem is X11WindowImpl::setWindowRect in 
rgl/src/x11gui.cpp; it makes calls to X11 functions that do the actual work.

Duncan Murdoch
#
Might Wayland fix it in Narwhal ?

"Duncan Murdoch" <murdoch.duncan at gmail.com> wrote in message 
news:4CFF7177.7030402 at gmail.com...
#
Matthew Dowle wrote:
I hope those names mean something to Rainer, because they mean nothing 
to me.

Duncan Murdoch
#
Weyland is the project to remove X11 from Linux.

http://en.wikipedia.org/wiki/Wayland_(display_server)

Ubuntu chiefs have said they support Weyland and aim to include it
in the next release (April 2011 == version 11.04 == Natty Narwhal).

Fedora developers apparenly said that they are likely to adopt
Weyland too.

I don't know if packages in R such as rgl would need changing to
work with Weyland, or perhaps R itself, if at all. However it seems
that Linux is moving away from X11.

Mentioned it here because the issue in this thread appears to be
X11 specific. X11's days seem to be numbered if I understand
correctly.

Matthew


"Duncan Murdoch" <murdoch.duncan at gmail.com> wrote in message 
news:4CFFCA13.7070503 at gmail.com...
#
On 09/12/2010 5:52 AM, Matthew Dowle wrote:
If X11 calls aren't supported in Wayland, then rgl won't work there. 
The Wayland people will need to write a replacement for the glx 
interface to OpenGL, and an rgl user will need to write the code to use 
this in rgl (i.e. equivalents of the x11gui.* and x11lib.* files in the 
rgl sources).  rgl is designed to work on multiple systems (currently 
Windows, Cocoa in OSX, and X11), but it's not trivial to implement a new 
one.

Duncan Murdoch
#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/09/2010 12:53 PM, Duncan Murdoch wrote:
While we are at X11 and Wayland - are there any other aspects of R which
would need to be rewritten or adapted? I guess, a new graphic device
might be necessary?

It might be an important exercise to find this out as it will be
relevant for all the Ubuntu users in the medium future (probably earlier?)

I send this to the r-sig-debian as well, as it might be more relevant where.

Rainer

        
- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      Rainer at krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0AxVMACgkQoYgNqgF2egonLgCfYt5rk2DvnqdELmCD7yAXufI+
2r8An3Pk+IkFKzF6pxYsJGhGpb7KkTcL
=cwXo
-----END PGP SIGNATURE-----
#
On 12/09/2010 04:02 AM, Rainer M Krug wrote:
My reading of the article on ArsTechnica about this topic is that X will
still be available in a somewhat similar way to how X is available on
Mac OS X. Also the phase in for switching to Wayland on Ubuntu is ~ 4
years as a incremental project in each release before making it the default.

http://arstechnica.com/open-source/news/2010/11/linux-beyond-x-shuttleworth-contemplates-wayland.ars


Thanks,
Alex