R Under development (unstable) (2025-06-04 r88278 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ## This runs testme test script inst/testme/test-callr,launch-failure.R > ## Don't edit - it was autogenerated by inst/testme/deploy.R > future.callr:::testme("callr,launch-failure") Test 'callr,launch-failure' ... Sourcing 9 prologue scripts ... 01/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/001.load.R' 02/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/002.record-state.R' 03/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/030.imports.R' 04/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/050.utils.R' 05/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/090.context.R' 06/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/090.options.R' 07/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/091.envvars.R' 08/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/099.future-setup.R' 09/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/995.detrius-connections.R' Sourcing 9 prologue scripts ... done Running test script: 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/test-callr,launch-failure.R' > library(future.callr) Loading required package: future > library(listenv) > options(future.debug = FALSE) > message("*** callr() ...") *** callr() ... > message("- Error in ./.Rprofile causes callr process to fail") - Error in ./.Rprofile causes callr process to fail > plan(callr, workers = 2) > for (kk in seq_len(nbrOfWorkers())) { + tf <- file.path(tempdir(), ".Rprofile") + cat("stop('boom')\n", file = tf) + f <- local({ + .... [TRUNCATED] > tf <- file.path(tempdir(), ".Rprofile") > cat("stop('boom')\n", file = tf) > f <- local({ + opwd <- setwd(dirname(tf)) + on.exit(setwd(opwd)) + future(42) + }) Warning in value[[3L]](cond) : [FUTURE INTERRUPTED]: Caught FutureInterruptError with error message: Future () of class CallrFuture failed for unknown reason while running, while running on localhost (pid 140124; exit code 1). CallrFuture () failed. The reason reported was '! callr subprocess failed: could not start R, exited with non-zero status, has crashed or was killed'. Post-mortem diagnostic: The parallel worker (PID 140124) started at 2025-06-05T16:51:09+0000 finished with exit code 1 > message(" - Waiting for future to finish") - Waiting for future to finish > repeat { + res <- tryCatch(resolved(f), error = identity) + if (!is.logical(res) || res) + break + } > print(res) ) of class CallrFuture failed for unknown reason while running, while running on localhost (pid 127276; exit code 1). CallrFuture () failed. The reason reported was '! callr subprocess failed: could not start R, exited with non-zero status, has crashed or was killed'. Post-mortem diagnostic: The parallel worker (PID 127276) started at 2025-06-05T16:51:09+0000 finished with exit code 1> Future UUID: ee2f8c8ee0a7db35c1da9c7b7733f92a-3 DEBUG: BEGIN TROUBLESHOOTING HELP Future involved: CallrFuture: Label: Expression: [1] 42 Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Lazy evaluation: FALSE Local evaluation: TRUE Asynchronous evaluation: TRUE Early signaling: FALSE Environment: 0x000002ad8099fca0 State: 'interrupted' Resolved: TRUE Unique identifier: ee2f8c8ee0a7db35c1da9c7b7733f92a-3 Owner process: ee2f8c8ee0a7db35c1da9c7b7733f92a Class: 'CallrFuture', 'Future' Value: Conditions captured: callr status: 'finished' callr information: PID=127276, PROCESS 'Rterm', finished. DEBUG: END TROUBLESHOOTING HELP > stopifnot(inherits(res, "error"), inherits(res, "FutureError"), + inherits(res, c("FutureInterruptError", "CallrFutureError"))) > message(" - Getting results") - Getting results > res <- tryCatch(result(f), error = identity) > print(res) ) of class CallrFuture failed for unknown reason while running, while running on localhost (pid 127276; exit code 1). CallrFuture () failed. The reason reported was '! callr subprocess failed: could not start R, exited with non-zero status, has crashed or was killed'. Post-mortem diagnostic: The parallel worker (PID 127276) started at 2025-06-05T16:51:09+0000 finished with exit code 1> Future UUID: ee2f8c8ee0a7db35c1da9c7b7733f92a-3 DEBUG: BEGIN TROUBLESHOOTING HELP Future involved: CallrFuture: Label: Expression: [1] 42 Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Lazy evaluation: FALSE Local evaluation: TRUE Asynchronous evaluation: TRUE Early signaling: FALSE Environment: 0x000002ad8099fca0 State: 'interrupted' Resolved: TRUE Unique identifier: ee2f8c8ee0a7db35c1da9c7b7733f92a-3 Owner process: ee2f8c8ee0a7db35c1da9c7b7733f92a Class: 'CallrFuture', 'Future' Value: Conditions captured: callr status: 'finished' callr information: PID=127276, PROCESS 'Rterm', finished. DEBUG: END TROUBLESHOOTING HELP > stopifnot(inherits(res, "error"), inherits(res, "FutureError"), + inherits(res, c("FutureInterruptError", "CallrFutureError"))) > file.remove(tf) [1] TRUE > message("*** callr() ... DONE") *** callr() ... DONE Sourcing 6 epilogue scripts ... 01/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/001.undo-future.R' 02/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/002.undo-state.R' Failed to undo environment variables: - Expected environment variables: [n=213] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', ..., 'tempdirname' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: 03/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/090.gc.R' 04/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/099.session_info.R' 05/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/995.detritus-connections.R' 06/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/999.detritus-files.R' Skipping, because path appears not to be an 'R CMD check' folder: 'D:/temp/2025_06_05_18_50_16_8598' Sourcing 6 epilogue scripts ... done Test time: user.self=0.4s, sys.self=0.2s, elapsed=2s, user.child=NAs, sys.child=NAs Test 'tempdirname' ... success > > proc.time() user system elapsed 0.64 0.39 2.12