-
Notifications
You must be signed in to change notification settings - Fork 15
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
Julia freezes when only one thread throws an error in an @batch
block
#31
Comments
By crashes in serial execution, do you mean throws an error? The fix here is probably to have ThreadingUtilities.wait check if the task it waited on threw an error. |
I think the API will be that This wouldn't solve the problem of someone interrupting the process manually, as then Polyester wouldn't get the chance to reset its own state. But it would stop the hangs, and allow multiple threads to still be used. |
Yes - like throwing a |
I observed a similar problem, but where the thread quietly stops working instead of throwing. For example, when I run this
on two threads, I obtain the following result:
|
This is #30. You can use |
This one was a real Heisenbug. Unstable simulations, which crashed in serial execution, froze on multiple threads, but trying to let it freeze on purpose made the bug disappear.
If only one thread (except the first one!) throws an error, Julia freezes.
MWE:
Running this on more than one thread causes Julia to freeze after showing
Before
. This can be easily interrupted with Ctrl+C, which then seems to solve the problem for the session, but this is only due to #30, because now only one thread will be used.The text was updated successfully, but these errors were encountered: