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

Prevent ObjectDisposedException in BuildManager #11122

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

JanKrivanek
Copy link
Member

@JanKrivanek JanKrivanek commented Dec 10, 2024

Fixes ObjectDisposedException occuring during investigation of #11091
Fixes #10753

Context

We were blindly disposing a handle in synchronous scope while asynchronous code could heve been still running.
During the errors during GraphBuild this can lead to unhandled exceptions and unfinished logs

@JanKrivanek JanKrivanek enabled auto-merge (squash) December 10, 2024 19:59
@YuliiaKovalova
Copy link
Member

it should resolve
#10753

@JanKrivanek
Copy link
Member Author

Btw. ideally we'd really dispose the event - but it's instantiated once per Graph build request. So let's rather prevent a crash leading to losing diagnostics info

@YuliiaKovalova
Copy link
Member

YuliiaKovalova commented Dec 10, 2024 via email

@JanKrivanek JanKrivanek merged commit fc1f22b into main Dec 11, 2024
10 checks passed
@JanKrivanek JanKrivanek deleted the proto/handle-handle-exception branch December 11, 2024 09:06
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.

[Bug]: ObjectDisposedException in BuildManager.BuildGraph
3 participants