Closed temospena closed 1 year ago
That's very odd indeed. I cannot reproduce the issue with R 4.2.3 or a fresh install of R 4.3.1. "Caught segfault" also looks like some C++ level code which tidytransit does not use. My first thought was an issue with the recently updated gtfsio (sorry @dhersz) but that also works perfectly fine.
The following packages are in your sessionInfo and not in my clean reinstall, perhaps we can find a hint there:
package version
<chr> <chr>
1 jsonlite 1.8.7
2 miniUI 0.1.1.1
3 promises 1.2.1
4 reprex 2.0.2
5 clipr 0.8.0
6 jquerylib 0.1.4
7 callr 3.7.3
8 later 1.3.1
9 yaml 2.3.7
10 fastmap 1.1.1
11 mime 0.12
12 knitr 1.44
13 R.cache 0.16.0
14 bslib 0.5.1
15 R.utils 2.12.2
16 cachem 1.0.8
17 httpuv 1.6.12
18 xfun 0.40
19 sass 0.4.7
20 fs 1.6.3
21 memoise 2.0.1
22 withr 2.5.1
23 ps 1.7.5
24 processx 3.8.2
25 rstudioapi 0.15.0
26 xtable 1.8-4
27 R.methodsS3 1.8.2
28 R.oo 1.25.0
29 evaluate 0.22
30 styler 1.10.2
31 rmarkdown 2.25
32 purrr 1.0.2
33 ellipsis 0.3.2
34 htmltools 0.5.6.1
Otherwise I'm out of ideas at the moment, and irrecoverable exception occurred. R is aborting now
doesn't look like something I know a enough about to help.
There seems to be a problem when compiling the package from source.
Since you're using Ubuntu 22 and R 4.3, you can try using a r-universe built binary:
install.packages('tidytransit', repos = c('https://r-transit.r-universe.dev/bin/linux/jammy/4.3/'))
This SO answer (https://stackoverflow.com/a/50163562/13202041) also offers a clue of what might be going on. I'd try installing any tidytransit's upstream dependency from source and pay a close attention to the log messages, to see if there is a hint there.
Something that comes up to mind is that sf relies on some system packages that need to be manually installed in Linux. Perhaps these system dependencies may need to be updated to correctly install sf, which in turn make them a tidytransit dependency as well (I remember I had some free(): invalid pointer
and segmentation fault
errors before when trying to use sf with incorrect system dependencies - and just to be clear, the package would install without any issues, but the errors would be raised when trying to use some functions).
sf Ubuntu installation instructions: https://github.com/r-spatial/sf#ubuntu
Thank you.
There are other people reporting this error related with gis stuff, but no solutions provided.
https://community.rstudio.com/t/caught-segfault-again/161735
Apparently @robinlovelace is having the same error from today, but with other stuff. So, maybe not a tidytransit problem, but any gis R pkg update that is messing with others?
There seems to be a problem when compiling the package from source.
Since you're using Ubuntu 22 and R 4.3, you can try using a r-universe built binary:
install.packages('tidytransit', repos = c('https://r-transit.r-universe.dev/bin/linux/jammy/4.3/'))
this solved for the instalation problem, thank you!!!
~$ sudo Rscript -e "install.packages('tidytransit', repos = c('https://r-transit.r-universe.dev/bin/linux/jammy/4.3/'))"
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://r-transit.r-universe.dev/bin/linux/jammy/4.3/src/contrib/tidytransit_1.6.0.tar.gz'
Content type 'application/x-gzip' length 4921434 bytes (4.7 MB)
==================================================
downloaded 4.7 MB
* installing *binary* package ‘tidytransit’ ...
* DONE (tidytransit)
The downloaded source packages are in
‘/tmp/RtmpfoENp5/downloaded_packages’
Thanks @dhersz!
Hi,
I am having this odd error when installing tidy transit:
When installing directly on the terminal:
The documentation on this kind of error ("caught segfault ") is very limited in google.
I also removed completely my R installation and deleted pkgs folders, and re-installed again, making tidytransit one of my priorities to install, and the error still occurs!
It is odd, because it is the only package with this error, among 505 fresh installs...
Any clue? Thanks!