Skip to content

[Android] SIGSEGV in librnscreens.so with Fabric / New Architecture #4151

@Siddhantshelake

Description

@Siddhantshelake

Description

We are seeing a native Android crash reported by Crashlytics that appears to originate in librnscreens.so.

This occurs with the React Native New Architecture (Fabric) enabled. The crash appears to happen during navigation / screen transitions.

The crash has been observed on react-native-screens@4.24.7.

I searched existing issues and found related discussions, but could not confirm that they match this exact crash signature:

We are currently evaluating whether upgrading to 4.25.2 resolves the issue, but I could not find a confirmed fix for this specific SIGSEGV in the release notes.

Crash stack

Crashed: Thread: SIGSEGV  0x000000e500000009
#00 pc 0x14c94 librnscreens.so (BuildId: ace33169f7be2c2f4fe1d0c784b2794a302153c7)
#01 pc 0x14a58 librnscreens.so (BuildId: ace33169f7be2c2f4fe1d0c784b2794a302153c7)
#02 pc 0x14a58 librnscreens.so (BuildId: ace33169f7be2c2f4fe1d0c784b2794a302153c7)
#03 pc 0x15680 librnscreens.so (BuildId: ace33169f7be2c2f4fe1d0c784b2794a302153c7)
#04 pc 0x155c0 librnscreens.so (BuildId: ace33169f7be2c2f4fe1d0c784b2794a302153c7)
#22 pc 0x66e090 libart.so
#23 pc 0x65f4fc libart.so
#26 pc 0x669380 libart.so

Package versions

{
  "react": "19.1.1",
  "react-native": "0.82.1",
  "react-native-screens": "4.24.7",
  "@react-navigation/native": "7.1.25",
  "@react-navigation/native-stack": "7.8.6"
}

Android configuration

newArchEnabled=true
hermesEnabled=true
minSdkVersion=34
compileSdkVersion=36
targetSdkVersion=36
Android Gradle Plugin=8.9.2

Expected behavior

Navigation and screen transitions should not crash the native Android process.

Actual behavior

Crashlytics reports a native SIGSEGV inside librnscreens.so.

Additional context

  • We have not yet identified a deterministic reproduction path.
  • The crash is observed in production via Firebase Crashlytics.
  • Fabric/New Architecture is enabled.
  • We are planning to upgrade to react-native-screens@4.25.2, but have not yet confirmed whether the issue is resolved there.
  • Please let us know if additional symbolication, tombstones, or native backtraces would help identify the root cause.

Questions

  1. Is this crash signature known and potentially related to the Android Fabric issues discussed in View recycling breaks due to fragment view transitions #3249 / fix(android): correctly end view transitions  #3250?
  2. Has a fix already landed in a version newer than 4.24.7?
  3. What additional diagnostics would help narrow down the root cause?

Steps to reproduce

  1. Build and run the Android app with the New Architecture enabled (newArchEnabled=true) and Hermes enabled.
  2. Use react-native-screens@4.24.7.
  3. Navigate through screens using @react-navigation/native-stack and trigger screen transitions repeatedly.
  4. Observe that the app occasionally crashes in production with a native SIGSEGV in librnscreens.so.

Notes: This crash is intermittent and we have not yet found a deterministic local reproduction.

Snack or a link to a repository

No Snack or public repository is available at the moment.

Screens version

4.24.7

React Native version

0.82.1

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Release mode

Device

Real device

Device model

Samsung Galaxy A35 5G (SM-A356U)

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-reproThis issue need minimum repro scenarioplatform:androidIssue related to Android part of the library

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions