Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The pause button doesn't work for running codes and the termination button cannot terminate parallel computing. #175

Open
xiajunwen1007 opened this issue Jun 10, 2023 · 1 comment

Comments

@xiajunwen1007
Copy link

xiajunwen1007 commented Jun 10, 2023

Describe the bug
As described in the title.

To Reproduce
For the fist problem, set a break point at the bottom line and run the following code. When the code is running, click the pause button. A message would show up saying that "An unknown error occurred. Please consult the log for more details".

s=1
for(i in 1:100000000){
  s=s+1
}
print(s)

For the second problem, set a break point at the bottom line and run the following code. When the code is running into the parLapply, click the termination button. The debug console is closed as expected, but, in the system monitor, we would see that the R sessions used for parallel computing are still active.
image

library(parallel)
cumsum <- function(s){
  s=1
  for(i in 1:10000000000){
    s=s+1
  }
  return(s)
}

clnum <- 8
cl <- makeCluster(getOption("cl.cores", clnum))
res <- parLapply(cl, 1:100, cumsum)
print(res)

Desktop (please complete the following information):

  • OS: macOS Monterey 12.6
  • R Version: 4.2.2
  • vscDebugger Version: the newest
  • vscode-r-debugger Version: the newest

Additional context
I'm using a mac with apple silicon m1.

@xiajunwen1007
Copy link
Author

Is there any way to handle this problem especially for terminating the parallel computing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant