facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.04k stars 24.31k forks source link

App Crash on open #37607

Closed mohitarora777 closed 1 year ago

mohitarora777 commented 1 year ago

Description

Fatal Exception: com.facebook.jni.CppException: facebook::react::Recoverable: Could not open file/data/user/0/in.mohalla.video/files/CodePush/4adb53238f96cb818fe4edd33d9ae00c8750c2186a87cadd2a51c0bd6f14669d/data/data/in.mohalla.video/files/CodePush/unzipped/CodePush/index.android.bundle: No such file or directory at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromFile(CatalystInstanceImpl.java) at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromFile(CatalystInstanceImpl.java:245) at com.facebook.react.bridge.JSBundleLoader$2.loadScript(JSBundleLoader.java:48) at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:268) at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1371) at com.facebook.react.ReactInstanceManager.access$1100(ReactInstanceManager.java:136) at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1065) at java.lang.Thread.run(Thread.java:923)

React Native Version

0.71.7

Output of npx react-native info

System: OS: macOS 13.4 CPU: (10) arm64 Apple M1 Pro Memory: 2.77 GB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.1.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 9.6.4 - /opt/homebrew/bin/npm Watchman: 2023.05.08.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.17 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.3 => 0.66.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

App Crashes as soon as u open it. Not able to reproduce though but it is being reported in Crashlytics and had been happening in 0.66.3 also. I recently upgraded to 0.71.7, but still hapening

Snack, code example, screenshot, or link to a repository

Screenshot 2023-05-28 at 3 25 47 AM
github-actions[bot] commented 1 year ago
:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available - 0.71.8. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
cortinico commented 1 year ago

file/data/user/0/in.mohalla.video/files/CodePush/4adb53238f96cb818fe4edd33d9ae00c8750c2186a87cadd2a51c0bd6f14669d/data/data/in.mohalla.video/files/CodePush/unzipped/CodePush/index.android.bundle: No such file or directory

That's an issue with CodePush

Hi @mohitarora777 Thanks for reporting this issue.

It seems like this issue is actually unrelated to React Native core but related to Microsoft's CodePush. Please open this issue against this other repository:

https://github.com/microsoft/code-push/issues

I'll be closing this but feel free to reopen if the other repo points back to us as a issue in the core of React Native.

arpit203 commented 1 year ago

was there any resolution to this issue @mohitarora777 ? Getting the same crash