react-native: Random crash on iOS - EXC_BAD_ACCESS (KERN_INVALID_ADDRESS)

Description

Hi guys,

I’m facing random crashed on iOS and unfortunately I’m not able to reproduce manually I was able to get the stacktrace from crashlytics and only recently the crash appears during detox test.

I attach all the material that I have

Can anyone faced similar problem? Thank you

React Native Version

0.70.13

Output of npx react-native info

System:
    OS: macOS 13.5.2
    CPU: (10) arm64 Apple M1 Max
    Memory: 77.66 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - /opt/homebrew/opt/node@18/bin/node
    Yarn: Not Found
    npm: 9.5.1 - /opt/homebrew/opt/node@18/bin/npm
    Watchman: 2023.05.01.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2022.1 AI-221.6008.13.2211.9619390
    Xcode: 15.0/15A240d - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.18 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: ^18.1.0 => 18.1.0 
    react-native: ^0.70.13 => 0.70.13 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

Unable to identify the steps

Snack, screenshot, or link to a repository

Screenshot 2023-09-21 alle 11 27 48

stacktrace.txt

detox_stacktrace.txt

About this issue

  • Original URL
  • State: open
  • Created 9 months ago
  • Comments: 21 (1 by maintainers)

Most upvoted comments

I jumped from RN 0.71 to RN0.73.2 (upgrade also many other libraries) and now the problem seems not anymore present. ¯_(ツ)_/¯

@marcoizzo having same stack trace as yours and same behaviour. I’ll try to disable hermes for a while and see if the crashes dissapears.

Screenshot 2023-12-29 at 09 54 04

I’m facing random crashed on iOS and unfortunately I’m not able to reproduce manually

I’m unsure how we can help you here without a proper reproducer sadly