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

fix: progress display race condition can result in LiveError #432

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

0xkarmacoma
Copy link
Collaborator

No description provided.

@0xkarmacoma 0xkarmacoma requested a review from daejunpark January 6, 2025 17:48
@@ -753,6 +754,9 @@ def future_callback(future_model):

# display assertion solving progress
if not args.no_status or args.early_exit:
# creating a new live display would fail if the previous one was still active
rich.get_console().clear_live()

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you elaborate on the race condition scenarios? my goal was to ensure only a single Status instance exists at a time. is it not the case, or is the Live instance a different thing from Status?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update from offline discussion: it's not super clear, but it might be related to the use of context manager within generator.

@0xkarmacoma 0xkarmacoma merged commit 950bd2a into main Jan 6, 2025
45 checks passed
@0xkarmacoma 0xkarmacoma deleted the fix/live-error branch January 6, 2025 20:52
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

Successfully merging this pull request may close these issues.

2 participants