Github Actions tests fail exclusively on Mac, may be related to rlang::check_installed()?

Hi folks,

Having a mysterious issue w/ my package tests. See:

chore: update R CMD check · davidcarslaw/openairmaps@c1869ec

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

The issue seems to kick in with the rlang::check_installed function:

24: rlang::check_installed(c("ggplot2", "ggspatial", "prettymapr", "ggtext"))

This only occurs for the Mac run - Windows / Linux are both fine and can run the test.

I don't know if there are any GitHub actions wizards that can explain what may be occurring!

Jack

This is a crash that happens when one of those packages is loaded:

Traceback:
 1: dyn.load(file, DLLpath = DLLpath, ...)
 2: library.dynam(lib, package, package.lib)
 3: loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])

Unfortunately I can't say which one.

First I would delete the cached packages, to eliminate the possibility that this is caused by an older cached packages that is not compatible with the current R release or other packages for some reason.

Hi Gabor,

Thanks for the reply.

I've tried clearing the MacOS cache and re-running (chore: update R CMD check · davidcarslaw/openairmaps@c1869ec) but it still seems like it failed.

I can't reproduce this on macOS locally, so it is hard to say what's going on.

You can try to log in to the VM to debug this interactively, I suggest you try to add this action to your workflow, and follow the instructions: