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

FATAL EXCEPTION: create_react_context java.lang.RuntimeException #719

Closed
7 tasks done
leotm opened this issue Jun 26, 2022 · 0 comments Β· Fixed by #721
Closed
7 tasks done

FATAL EXCEPTION: create_react_context java.lang.RuntimeException #719

leotm opened this issue Jun 26, 2022 · 0 comments Β· Fixed by #721
Labels
agp Android Gradle Plugin android Native Android changes (Java, Gradle, Kotlin) 🐞 Bugerino: Summin' ain't work'n jimmy release mode Production build variant run time
Milestone

Comments

@leotm
Copy link
Owner

leotm commented Jun 26, 2022

Context


  • AGP 7.4.0-alpha03 (πŸ”₯) Gradle 7.4.2 (main)
    • JDK 11/18 Azul: debug - build βœ”οΈ runtime βœ”οΈ
    • JDK 11/18 Azul: release - build βœ”οΈ runtime ❌ (java.lang.RuntimeException)
      • downgrade AGP 7.4.0-alpha03
  • AGP 7.2.0 (main) Gradle 7.4.2 (main)
    • JDK 11 Azul: debug/release build/runtime βœ”οΈ
    • JDK 18 Azul: debug - build βœ”οΈ runtime ❌(java.lang.OutOfMemoryError)
      • downgrade JDK 18
    • JDK 18 Azul: release - build βœ”οΈ runtime βœ”οΈ
    • JDK 17 Azul: debug - build βœ”οΈ runtime βœ”οΈ
    • JDK 17 Azul: release - build βœ”οΈ runtime βœ”οΈ
      • JDK 17 seems fine
  • AGP 7.1.1 (template/blog)

Gradle 7.2 -> 7.3.3 since 0.67.4+

All JDK's aarch64: azul-11.0.14.1, azul-17.0.3, azul-18

@leotm leotm added android Native Android changes (Java, Gradle, Kotlin) release mode Production build variant agp Android Gradle Plugin run time labels Jun 26, 2022
leotm added a commit that referenced this issue Jun 26, 2022
- Fix: #719
- Downgrade AGP from 7.4.0-alpha03 ❌
- AGP 7.2.0 βœ…  facebook/react-native#33817
- AGP 7.4.0-beta03 ❌
- AGP 7.2.1 βœ…

Flipper

FATAL EXCEPTION: create_react_context

java.lang.RuntimeException: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.

FATAL EXCEPTION: create_react_context
Process: com.leotm.myapp, PID: 13832
java.lang.RuntimeException: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
	at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)
	at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:248)
	at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:29)
	at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:277)
	at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1404)
	at com.facebook.react.ReactInstanceManager.access$1200(ReactInstanceManager.java:136)
	at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1108)
	at java.lang.Thread.run(Thread.java:920)
@leotm leotm added the 🐞 Bugerino: Summin' ain't work'n jimmy label Jun 26, 2022
@leotm leotm added this to the JDK 18 milestone Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agp Android Gradle Plugin android Native Android changes (Java, Gradle, Kotlin) 🐞 Bugerino: Summin' ain't work'n jimmy release mode Production build variant run time
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant