RStudio在使用rgl包时中止会话

RStudio在使用rgl包时中止会话,rstudio,Rstudio,我正在使用一台使用了8年的Lubuntu 16.04.02机器。出于某种奇怪的原因,我无法以通常的方式安装R,所以我编译并从源代码安装了它。以下是我的配置文件命令: ./configure--enable-R-shlib--with-blas--with-lapack--with-x=yes--enable-blas-shlib--with-tcltk 从终端,我可以毫无问题地运行 ejam@ejam:~/Documents/3ATD$ R R version 3.4.1 (2017-06-3

我正在使用一台使用了8年的Lubuntu 16.04.02机器。出于某种奇怪的原因,我无法以通常的方式安装R,所以我编译并从源代码安装了它。以下是我的配置文件命令:

./configure--enable-R-shlib--with-blas--with-lapack--with-x=yes--enable-blas-shlib--with-tcltk

从终端,我可以毫无问题地运行

ejam@ejam:~/Documents/3ATD$ R

R version 3.4.1 (2017-06-30) -- "Single Candle"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(rgl)
> open3d()
glX 
  1 
> x <- sort(rnorm(1000))
> y <- sort(rnorm(1000))
> z <- sort(rnorm(1000))+atan2(x,y)
> plot3d(x,y,z,col=rainbow(1000))
> 
感谢您的帮助

编辑1:

我从终点站跑过来

$ gdb
(gdb) file rstudio
在打开的RStudio窗口中,我键入

> library(rgl)
> open3d()
会话立即中止

终端显示

Starting program: /usr/bin/rstudio 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeac19700 (LWP 4288)]
[New Thread 0x7fffdc7c7700 (LWP 4289)]
[New Thread 0x7fffdbfc6700 (LWP 4290)]
[New Thread 0x7fffdb7c5700 (LWP 4291)]
[New Thread 0x7fffdafc4700 (LWP 4292)]
[Thread 0x7fffdafc4700 (LWP 4292) exited]
[New Thread 0x7fffdafc4700 (LWP 4319)]
[New Thread 0x7fffda7c3700 (LWP 4321)]
[New Thread 0x7fffd94d1700 (LWP 4325)]
[New Thread 0x7fffd8cd0700 (LWP 4326)]
[New Thread 0x7fff82026700 (LWP 4328)]
[New Thread 0x7fff81825700 (LWP 4329)]
load glyph failed err=6 face=0x1103500, glyph=2797
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
load glyph failed err=6 face=0x1103500, glyph=2797
libpng warning: iCCP: known incorrect sRGB profile
[Thread 0x7fffdb7c5700 (LWP 4291) exited]
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile

我认为问题更一般。我尝试了几个非标准R库(我指的是R中默认不包含的库)的示例,如“rgl”、“kernlab”和“TDA”。有趣的是,我可以完美地从终端运行这些示例


我承认在配置R源代码时,在尝试添加“-enable BLAS shlib”标志时遇到了一些问题。我重新编译了没有这种标志的R,现在RStudio可以正常工作了。

我认为问题更普遍。我尝试了几个非标准R库(我指的是R中默认不包含的库)的示例,如“rgl”、“kernlab”和“TDA”。有趣的是,我可以完美地从终端运行这些示例


我承认在配置R源代码时,在尝试添加“-enable BLAS shlib”标志时遇到了一些问题。我已经重新编译了没有这种标志的R,RStudio现在可以正常工作了。

尝试使用类似于
gdb-p`pidof rsession`
的东西将
gdb
附加到RStudio的R会话,然后加载这个库。如果它捕捉到了崩溃,你能发布堆栈跟踪吗?@KevinUshey我希望我理解正确。我刚刚编辑了我的问题。我在其他地方读到libpng警告是无害的。请尝试使用类似于
gdb-p`pidof rsession`
的东西将
gdb
附加到RStudio的R会话,然后加载此库。如果它捕捉到了崩溃,你能发布堆栈跟踪吗?@KevinUshey我希望我理解正确。我刚刚编辑了我的问题。我在其他地方读到libpng警告是无害的。
Starting program: /usr/bin/rstudio 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeac19700 (LWP 4288)]
[New Thread 0x7fffdc7c7700 (LWP 4289)]
[New Thread 0x7fffdbfc6700 (LWP 4290)]
[New Thread 0x7fffdb7c5700 (LWP 4291)]
[New Thread 0x7fffdafc4700 (LWP 4292)]
[Thread 0x7fffdafc4700 (LWP 4292) exited]
[New Thread 0x7fffdafc4700 (LWP 4319)]
[New Thread 0x7fffda7c3700 (LWP 4321)]
[New Thread 0x7fffd94d1700 (LWP 4325)]
[New Thread 0x7fffd8cd0700 (LWP 4326)]
[New Thread 0x7fff82026700 (LWP 4328)]
[New Thread 0x7fff81825700 (LWP 4329)]
load glyph failed err=6 face=0x1103500, glyph=2797
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
load glyph failed err=6 face=0x1103500, glyph=2797
libpng warning: iCCP: known incorrect sRGB profile
[Thread 0x7fffdb7c5700 (LWP 4291) exited]
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile