Skip to content

Comments

Fix race conditions in MetalRedrawer (#2672)#2691

Merged
siarb merged 1 commit intorelease/1.10from
andrei.salavei/cherry-pick-2672
Jan 19, 2026
Merged

Fix race conditions in MetalRedrawer (#2672)#2691
siarb merged 1 commit intorelease/1.10from
andrei.salavei/cherry-pick-2672

Conversation

@ASalavei
Copy link

@ASalavei ASalavei commented Jan 16, 2026

Await when all scheduled tasks in async rendering queue are completed before clearing resources.
Move surface and renderTarget closing to the critical section.

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

Release Notes

Fixes - iOS

  • Fix the crash that may occur when the Compose container disposes.

Await when all scheduled tasks in async rendering queue are completed
before clearing resources.
Move surface and renderTarget closing to the critical section.

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

## Release Notes
### Fixes - iOS
- Fix the crash that may occur when the Compose container disposes.
@ASalavei ASalavei requested a review from siarb January 16, 2026 16:01
@siarb siarb merged commit 7956af5 into release/1.10 Jan 19, 2026
16 checks passed
@siarb siarb deleted the andrei.salavei/cherry-pick-2672 branch January 19, 2026 14:13
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