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)
Description
We are experiencing a fatal iOS crash related to react-native-svg, with the following signature:
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:
The crash tends to occur under the following conditions:
Suspected Cause
Given the crash signature and behavior, this appears to be related to:
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)