Open jjlynch2 opened 2 years ago
I'm also having this issue, same set up and versions as OP
I've found that if I run R directly from the Linux terminal (rather than through RStudio) julia_setup
works fine, as do other JuliaCall
functions thereafter. I also noticed that if I try to open Julia from the terminal within RStudio (with julia
command) I get the same segmentation fault error as above. So the issue appears to be something to do with RStudio.
RStudio info: RStudio 2022.02.1+461 "Prairie Trillium" Release (fc9e217, 2022-04-07) for x86_64 GNU/Linux Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.9 Chrome/87.0.4280.144 Safari/537.36
Same here: I get only the segmentation fault if I run JuliaCall::julia_setup()
inside RStudio-R-console. Except, when I run R from the RStudio-integrated terminal, everything works as expected, contrary to what thomarse-ef said. So the problem is only when I use the RStudio-integrated- R-console. Any ideas?
> Sys.getenv("R_HOME")
[1] "/usr/lib64/R"
> version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 2.2
year 2022
month 10
day 31
svn rev 83211
language R
version.string R version 4.2.2 (2022-10-31)
nickname Innocent and Trusting
julia> versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65e* (2023-01-08 06:45 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: 8 × 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, tigerlake)
Threads: 1 on 8 virtual cores
Environment:
LD_LIBRARY_PATH = /usr/lib64/R/lib:/lib:/usr/lib/jvm/java-18-openjdk/lib/server
I'm receiving a segmentation fault when running julia_setup(). I've tried various parameters including install=TRUE and rebuild=TRUE. I've also reinstalled both Julia and R multiple times rebuilding their libraries entirely. Everything was working previously until I updated both R and Julia. I am able to install and load RCall within Julia. I've verified that the correct Julia path is being used in R and the correct R path is being used in Julia. I'm not sure what else to try at this point.
This is happening on Archlinux with 5.17.1-zen1-1-zen kernel, R version 4.1.3, and Julia version 1.7.2:
System info:
R version:
Julia version:
Segmentation fault:
R path in Julia goes to a symbolic link that goes to the R binary
R path in system:
Julia path in R:
Julia path in system:
Some other info:
Example showing that RCall is working fine: