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

R studio crashing with maxent() #47

Open
klairerhodes opened this issue May 13, 2024 · 3 comments
Open

R studio crashing with maxent() #47

klairerhodes opened this issue May 13, 2024 · 3 comments

Comments

@klairerhodes
Copy link

I'm running into a popup window error that says R has encountered a 'fatal error' and the session is being aborted when I run maxent()

I've successfully ran the function with the same data before with no issues. R studio and R, as well as Java, are updated. When I run my script in base R rather than R studio in debug mode, I get this error message:

Loading required namespace: rJava
exiting from: maxent(silent = TRUE)

*** caught segfault ***
address 0xfffffffffffffff0, cause 'invalid permissions'

Traceback:
1: rJava::.jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout, "-s", pfn, args), rJava::.jarray(factors))
2: .local(x, p, ...)
3: maxent(x, p, ...)
4: maxent(x, p, ...)
5: .local(x, p, ...)
6: maxent(x = predictors_in_proj, p = occurrences_in, a = NULL, factors = "landcover_cropped", args = c("betamultiplier=1"))
7: maxent(x = predictors_in_proj, p = occurrences_in, a = NULL, factors = "landcover_cropped", args = c("betamultiplier=1"))
8: eval(ei, envir)
9: eval(ei, envir)
10: withVisible(eval(ei, envir))
11: source("/Users/klairetrhodes/Desktop/Thesis/projectedmodel_r.R")

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

Any advice appreciated. Thank you.

@Zeroo11
Copy link

Zeroo11 commented Jun 17, 2024

Hello,
Did you solve it? I also encountered the same error.
Thanks

@krtanaka
Copy link

I'm having the same issue, too.

@gepinillab
Copy link

gepinillab commented Dec 5, 2024

I solved this issue after installing an old version of RStudio( v2022.07.2 Build 576). I am using a Macbook Air M1 with R v4.4. It solved it with the 'predicts' package.

You can download the previous RStudio here: https://dailies.rstudio.com/release/

FYI. This issue occurred when trying to run maxent() on the latest RStudio version. I could run the same code on R GUI or from the terminal without problems.

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

4 participants