topepo / caret

caret (Classification And Regression Training) R package that contains misc functions for training and plotting classification and regression models
http://topepo.github.io/caret/index.html
1.61k stars 634 forks source link

Segfault memory not mapped on loading caret #1316

Closed DrDids closed 1 year ago

DrDids commented 1 year ago

Starting R and just loading caret ... crash! see below? Any idea? I had reinstalled caret (reinstalled Java jre too) I tried also to load ggplot2 and lattice first to see ... as below thanks!

Didier (Package: caret Title: Classification and Regression Training Version: 6.0-93)

sessionInfo() R version 4.1.2 (2021-11-01) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Monterey 12.6

Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale: [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods
[7] base

other attached packages: [1] ggplot2_3.3.5 lattice_0.20-45

loaded via a namespace (and not attached): [1] fansi_0.5.0 withr_2.4.3 dplyr_1.0.7 utf8_1.2.2
[5] grid_4.1.2 R6_2.5.1 DBI_1.1.2 lifecycle_1.0.3 [9] gtable_0.3.0 magrittr_2.0.3 scales_1.1.1 pillar_1.8.1
[13] rlang_1.0.6 cli_3.4.1 generics_0.1.3 vctrs_0.5.0
[17] tools_4.1.2 glue_1.6.2 munsell_0.5.0 compiler_4.1.2
[21] pkgconfig_2.0.3 colorspace_2.0-2 pbdZMQ_0.3-7 tidyselect_1.2.0 [25] tibble_3.1.8 ##############

library(caret) Loading required package: ggplot2 Loading required package: lattice

caught segfault address 0x18, cause 'memory not mapped'

Traceback: 1: fun(libname, pkgname) 2: doTryCatch(return(expr), name, parentenv, handler) 3: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 4: tryCatchList(expr, classes, parentenv, handlers) 5: tryCatch(fun(libname, pkgname), error = identity) 6: runHook(".onLoad", env, package.lib, package) 7: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) 8: asNamespace(ns) 9: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]), i[[2L]], from = package) 10: loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) 11: namespaceImport(ns, loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]), from = package) 12: loadNamespace(package, lib.loc) 13: doTryCatch(return(expr), name, parentenv, handler) 14: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 15: tryCatchList(expr, classes, parentenv, handlers) 16: 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 && !quietly) message(paste("Error:", msg), domain = NA) else stop(msg, call. = FALSE, domain = NA)}) 17: library(caret)

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

DrDids commented 1 year ago

Oops! after updating R to R4.2.1 and all packages ... it works! ;)

library(caret) Loading required package: ggplot2 Loading required package: lattice