Skip to content
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

iOS fix a crash when quickly dismissing a modal #1384

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

elijah-semyonov
Copy link

@elijah-semyonov elijah-semyonov commented Jun 4, 2024

Dispose ComposeSceneKeyboardOffsetManager to prevent onComposeSceneOffsetChanged performing calls on closed ComposeScene

Fixes a crash reported in JetBrains/compose-multiplatform#4916

Testing

Repro sample is not crashing anymore

Release Notes

Fixes - iOS

  • Dismissing popup or dialogue within a very short timespan after its creation doesn't cause a crash.

@@ -37,5 +37,6 @@ val IosBugs = Screen.Selection(
ComposeAndNativeScroll,
MeasureAndLayoutCrash,
AnimationFreezeBug,
ModalMemoryLeak
ModalMemoryLeak,
ModalCrash
Copy link
Member

@MatkovIvan MatkovIvan Jun 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add unit test instead another page in sample app

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed to do it later

@@ -37,5 +37,6 @@ val IosBugs = Screen.Selection(
ComposeAndNativeScroll,
MeasureAndLayoutCrash,
AnimationFreezeBug,
ModalMemoryLeak
ModalMemoryLeak,
ModalCrash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed to do it later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants