Skip to content

Conversation

@JanBobolz
Copy link
Member

Previously, when an exception occured during some computation (say, you're trying to compute e(g2, g2)), the worker thread just swallowed the exception and the waiting (main) thread hangs forever, waiting for a result whose computation was aborted.

This often gave the appearance that the program hangs because some race condition appeared. The actual error was never actually displayed if the computation happened on a background thread.

With this pull request, any errors are now also passed to threads waiting for the computation to finish, so exceptions are now properly displayed and programs won't hang mysteriously anymore.

@JanBobolz JanBobolz added the bug Something isn't working label Sep 16, 2021
@JanBobolz JanBobolz requested a review from feidens September 16, 2021 10:53
@JanBobolz JanBobolz self-assigned this Sep 16, 2021
@feidens feidens merged commit e35b128 into develop Sep 16, 2021
@feidens feidens deleted the fix-hangups branch September 16, 2021 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants