Skip to content

EXC_BAD_ACCESS: Fatal topSvgLayout > KERN_INVALID_ADDRESS #2878

@Pietro-Putelli

Description

@Pietro-Putelli

Description

We are experiencing a fatal iOS crash related to react-native-svg, with the following signature:

EXC_BAD_ACCESS: topSvgLayout
KERN_INVALID_ADDRESS at 0x8

This is occurring in production and has affected multiple users over the last 90 days.
The crash appears to be happening during or immediately after layout events related to components.

Context of Occurrence

In our app, this crash occurs during dynamic UI updates involving components that render SVGs.
Based on logs immediately preceding the crash, the flow involves:

  • Adding or selecting UI items
  • Rendering or re-rendering components that include
  • Layout updates occurring during these state transitions

The crash tends to occur under the following conditions:

  • Rapid UI updates
  • Component mount/unmount cycles
  • Navigation away from a screen while layout changes are in progress
  • Frequent layout recalculations (resizing, selection updates, etc.)

Suspected Cause

Given the crash signature and behavior, this appears to be related to:

  • A layout event (topSvgLayout) being dispatched after the corresponding native view or event emitter has been deallocated
  • A race condition during mount/unmount in combination with layout events
  • Possibly Fabric-specific event emitter behavior (if New Architecture is enabled)

SVG version

15.15.0

React Native version

0.79.6

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Release app & dev bundle

Device

Real device

Device model

iPad Pro (11-inch) (5th generation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Missing infoThe user didn't precise the problem enoughMissing reproThis issue need minimum repro scenario

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions