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

xlsx crashes R Studio, R.app (segfault) when loaded on macOS 14.2.1 MacBook Pro M3Max #204

Open
mac471 opened this issue Dec 31, 2023 · 0 comments

Comments

@mac471
Copy link

mac471 commented Dec 31, 2023

EDIT: After spending hours looking at this, I found this helpful post that solved the problem: mimno/RMallet#22 (comment)

ORIGINAL (shortened) POST (for anyone who runs into this)

On a new MacBook Pro M3Max, typing the following in R Studio Desktop (2023.12.0 Build 369 - latest) causes R Studio to crash ("R Session Aborted"):

library(xlsx)

R Version: 4.3.2 (aarch64-apple-darwin20 - latest from Cran)
rJava: 1.0.10 (Cran)
xlsx: 0.6.5 (Cran)
xlsxjars: 0.6.1 (Cran)
JDK: Oracle JDK SE11 version 11.0.21
Ran sudo R CMD javareconf before starting R Studio

Running the same command in R.app GUI (1.80 (8281) aarch64-apple-darwin20) crashes but provides more information:

> library(xlsx)

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

Traceback:
 1: .jnew("org/apache/poi/xssf/usermodel/XSSFWorkbook")
 2: createWorkbook()
 3: fun(libname, pkgname)
 4: doTryCatch(return(expr), name, parentenv, handler)
 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 6: tryCatchList(expr, classes, parentenv, handlers)
 7: tryCatch(fun(libname, pkgname), error = identity)
 8: runHook(".onLoad", env, package.lib, package)
 9: loadNamespace(package, lib.loc)
10: doTryCatch(return(expr), name, parentenv, handler)
11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
12: tryCatchList(expr, classes, parentenv, handlers)
13: 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)})
14: library(xlsx)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection: 
@mac471 mac471 changed the title xlsx crashes R Studio, R.app but not R (from Terminal) on library(xlsx) on macOS 14.2.1 MacBook Pro M3Max xlsx crashes R Studio, R.app (segfault) when loaded on macOS 14.2.1 MacBook Pro M3Max Jan 1, 2024
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

1 participant