[R] Raster package crash with segmentation fault

Marc Girondot m@rc_grt @end|ng |rom y@hoo@|r
Fri Sep 27 10:08:07 CEST 2019


Dear members,

When I load raster 3.0-7 package installed or from source or from binary 
in r 3.6.1 (macosX 10.14.6), I get a segmentation fault crash:

(see below)

As someone the same problem and a solution ? Thanks

(I have posted this question in R-Sig_GEO list without answer still)

 > library("raster")
Le chargement a n??cessit?? le package : sp

??*** caught segfault ***
address 0x31, cause 'memory not mapped'

Traceback:
??1: Module(module, mustStart = TRUE, where = env)
??2: doTryCatch(return(expr), name, parentenv, handler)
??3: tryCatchOne(expr, names, parentenv, handlers[[1L]])
??4: tryCatchList(expr, classes, parentenv, handlers)
??5: tryCatch(Module(module, mustStart = TRUE, where = env), error = 
function(e) e)
??6: loadModule(module = "spmod", what = TRUE, env = ns, loadNow = TRUE)
??7: (function (ns) loadModule(module = "spmod", what = TRUE, env = ns, 
loadNow = TRUE))(<environment>)
??8: doTryCatch(return(expr), name, parentenv, handler)
??9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
10: tryCatchList(expr, classes, parentenv, handlers)
11: tryCatch((function (ns) loadModule(module = "spmod", what = TRUE, 
env = ns, loadNow = TRUE))(<environment>),???????? error = function(e) e)
12: eval(substitute(tryCatch(FUN(WHERE), error = function(e) e),???????? 
list(FUN = f, WHERE = where)), where)
13: eval(substitute(tryCatch(FUN(WHERE), error = function(e) e),???????? 
list(FUN = f, WHERE = where)), where)
14: .doLoadActions(where, attach)
15: methods::cacheMetaData(ns, TRUE, ns)
16: loadNamespace(package, lib.loc)
17: doTryCatch(return(expr), name, parentenv, handler)
18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
19: tryCatchList(expr, classes, parentenv, handlers)
20: tryCatch({?????? attr(package, "LibPath") <- which.lib.loc ns <- 
loadNamespace(package, lib.loc)?????? env <- attachNamespace(ns, pos = 
pos, deps, exclude, include.only)}, error = function(e) {?????? P <- if 
(!is.null(cc <- conditionCall(e)))???????????????? paste(" in", 
deparse(cc)[1L])?????? else ""?????? msg <- gettextf("package or 
namespace load failed for %s%s:\n %s",???????????????? sQuote(package), 
P, conditionMessage(e)) if (logical.return)???????????????? 
message(paste("Error:", msg), domain = NA)?????? else stop(msg, call. = 
FALSE, domain = NA)})
21: library("raster")

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



More information about the R-help mailing list