Skip to content

fix(android): bump androidx.collection to 1.4.4 to avoid MutableIntObjectMap corruption in SurfaceMountingManager - #58389

Closed
pawicao wants to merge 1 commit into
react:mainfrom
pawicao:fix/androidx-collection-1.4.4
Closed

fix(android): bump androidx.collection to 1.4.4 to avoid MutableIntObjectMap corruption in SurfaceMountingManager#58389
pawicao wants to merge 1 commit into
react:mainfrom
pawicao:fix/androidx-collection-1.4.4

Conversation

@pawicao

@pawicao pawicao commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary:

since #56646 the view registry is a MutableIntObjectMap; androidx.collection 1.4.0 to 1.4.2 corrupt ScatterMap and its primitive variants after remove-heavy sequences, fixed in 1.4.3 (https://issuetracker.google.com/issues/352560465). Apps resolve 1.4.0 or 1.4.2 and lose registry entries; RN then drops mount instructions and can leave stale views.

Fixes #58388.

Changelog:

[ANDROID] [FIXED] - Bump androidx.collection to 1.4.4 to fix view registry entries getting lost in SurfaceMountingManager

Test plan

Reproducer: https://github.com/pawicao/rn-android-view-registry-corruption

  • RN 0.87.1 app resolving androidx.collection 1.4.2: 91 Unable to find viewState soft exceptions on 45 tags over two 40-round runs on a Pixel 9a, and a stale view left on screen.
  • Same screen with androidx.collection pinned to 1.4.4: none over 120 rounds.

…ng view registry entries

Since react#56646 the Android view registry is a MutableIntObjectMap. androidx.collection
1.4.0 to 1.4.2 corrupt ScatterMap and its primitive variants after remove-heavy
sequences; androidx fixed it in 1.4.3 (b/352560465). Apps resolve 1.4.0 or 1.4.2,
lose registry entries for live views, and RN then drops mount instructions for
them, which can leave stale views on screen.

Fixes react#58388

Changelog: [Android] [Fixed] - Bump androidx.collection to 1.4.4 to fix view registry entries getting lost in SurfaceMountingManager
@meta-cla

meta-cla Bot commented Sep 7, 2026

Copy link
Copy Markdown

Hi @pawicao!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 8, 2026
@meta-cla

meta-cla Bot commented Sep 8, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Sep 8, 2026
@meta-codesync

meta-codesync Bot commented Sep 8, 2026

Copy link
Copy Markdown

@javache has imported this pull request. If you are a Meta employee, you can view this in D119149754.

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in d6a5f15 Sep 8, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 8, 2026
@meta-codesync

meta-codesync Bot commented Sep 8, 2026

Copy link
Copy Markdown

@javache merged this pull request in d6a5f15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

2 participants