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

Fix a logical error causing Compose tree corruption and consequent crash on iOS #1163

Merged
merged 2 commits into from Mar 5, 2024

Conversation

elijah-semyonov
Copy link

@elijah-semyonov elijah-semyonov commented Mar 5, 2024

Proposed Changes

Add reduced reported issue repro, fix logical error in SortedSet.add.

Testing

Test: SortedSetTest.checkExistingWhenAdded, no crash happens in reported scenario.

Issues Fixed

Fixes: JetBrains/compose-multiplatform#4422

Copy link
Member

@MatkovIvan MatkovIvan left a comment

Choose a reason for hiding this comment

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

It must be covered by unit tests

@elijah-semyonov
Copy link
Author

It must be covered by unit tests

Added a unit test.

@elijah-semyonov elijah-semyonov merged commit 0456a30 into jb-main Mar 5, 2024
9 checks passed
@elijah-semyonov elijah-semyonov deleted the es/measure-and-layout-crash branch March 5, 2024 15:10
igordmn pushed a commit that referenced this pull request Mar 5, 2024
## Proposed Changes

Add reduced reported issue repro, fix logical error in `SortedSet.add`.

## Testing

Test: `SortedSetTest.checkExistingWhenAdded`, no crash happens in
reported scenario.

## Issues Fixed

Fixes: JetBrains/compose-multiplatform#4422
# Conflicts:
#	compose/mpp/demo/src/uikitMain/kotlin/bugs/IosBugs.kt
@elijah-semyonov elijah-semyonov added the changelog1.6.1 Temporary label for 1.6.1 changelog (will be removed) label Mar 12, 2024
@elijah-semyonov elijah-semyonov changed the title Fix crash, add reduced repro Fix a logical error causing Compose tree corruption and consequent crash Mar 12, 2024
@elijah-semyonov elijah-semyonov changed the title Fix a logical error causing Compose tree corruption and consequent crash Fix a logical error causing Compose tree corruption and consequent crash on iOS Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog1.6.1 Temporary label for 1.6.1 changelog (will be removed)
Projects
None yet
4 participants