Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation failt (core dumped) when install package sf #2396

Closed
LeDinhGiaHuy opened this issue May 13, 2024 · 1 comment
Closed

Segmentation failt (core dumped) when install package sf #2396

LeDinhGiaHuy opened this issue May 13, 2024 · 1 comment

Comments

@LeDinhGiaHuy
Copy link

Hi,
I opened the R console in Ubuntu 22, and then install sf package but got this issue. Can anyone help me on this?

`> install.packages("sf")

Downloading packages -------------------------------------------------------

  • Downloading sf from CRAN ... OK [3.4 Mb in 2.8s]

Successfully downloaded 1 package in 3.3 seconds.

The following package(s) will be installed:

  • sf [1.0-16]

These packages will be installed into "~/Documents/network/renv/library/R-4.1/x86_64-pc-linux-gnu".

Do you want to proceed? [Y/n]: y

Installing packages --------------------------------------------------------

  • Installing sf ... FAILED

/usr/lib/R/bin/R --vanilla -s -f '/tmp/RtmpWOkmsN/renv-install-72da35734eaa.R'

==============================================================================

<environment: namespace:sf>

*** caught segfault ***

address 0x643127a079bf, cause 'memory not mapped'

An irrecoverable exception occurred. R is aborting now ...

Segmentation fault (core dumped)

Error: error testing if 'sf' can be loaded [error code 139]

Traceback (most recent calls last):

14: install.packages("sf")

13: install(pkgs)

12: renv_install_impl(records)

11: renv_install_staged(records)

10: renv_install_default(records)

9: handler(package, renv_install_package(record))

8: renv_install_package(record)

7: withCallingHandlers(renv_install_package_impl(record), error = function(e) writef("FAILED"))

6: renv_install_package_impl(record)

5: withCallingHandlers(if (isbin) renv_install_test(package), error = function(err) unlink(installpath,

    recursive = TRUE))

4: renv_install_test(package)

3: renv_system_exec(command = R(), args = c("--vanilla", "-s", "-f",

    renv_shell_path(script)), action = sprintf("testing if '%s' can be loaded", 

    package))

2: abort(sprintf("error %s [error code %i]", action, status), body = renv_system_exec_details(command,

    args, output))

1: stop(fallback)

`

@edzer
Copy link
Member

edzer commented May 13, 2024

Package renv does something to your R session that makes it impossible (in some cases?) to install or reinstall sf, and doesn't take responsibility to fix this for you. Search the sf issues for renv, or the renv issues for sf.

@edzer edzer closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants