Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realm Expo template app crashes on startup only in production (Hermes enabled) #5172

Closed
atdyer opened this issue Dec 9, 2022 · 8 comments
Closed

Comments

@atdyer
Copy link
Contributor

atdyer commented Dec 9, 2022

How frequently does the bug occur?

All the time

Description

The Realm Expo template app cannot be opened in production. In development mode, the app works as expected. After building with EAS and installing on device, the app is unable to be opened. Tapping on the app icon gives a quick flash of a transparent app window before it is closed. Attempting to open the app repeatedly produces the same result, though sometimes (rarely) you get lucky and the app opens.

Stacktrace & log output

None.

Can you reproduce the bug?

Yes, always

Reproduction Steps

  1. Create a new project using the Expo Realm template.
expo init crash-repro --template @realm/expo-template-ts
  1. Enable Hermes engine by editing the app.json to include:
{
  "expo": {
    ...
    "jsEngine": "hermes",
  }
}
  1. Run the app on your simulator:
expo run:ios
  1. Confirm that the app opens and runs on the simulator.
  2. Initialize EAS
eas init --id [id]
  1. Configure EAS Build, only need to select iOS build:
eas build:configure

My eas.json file looks like:

{
  "cli": {
    "version": ">= 3.0.0"
  },
  "build": {
    "development": {
      "distribution": "internal",
      "android": {
        "gradleCommand": ":app:assembleDebug"
      },
      "ios": {
        "buildConfiguration": "Debug"
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}
  1. Kick off a Preview build:
eas build --profile preview --platform ios
  1. When build finishes, download app onto phone by scanning QR code and attempt to open app.

Version

^11.0.0

What SDK flavour are you using?

Local Database only

Are you using encryption?

No, not using encryption

Platform OS and version(s)

iOS 16.0.2

Build environment

package.json:

{
  "name": "crash-repro",
  "version": "1.0.0",
  "scripts": {
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios"
  },
  "dependencies": {
    "@realm/react": "^0.4.1",
    "expo": "~47.0.8",
    "expo-dev-client": "~2.0.0",
    "expo-splash-screen": "~0.17.5",
    "expo-status-bar": "~1.4.2",
    "react": "18.1.0",
    "react-native": "0.70.5",
    "react-native-get-random-values": "~1.8.0",
    "realm": "^11.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/plugin-proposal-decorators": "^7.19.0",
    "@realm/babel-plugin": "^0.1.0",
    "@types/react": "~18.0.14",
    "@types/react-native": "~0.70.6",
    "typescript": "~4.3.5"
  },
  "private": true
}

Podfile:

require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")

require 'json'
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}

platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0'
install! 'cocoapods',
  :deterministic_uuids => false

target 'crashrepro' do
  use_expo_modules!
  config = use_native_modules!

  use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    :hermes_enabled => podfile_properties['expo.jsEngine'] == 'hermes',
    :fabric_enabled => flags[:fabric_enabled],
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/..",
    #
    # Uncomment to opt-in to using Flipper
    # Note that if you have use_frameworks! enabled, Flipper will not work
    # :flipper_configuration => !ENV['CI'] ? FlipperConfiguration.enabled : FlipperConfiguration.disabled,
  )

  post_install do |installer|
    react_native_post_install(
      installer,
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)

    # This is necessary for Xcode 14, because it signs resource bundles by default
    # when building for devices.
    installer.target_installation_results.pod_target_installation_results
      .each do |pod_name, target_installation_result|
      target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
        resource_bundle_target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        end
      end
    end
  end

  post_integrate do |installer|
    begin
      expo_patch_react_imports!(installer)
    rescue => e
      Pod::UI.warn e
    end
  end
end`Podfile.lock`:

PODS:
  - boost (1.76.0)
  - DoubleConversion (1.1.6)
  - EXApplication (5.0.1):
    - ExpoModulesCore
  - EXConstants (14.0.2):
    - ExpoModulesCore
  - EXErrorRecovery (4.0.1):
    - ExpoModulesCore
  - EXFileSystem (15.1.1):
    - ExpoModulesCore
  - EXFont (11.0.1):
    - ExpoModulesCore
  - EXJSONUtils (0.4.0)
  - EXManifests (0.4.0):
    - EXJSONUtils
  - Expo (47.0.8):
    - ExpoModulesCore
  - expo-dev-client (2.0.1):
    - EXManifests
    - expo-dev-launcher
    - expo-dev-menu
    - expo-dev-menu-interface
    - EXUpdatesInterface
  - expo-dev-launcher (2.0.2):
    - EXManifests
    - expo-dev-launcher/Main (= 2.0.2)
    - expo-dev-menu
    - expo-dev-menu-interface
    - ExpoModulesCore
    - EXUpdatesInterface
    - React-Core
  - expo-dev-launcher/Main (2.0.2):
    - EXManifests
    - expo-dev-launcher/Unsafe
    - expo-dev-menu
    - expo-dev-menu-interface
    - ExpoModulesCore
    - EXUpdatesInterface
    - React-Core
  - expo-dev-launcher/Unsafe (2.0.2):
    - EXManifests
    - expo-dev-menu
    - expo-dev-menu-interface
    - ExpoModulesCore
    - EXUpdatesInterface
    - React-Core
  - expo-dev-menu (2.0.2):
    - expo-dev-menu/Main (= 2.0.2)
  - expo-dev-menu-interface (1.0.0)
  - expo-dev-menu/GestureHandler (2.0.2)
  - expo-dev-menu/Main (2.0.2):
    - EXManifests
    - expo-dev-menu-interface
    - expo-dev-menu/Vendored
    - ExpoModulesCore
    - React-Core
  - expo-dev-menu/Reanimated (2.0.2):
    - DoubleConversion
    - FBLazyVector
    - FBReactNativeSpec
    - glog
    - RCT-Folly
    - RCTRequired
    - RCTTypeSafety
    - React-callinvoker
    - React-Core
    - React-Core/DevSupport
    - React-Core/RCTWebSocket
    - React-CoreModules
    - React-cxxreact
    - React-jsi
    - React-jsiexecutor
    - React-jsinspector
    - React-RCTActionSheet
    - React-RCTAnimation
    - React-RCTBlob
    - React-RCTImage
    - React-RCTLinking
    - React-RCTNetwork
    - React-RCTSettings
    - React-RCTText
    - React-RCTVibration
    - ReactCommon/turbomodule/core
    - Yoga
  - expo-dev-menu/SafeAreaView (2.0.2)
  - expo-dev-menu/Vendored (2.0.2):
    - expo-dev-menu/GestureHandler
    - expo-dev-menu/Reanimated
    - expo-dev-menu/SafeAreaView
  - ExpoKeepAwake (11.0.1):
    - ExpoModulesCore
  - ExpoModulesCore (1.0.3):
    - React-Core
    - ReactCommon/turbomodule/core
  - EXSplashScreen (0.17.5):
    - ExpoModulesCore
    - React-Core
  - EXUpdatesInterface (0.8.1)
  - FBLazyVector (0.70.5)
  - FBReactNativeSpec (0.70.5):
    - RCT-Folly (= 2021.07.22.00)
    - RCTRequired (= 0.70.5)
    - RCTTypeSafety (= 0.70.5)
    - React-Core (= 0.70.5)
    - React-jsi (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - fmt (6.2.1)
  - glog (0.3.5)
  - hermes-engine (0.70.5)
  - libevent (2.1.12)
  - RCT-Folly (2021.07.22.00):
    - boost
    - DoubleConversion
    - fmt (~> 6.2.1)
    - glog
    - RCT-Folly/Default (= 2021.07.22.00)
  - RCT-Folly/Default (2021.07.22.00):
    - boost
    - DoubleConversion
    - fmt (~> 6.2.1)
    - glog
  - RCT-Folly/Futures (2021.07.22.00):
    - boost
    - DoubleConversion
    - fmt (~> 6.2.1)
    - glog
    - libevent
  - RCTRequired (0.70.5)
  - RCTTypeSafety (0.70.5):
    - FBLazyVector (= 0.70.5)
    - RCTRequired (= 0.70.5)
    - React-Core (= 0.70.5)
  - React (0.70.5):
    - React-Core (= 0.70.5)
    - React-Core/DevSupport (= 0.70.5)
    - React-Core/RCTWebSocket (= 0.70.5)
    - React-RCTActionSheet (= 0.70.5)
    - React-RCTAnimation (= 0.70.5)
    - React-RCTBlob (= 0.70.5)
    - React-RCTImage (= 0.70.5)
    - React-RCTLinking (= 0.70.5)
    - React-RCTNetwork (= 0.70.5)
    - React-RCTSettings (= 0.70.5)
    - React-RCTText (= 0.70.5)
    - React-RCTVibration (= 0.70.5)
  - React-bridging (0.70.5):
    - RCT-Folly (= 2021.07.22.00)
    - React-jsi (= 0.70.5)
  - React-callinvoker (0.70.5)
  - React-Codegen (0.70.5):
    - FBReactNativeSpec (= 0.70.5)
    - RCT-Folly (= 2021.07.22.00)
    - RCTRequired (= 0.70.5)
    - RCTTypeSafety (= 0.70.5)
    - React-Core (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - React-Core (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default (= 0.70.5)
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/CoreModulesHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/Default (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/DevSupport (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default (= 0.70.5)
    - React-Core/RCTWebSocket (= 0.70.5)
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-jsinspector (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTActionSheetHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTAnimationHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTBlobHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTImageHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTLinkingHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTNetworkHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTSettingsHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTTextHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTVibrationHeaders (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-Core/RCTWebSocket (0.70.5):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default (= 0.70.5)
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - Yoga
  - React-CoreModules (0.70.5):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.5)
    - React-Codegen (= 0.70.5)
    - React-Core/CoreModulesHeaders (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-RCTImage (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - React-cxxreact (0.70.5):
    - boost (= 1.76.0)
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-callinvoker (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsinspector (= 0.70.5)
    - React-logger (= 0.70.5)
    - React-perflogger (= 0.70.5)
    - React-runtimeexecutor (= 0.70.5)
  - React-hermes (0.70.5):
    - DoubleConversion
    - glog
    - hermes-engine
    - RCT-Folly (= 2021.07.22.00)
    - RCT-Folly/Futures (= 2021.07.22.00)
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-jsiexecutor (= 0.70.5)
    - React-jsinspector (= 0.70.5)
    - React-perflogger (= 0.70.5)
  - React-jsi (0.70.5):
    - boost (= 1.76.0)
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-jsi/Default (= 0.70.5)
  - React-jsi/Default (0.70.5):
    - boost (= 1.76.0)
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
  - React-jsiexecutor (0.70.5):
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-perflogger (= 0.70.5)
  - React-jsinspector (0.70.5)
  - React-logger (0.70.5):
    - glog
  - react-native-get-random-values (1.8.0):
    - React-Core
  - React-perflogger (0.70.5)
  - React-RCTActionSheet (0.70.5):
    - React-Core/RCTActionSheetHeaders (= 0.70.5)
  - React-RCTAnimation (0.70.5):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.5)
    - React-Codegen (= 0.70.5)
    - React-Core/RCTAnimationHeaders (= 0.70.5)
    - React-jsi (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - React-RCTBlob (0.70.5):
    - RCT-Folly (= 2021.07.22.00)
    - React-Codegen (= 0.70.5)
    - React-Core/RCTBlobHeaders (= 0.70.5)
    - React-Core/RCTWebSocket (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-RCTNetwork (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - React-RCTImage (0.70.5):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.5)
    - React-Codegen (= 0.70.5)
    - React-Core/RCTImageHeaders (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-RCTNetwork (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - React-RCTLinking (0.70.5):
    - React-Codegen (= 0.70.5)
    - React-Core/RCTLinkingHeaders (= 0.70.5)
    - React-jsi (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - React-RCTNetwork (0.70.5):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.5)
    - React-Codegen (= 0.70.5)
    - React-Core/RCTNetworkHeaders (= 0.70.5)
    - React-jsi (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - React-RCTSettings (0.70.5):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.5)
    - React-Codegen (= 0.70.5)
    - React-Core/RCTSettingsHeaders (= 0.70.5)
    - React-jsi (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - React-RCTText (0.70.5):
    - React-Core/RCTTextHeaders (= 0.70.5)
  - React-RCTVibration (0.70.5):
    - RCT-Folly (= 2021.07.22.00)
    - React-Codegen (= 0.70.5)
    - React-Core/RCTVibrationHeaders (= 0.70.5)
    - React-jsi (= 0.70.5)
    - ReactCommon/turbomodule/core (= 0.70.5)
  - React-runtimeexecutor (0.70.5):
    - React-jsi (= 0.70.5)
  - ReactCommon/turbomodule/core (0.70.5):
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-bridging (= 0.70.5)
    - React-callinvoker (= 0.70.5)
    - React-Core (= 0.70.5)
    - React-cxxreact (= 0.70.5)
    - React-jsi (= 0.70.5)
    - React-logger (= 0.70.5)
    - React-perflogger (= 0.70.5)
  - RealmJS (11.3.1):
    - React
  - Yoga (1.14.0)

DEPENDENCIES:
  - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
  - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
  - EXApplication (from `../node_modules/expo-application/ios`)
  - EXConstants (from `../node_modules/expo-constants/ios`)
  - EXErrorRecovery (from `../node_modules/expo-error-recovery/ios`)
  - EXFileSystem (from `../node_modules/expo-file-system/ios`)
  - EXFont (from `../node_modules/expo-font/ios`)
  - EXJSONUtils (from `../node_modules/expo-json-utils/ios`)
  - EXManifests (from `../node_modules/expo-manifests/ios`)
  - Expo (from `../node_modules/expo`)
  - expo-dev-client (from `../node_modules/expo-dev-client/ios`)
  - expo-dev-launcher (from `../node_modules/expo-dev-launcher`)
  - expo-dev-menu (from `../node_modules/expo-dev-menu`)
  - expo-dev-menu-interface (from `../node_modules/expo-dev-menu-interface/ios`)
  - ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
  - ExpoModulesCore (from `../node_modules/expo-modules-core`)
  - EXSplashScreen (from `../node_modules/expo-splash-screen/ios`)
  - EXUpdatesInterface (from `../node_modules/expo-updates-interface/ios`)
  - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
  - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
  - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
  - hermes-engine (from `../node_modules/react-native/sdks/hermes/hermes-engine.podspec`)
  - libevent (~> 2.1.12)
  - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
  - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
  - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
  - React (from `../node_modules/react-native/`)
  - React-bridging (from `../node_modules/react-native/ReactCommon`)
  - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
  - React-Codegen (from `build/generated/ios`)
  - React-Core (from `../node_modules/react-native/`)
  - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
  - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
  - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
  - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`)
  - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
  - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
  - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
  - React-logger (from `../node_modules/react-native/ReactCommon/logger`)
  - react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
  - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
  - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
  - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
  - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
  - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
  - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
  - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
  - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
  - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
  - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
  - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
  - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
  - RealmJS (from `../node_modules/realm`)
  - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
  trunk:
    - fmt
    - libevent

EXTERNAL SOURCES:
  boost:
    :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
  DoubleConversion:
    :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
  EXApplication:
    :path: "../node_modules/expo-application/ios"
  EXConstants:
    :path: "../node_modules/expo-constants/ios"
  EXErrorRecovery:
    :path: "../node_modules/expo-error-recovery/ios"
  EXFileSystem:
    :path: "../node_modules/expo-file-system/ios"
  EXFont:
    :path: "../node_modules/expo-font/ios"
  EXJSONUtils:
    :path: "../node_modules/expo-json-utils/ios"
  EXManifests:
    :path: "../node_modules/expo-manifests/ios"
  Expo:
    :path: "../node_modules/expo"
  expo-dev-client:
    :path: "../node_modules/expo-dev-client/ios"
  expo-dev-launcher:
    :path: "../node_modules/expo-dev-launcher"
  expo-dev-menu:
    :path: "../node_modules/expo-dev-menu"
  expo-dev-menu-interface:
    :path: "../node_modules/expo-dev-menu-interface/ios"
  ExpoKeepAwake:
    :path: "../node_modules/expo-keep-awake/ios"
  ExpoModulesCore:
    :path: "../node_modules/expo-modules-core"
  EXSplashScreen:
    :path: "../node_modules/expo-splash-screen/ios"
  EXUpdatesInterface:
    :path: "../node_modules/expo-updates-interface/ios"
  FBLazyVector:
    :path: "../node_modules/react-native/Libraries/FBLazyVector"
  FBReactNativeSpec:
    :path: "../node_modules/react-native/React/FBReactNativeSpec"
  glog:
    :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
  hermes-engine:
    :podspec: "../node_modules/react-native/sdks/hermes/hermes-engine.podspec"
  RCT-Folly:
    :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
  RCTRequired:
    :path: "../node_modules/react-native/Libraries/RCTRequired"
  RCTTypeSafety:
    :path: "../node_modules/react-native/Libraries/TypeSafety"
  React:
    :path: "../node_modules/react-native/"
  React-bridging:
    :path: "../node_modules/react-native/ReactCommon"
  React-callinvoker:
    :path: "../node_modules/react-native/ReactCommon/callinvoker"
  React-Codegen:
    :path: build/generated/ios
  React-Core:
    :path: "../node_modules/react-native/"
  React-CoreModules:
    :path: "../node_modules/react-native/React/CoreModules"
  React-cxxreact:
    :path: "../node_modules/react-native/ReactCommon/cxxreact"
  React-hermes:
    :path: "../node_modules/react-native/ReactCommon/hermes"
  React-jsi:
    :path: "../node_modules/react-native/ReactCommon/jsi"
  React-jsiexecutor:
    :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
  React-jsinspector:
    :path: "../node_modules/react-native/ReactCommon/jsinspector"
  React-logger:
    :path: "../node_modules/react-native/ReactCommon/logger"
  react-native-get-random-values:
    :path: "../node_modules/react-native-get-random-values"
  React-perflogger:
    :path: "../node_modules/react-native/ReactCommon/reactperflogger"
  React-RCTActionSheet:
    :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
  React-RCTAnimation:
    :path: "../node_modules/react-native/Libraries/NativeAnimation"
  React-RCTBlob:
    :path: "../node_modules/react-native/Libraries/Blob"
  React-RCTImage:
    :path: "../node_modules/react-native/Libraries/Image"
  React-RCTLinking:
    :path: "../node_modules/react-native/Libraries/LinkingIOS"
  React-RCTNetwork:
    :path: "../node_modules/react-native/Libraries/Network"
  React-RCTSettings:
    :path: "../node_modules/react-native/Libraries/Settings"
  React-RCTText:
    :path: "../node_modules/react-native/Libraries/Text"
  React-RCTVibration:
    :path: "../node_modules/react-native/Libraries/Vibration"
  React-runtimeexecutor:
    :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
  ReactCommon:
    :path: "../node_modules/react-native/ReactCommon"
  RealmJS:
    :path: "../node_modules/realm"
  Yoga:
    :path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
  boost: a7c83b31436843459a1961bfd74b96033dc77234
  DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
  EXApplication: 034b1c40a8e9fe1bff76a1e511ee90dff64ad834
  EXConstants: 3c86653c422dd77e40d10cbbabb3025003977415
  EXErrorRecovery: ae43433feb0608a64dc5b1c8363b3e7769a9ea24
  EXFileSystem: 60602b6eefa6873f97172c684b7537c9760b50d6
  EXFont: 319606bfe48c33b5b5063fb0994afdc496befe80
  EXJSONUtils: 09aef2c1fba1a116ca8c73a2c8299aac00d96b43
  EXManifests: 347f49430b63444579aa013f0ad057d16b8d1cc8
  Expo: 36b5f625d36728adbdd1934d4d57182f319ab832
  expo-dev-client: d723d52ccfbe2eb47ee24d1ac0cf5b39001589c2
  expo-dev-launcher: 953f564f7d006f1af50b119cacb48cafcad40c73
  expo-dev-menu: fa9e67b193032700e2908b4737d9d199c0b43c30
  expo-dev-menu-interface: 45581093393dacd51ce5e7f641cf9ed5064a2e3f
  ExpoKeepAwake: 69b59d0a8d2b24de9f82759c39b3821fec030318
  ExpoModulesCore: b5d21c8880afda6fb6ee95469f9ac2ec9b98e995
  EXSplashScreen: 3e989924f61a8dd07ee4ea584c6ba14be9b51949
  EXUpdatesInterface: bffd1ead18f0bab04fa784ca159c115607b8a23c
  FBLazyVector: affa4ba1bfdaac110a789192f4d452b053a86624
  FBReactNativeSpec: fe8b5f1429cfe83a8d72dc8ed61dc7704cac8745
  fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
  glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
  hermes-engine: 7fe5fc6ef707b7fdcb161b63898ec500e285653d
  libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
  RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda
  RCTRequired: 21229f84411088e5d8538f21212de49e46cc83e2
  RCTTypeSafety: 62eed57a32924b09edaaf170a548d1fc96223086
  React: f0254ccddeeef1defe66c6b1bb9133a4f040792b
  React-bridging: e46911666b7ec19538a620a221d6396cd293d687
  React-callinvoker: 66b62e2c34546546b2f21ab0b7670346410a2b53
  React-Codegen: b6999435966df3bdf82afa3f319ba0d6f9a8532a
  React-Core: dabbc9d1fe0a11d884e6ee1599789cf8eb1058a5
  React-CoreModules: 5b6b7668f156f73a56420df9ec68ca2ec8f2e818
  React-cxxreact: c7ca2baee46db22a30fce9e639277add3c3f6ad1
  React-hermes: c93e1d759ad5560dfea54d233013d7d2c725c286
  React-jsi: a565dcb49130ed20877a9bb1105ffeecbb93d02d
  React-jsiexecutor: 31564fa6912459921568e8b0e49024285a4d584b
  React-jsinspector: badd81696361249893a80477983e697aab3c1a34
  React-logger: fdda34dd285bdb0232e059b19d9606fa0ec3bb9c
  react-native-get-random-values: a6ea6a8a65dc93e96e24a11105b1a9c8cfe1d72a
  React-perflogger: e68d3795cf5d247a0379735cbac7309adf2fb931
  React-RCTActionSheet: 05452c3b281edb27850253db13ecd4c5a65bc247
  React-RCTAnimation: 578eebac706428e68466118e84aeacf3a282b4da
  React-RCTBlob: f47a0aa61e7d1fb1a0e13da832b0da934939d71a
  React-RCTImage: 60f54b66eed65d86b6dffaf4733d09161d44929d
  React-RCTLinking: 91073205aeec4b29450ca79b709277319368ac9e
  React-RCTNetwork: ca91f2c9465a7e335c8a5fae731fd7f10572213b
  React-RCTSettings: 1a9a5d01337d55c18168c1abe0f4a589167d134a
  React-RCTText: c591e8bd9347a294d8416357ca12d779afec01d5
  React-RCTVibration: 8e5c8c5d17af641f306d7380d8d0fe9b3c142c48
  React-runtimeexecutor: 7401c4a40f8728fd89df4a56104541b760876117
  ReactCommon: c9246996e73bf75a2c6c3ff15f1e16707cdc2da9
  RealmJS: 43fc7bfb83229c8a2755cb34f71f769c97b7b581
  Yoga: eca980a5771bf114c41a754098cd85e6e0d90ed7

PODFILE CHECKSUM: 12c72b383ada97a4b5e0345325c276a35ee1ed2a

COCOAPODS: 1.11.3### Cocoapods version

1.11.3

@atdyer
Copy link
Contributor Author

atdyer commented Dec 9, 2022

Using the exact same setup, but with Hermes disabled, produces a more stable build; the app crashes on startup only about half of the time, rather than almost every time.

@mk04366
Copy link

mk04366 commented Dec 10, 2022

Facing the same issue. App crashes after realm is instantiated that too 50% of the time and only happens in production.

react-native: 0.70.6,
realm: 11.2.0
hermes: enabled

I was able to capture the crash on sentry so these are some low level stack trace for the crash:

OS Version: Android 11 
Report Version: 104

Exception Type: Unknown (SIGSEGV)

Application Specific Information:
Segfault

Thread 0 Crashed:
0   librealm.so                     0x7175936a28        <unknown> + 487303899688
1   librealm.so                     0x71758abf80        <unknown> + 487303331712
2   librealm.so                     0x71758e3fb4        <unknown> + 487303561140
3   librealm.so                     0x71758e34f8        <unknown> + 487303558392
4   librealm.so                     0x71758e4b74        <unknown> + 487303564148
5   librealm.so                     0x71758e297c        <unknown> + 487303555452
6   librealm.so                     0x71758e2818        <unknown> + 487303555096
7   librealm.so                     0x71759a9258        <unknown> + 487304368728
8   librealm.so                     0x71759a782c        <unknown> + 487304362028
9   librealm.so                     0x71759a7370        <unknown> + 487304360816
10  librealm.so                     0x71759a7a74        <unknown> + 487304362612
11  librealm.so                     0x71758dd550        <unknown> + 487303533904
12  librealm.so                     0x71758d9964        <unknown> + 487303518564
13  libhermes-executor-release.so   0x72661a4964        std::__ndk1::__function::__func<T>::operator()
14  libhermes.so                    0x726ae1a848        <unknown> + 491419445320
15  libhermes.so                    0x726ae1a1d0        <unknown> + 491419443664
16  libhermes.so                    0x726ae1ff68        <unknown> + 491419467624
17  libhermes.so                    0x726ae31d90        <unknown> + 491419540880
18  libhermes.so                    0x726ae339ac        <unknown> + 491419548076
19  libhermes.so                    0x726ae33074        <unknown> + 491419545716
20  libhermes.so                    0x726ae20078        <unknown> + 491419467896
21  libhermes.so                    0x726ae1f054        <unknown> + 491419463764
22  libhermes.so                    0x726aeb5004        <unknown> + 491420078084
23  libhermes.so                    0x726ae1ff68        <unknown> + 491419467624
24  libhermes.so                    0x726ae31d90        <unknown> + 491419540880
25  libhermes.so                    0x726ae339ac        <unknown> + 491419548076
26  libhermes.so                    0x726ae33074        <unknown> + 491419545716
27  libhermes.so                    0x726ae20078        <unknown> + 491419467896
28  libhermes.so                    0x726ae1fc30        <unknown> + 491419466800
29  libhermes.so                    0x726ae31db4        <unknown> + 491419540916
30  libhermes.so                    0x726ae339ac        <unknown> + 491419548076
31  libhermes.so                    0x726ae33074        <unknown> + 491419545716
32  libhermes.so                    0x726ae20078        <unknown> + 491419467896
33  libhermes.so                    0x726ae1fc30        <unknown> + 491419466800
34  libhermes.so                    0x726ae12938        <unknown> + 491419412792
35  libhermes-executor-release.so   0x72661a787c        facebook::jsi::Function::call<T>
36  libhermes-executor-release.so   0x72661a766c        facebook::react::JSIExecutor::invokeCallback
37  libreactnativejni.so            0x72663a7090        <unknown> + 491341377680
38  libreactnativejni.so            0x72663a7d70        <unknown> + 491341380976
39  libreactnativejni.so            0x726637aee8        <unknown> + 491341197032
40  libfbjni.so                     0x728f1db80c        facebook::jni::detail::MethodWrapper<T>::dispatch
41  libfbjni.so                     0x728f1db778        facebook::jni::detail::FunctionWrapper<T>::call
42  base.odex                       0x72968c053c        <unknown> + 492152030524

Screenshot 2022-12-10 at 7 46 03 PM

@carbopilot
Copy link

carbopilot commented Dec 11, 2022

Related issue to #4735. It's been a bug for 6 months, with still no resolution.

@kneth
Copy link
Member

kneth commented Dec 12, 2022

@atdyer Thank you for reporting, and posting so many details.

@atdyer
Copy link
Contributor Author

atdyer commented Dec 12, 2022

@kneth sure thing! Please let me know if there's anything else I can do to help track down/resolve this issue.

@dimonnwc3
Copy link

same issue for me

@takameyer
Copy link
Contributor

@atdyer Do you get crash when running in Release mode from Xcode? Would be good to see the crash log output as well. Just want to make sure this is the same crash as #4735

@takameyer
Copy link
Contributor

This should be fixed with the resolution of #4735. If that is not the case, please open a new issue and include a crash report.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants