-
Notifications
You must be signed in to change notification settings - Fork 11
Description
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.