Skip to content

Fix re-entrance in draw function#2756

Merged
ASalavei merged 7 commits intojb-mainfrom
andrei.salavei/fix-draw-recursion
Feb 16, 2026
Merged

Fix re-entrance in draw function#2756
ASalavei merged 7 commits intojb-mainfrom
andrei.salavei/fix-draw-recursion

Conversation

@ASalavei
Copy link

@ASalavei ASalavei commented Feb 11, 2026

Fix an issue where the ComposeScene in the platform layer may be forced to re-render drawing function during the render call under specific conditions.
Remove the force-render call when the last layer is removed, but use it when the layer first appears to clear its content.

Fixes https://youtrack.jetbrains.com/issue/CMP-9455
Fixes https://youtrack.jetbrains.com/issue/CMP-9755

Release Notes

Fixes - iOS

  • Fix crash in MetalRedrawer that occurs when Popup or Dialog box opens and closes quickly

@ASalavei ASalavei requested a review from MatkovIvan February 12, 2026 10:06
@ASalavei ASalavei merged commit e0050d0 into jb-main Feb 16, 2026
19 checks passed
@ASalavei ASalavei deleted the andrei.salavei/fix-draw-recursion branch February 16, 2026 12:36
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.

3 participants