Skip to content

[Due for payment 2026-09-08] [iOS] Crash when duplicating more than 15 reports with 50+ expenses #100008

Description

@luacmartins

Problem

On iOS, duplicating more than 15 reports containing 50+ expenses each crashes app.

Related issue: #98970

Why is this important?

Large batch report duplication crashes iOS app. Root cause differs from crash reported on web in #98970.

Solution

Patch React Native RCTViewComponentView to resolve currentContainerView before reading child superview in unmountChildComponentView:index:. Reading currentContainerView can migrate existing subviews when custom container usage changes, making assertion compare hierarchy from different states.

Reproduction

Precondition: create several reports with 50+ expenses each.

  1. Open staging.new.expensify on iOS.
  2. Go to Spend > Reports.
  3. Select more than 15 prepared reports.
  4. Duplicate reports.

Expected: reports duplicate.

Actual: iOS app crashes.

Context: https://expensify.slack.com/archives/C01GTK53T8Q/p1788247737403139

cc @mukhrr @nkdengineer

Issue OwnerCurrent Issue Owner: @mallenexpensify
Issue OwnerCurrent Issue Owner: @mukhrr

Activity

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions