[R] RGL crashes

Duncan Murdoch murdoch.duncan at gmail.com
Thu Dec 9 12:53:23 CET 2010


On 09/12/2010 5:52 AM, Matthew Dowle wrote:
> 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.

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

>
> 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...
>> Matthew Dowle wrote:
>>> Might Wayland fix it in Narwhal ?
>>
>> I hope those names mean something to Rainer, because they mean nothing to
>> me.
>>
>> Duncan Murdoch
>>
>>>
>>> "Duncan Murdoch"<murdoch.duncan at gmail.com>  wrote in message
>>> news:4CFF7177.7030402 at gmail.com...
>>>> On 08/12/2010 6:07 AM, Rainer M Krug wrote:
>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>> Hash: SHA1
>>>>>
>>>>> On 12/08/2010 12:05 PM, Duncan Murdoch wrote:
>>>>>> Rainer M Krug wrote:
>>>>>> 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
>>>>>>
>>>>>>
>>>>>>>>> sessionInfo()
>>>>>> 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
>>>>>>>>> version
>>>>>>                  _
>>>>>> 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 !
>>>>>>
>>>>>>> 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.
>>>>> That's what I fear as well - could you give me any tips on how to
>>>>> proceed to identify the problem?
>>>> 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
>>>>
>>>>> Rainer
>>>>>
>>>>>>> Duncan Murdoch
>>>>>>
>>>>>>
>>>>>> -- 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
>>>>> ______________________________________________
>>>>> 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-----
>>>
>>> ______________________________________________
>>> 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.
>>
>
> ______________________________________________
> 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.



More information about the R-help mailing list