rstudio / renv

renv: Project environments for R.
https://rstudio.github.io/renv/
MIT License
995 stars 153 forks source link

Renv compiling RcppEigen crash on Linux #1916

Open shun2wang opened 2 months ago

shun2wang commented 2 months ago

While I install cache a project which including RcppEigen on Linux with Renv, it will crash Rstudio on gnome-shell with a out of memory error while compiling it, will auto restart the gnome...That's OK if you just use install.packages without Renv.

it's very wired so I can dont know if I should report here but it's can be reproduce 100% with Renv.I suspect there is a memory leak, but I have no way to get more debugging information.

System info:

Thanks for your work!

kevinushey commented 1 month ago

I'm surprised that this could differ in this scenario, since renv is just invoking R CMD INSTALL directly (ie, it should ultimately be doing the exact same thing). In addition, 16GB RAM should surely be enough (unless stuff is getting built / compiled in parallel?) so I'm a bit flummoxed.