Skip to content

Conversation

@ASalavei
Copy link

@ASalavei ASalavei commented Jan 9, 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.

@ASalavei ASalavei merged commit bc35c91 into jb-main Jan 16, 2026
19 checks passed
@ASalavei ASalavei deleted the andrei.salavei/fix-redrawer-crash branch January 16, 2026 15:57
ASalavei added a commit that referenced this pull request 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.
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.

5 participants