Skip to content

Prevent .NET from randomly calling WndProc in RequestCompositionBatchCommitAsync #16804

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

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

kekekeks
Copy link
Member

This method isn't reentrancy-friendly and that less-than-stellar way of dealing with COM objects in .NET is causing this to happen

This happens only on windows and only due to .NET locks being defective on STA threads, which is why it was hard to catch.

Should fix #15226

Thanks arnirichard for the stack trace which made it obvious

…CommitAsync

This method isn't reentrancy-friendly
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051471-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@kekekeks kekekeks added bug backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Aug 26, 2024
@maxkatz6 maxkatz6 added this pull request to the merge queue Aug 26, 2024
Merged via the queue into master with commit d6ecd36 Aug 26, 2024
12 checks passed
@maxkatz6 maxkatz6 deleted the fixes/request-composition-batch-async-nre branch August 26, 2024 16:04
grokys pushed a commit that referenced this pull request Sep 9, 2024
…CommitAsync (#16804)

This method isn't reentrancy-friendly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NRE in Compositor.RequestCompositionUpdate
3 participants