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,worker-termination.R > ## Don't edit - it was autogenerated by inst/testme/deploy.R > future.callr:::testme("callr,worker-termination") Test 'callr,worker-termination' ... 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,worker-termination.R' > library(future.callr) Loading required package: future > message("*** callr() - terminating workers ...") *** callr() - terminating workers ... > plan(callr, workers = 2) > all <- nbrOfWorkers() > free <- nbrOfFreeWorkers() > stopifnot(nbrOfWorkers() == 2, nbrOfFreeWorkers() == + 2) > f <- future({ + tools::pskill(pid = Sys.getpid()) + }) > res <- tryCatch(value(f), error = identity) > print(res) ) of class CallrFuture failed for unknown reason while running, while running on localhost (pid 20192; 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 20192) started at 2025-06-05T17:22:53+0000 finished with exit code 1> Future UUID: 8342587ce5512bb655e6536cc9dfc7cf-1 DEBUG: BEGIN TROUBLESHOOTING HELP Future involved: CallrFuture: Label: Expression: { tools::pskill(pid = Sys.getpid()) } 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: R_GlobalEnv State: 'interrupted' Resolved: TRUE Unique identifier: 8342587ce5512bb655e6536cc9dfc7cf-1 Owner process: 8342587ce5512bb655e6536cc9dfc7cf Class: 'CallrFuture', 'Future' Value: Conditions captured: callr status: 'finished' callr information: PID=20192, PROCESS 'Rterm', finished. DEBUG: END TROUBLESHOOTING HELP > stopifnot(inherits(res, "FutureError")) > stopifnot(nbrOfWorkers() == all, nbrOfFreeWorkers() == + free) > message("*** callr() - terminating workers ... DONE") *** callr() - terminating workers ... 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_19_20_16_14476' Sourcing 6 epilogue scripts ... done Test time: user.self=0.2s, sys.self=0.06s, elapsed=1s, user.child=NAs, sys.child=NAs Test 'tempdirname' ... success > > proc.time() user system elapsed 0.51 0.10 1.40