Skip to content

Fixed rare soft-"freezes" with OnRender(c) { ...; InvalidateVisual(); … } pattern #18901

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

Conversation

kekekeks
Copy link
Member

This is actually triggered by calling Compositor.RequestCompositionUpdate() while being inside of such an update.

We might make this an invalid thing to do later, but right now it breaks other rendering too.

@kekekeks kekekeks added bug backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch customer-priority Issue reported by a customer with a support agreement. labels May 21, 2025
@avaloniaui-bot
Copy link

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

@maxkatz6 maxkatz6 added this pull request to the merge queue May 21, 2025
Merged via the queue into master with commit 486f8c7 May 21, 2025
12 checks passed
@maxkatz6 maxkatz6 deleted the fixes/dispatcher-invalidate-visual-during-render-freeze branch May 21, 2025 23:07
MrJul pushed a commit that referenced this pull request Jun 5, 2025
@MrJul MrJul added backported-11.3.x and removed backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported-11.3.x bug customer-priority Issue reported by a customer with a support agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants