Re: [R] mclapply hanging occasionally on macos

2024-12-31 Thread Ivo Welch
thank you, Ivan. this is terrific. your hunch was almost surely correct. the one that works (on the macbook air) is ``` R version 4.4.2 (2024-10-31) Platform: aarch64-apple-darwin20 Running under: macOS Sequoia 15.2 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.4

Re: [R] mclapply hanging occasionally on macos

2024-12-31 Thread Ivan Krylov via R-help
В Mon, 30 Dec 2024 19:16:11 -0800 Ivo Welch пишет: > useless.function <- function( ) { > y <- rnorm(3); x <- rnorm(3) > summary( lm( y ~ x )) ## useless > NULL > } > > run30 <- function(i) { > message("run30=", i) > useless.function() > } > > run30( 0 ) > message("many mc")

[R] mclapply hanging occasionally on macos

2024-12-31 Thread Ivo Welch
sequoia, 15.2. R --vanilla : 4.4.2 (2024-10-31). I have the same basic setup on three macs: a macbook air, a mac pro m1, and a mac mini m4. The following code is running into a bug on the mac pro m1 and the mac mini, but works just fine on my macbook air. (of course, it doesn't do anything usef

[R] mclapply hanging occasionally on macos

2024-12-29 Thread Ivo Welch
just a plain macos desktop, latest sequoia. no clusters or anything complex. when I ^c out of it, a `traceback()` on macos tells me that ``` [highest number]: selectChildren(ac[!fin], -1) [-1]: mclapply(... ``` I don't know what selectChildren is waiting for (internal? macos?), but it certainl