Skip to content

Comments

Guard canvas drawing with a critical section#2448

Merged
ASalavei merged 1 commit intojb-mainfrom
andrei.salavei/fix-async-rendering-crash
Oct 7, 2025
Merged

Guard canvas drawing with a critical section#2448
ASalavei merged 1 commit intojb-mainfrom
andrei.salavei/fix-async-rendering-crash

Conversation

@ASalavei
Copy link

@ASalavei ASalavei commented Oct 7, 2025

Add a critical section around the canvas drawing to prevent race conditions in this area.
Race conditions occur when asynchronous and synchronous frame draw calls follow one another.

Fixes https://youtrack.jetbrains.com/issue/CMP-8144/Crash-when-enabling-parallel-rendering-in-MetalRedrawer-for-iOS

Release Notes

Fixes - iOS

  • Fix crash when parallelRendering is enabled.

@ASalavei ASalavei merged commit bd40b5d into jb-main Oct 7, 2025
10 checks passed
@ASalavei ASalavei deleted the andrei.salavei/fix-async-rendering-crash branch October 7, 2025 14:51
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.

4 participants