Skip to content
Prev 325 / 2152 Next

multicore mclapply hangs when 'debug' loaded

Dirk Eddelbuettel skrev:
The newest version of multicore 0.1-4 has experimental support for Windows.
Excellent suggestion, it was the tcltk package that triggered it, not
the debug package.
I wouldn't call it documented behavior that the tcltk package should not
be loaded.
The intuitive rule is that you should not use any GUI calls in the code
executed in the created child processes.

This simple R --vanilla session hangs:
library(tcltk)
library(multicore)
example(mclapply)
R version 2.9.1 (2009-06-26)
x86_64-pc-linux-gnu

locale:
LC_CTYPE=da_DK.UTF-8;LC_NUMERIC=C;LC_TIME=da_DK.UTF-8;LC_COLLATE=da_DK.UTF-8;LC_MONETARY=C;LC_MESSAGES=da_DK.UTF-8;LC_PAPER=da_DK.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=da_DK.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] tcltk     stats     graphics  grDevices utils     datasets  methods 
[8] base    

other attached packages:
[1] multicore_0.1-3

On Ubuntu 8.10.