question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error in release build

See original GitHub issue

EXCEPTION Encountered after running in release mode!

12-09 03:02:47.959 8890-9842/? E/UncaughtException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to load script from assets ‘threads/._index.thread.bundle’. Make sure your bundle is packaged correctly or you’re running a packager server.

  • my index.thread.js in the project root i.e same as index.android.js level.
  • I ran a command node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest ./android/app/src/main/res/ --entry-file index.thread.js --platform android --bundle-output ./android/app/src/main/assets/threads/index.thread.bundle
  • bundle got created under /android/app/src/main/assets/threads

what could be the reason?? using 0.49.5 - RN version

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jorgempycommented, Aug 23, 2018

I have this problem too! java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to load script from assets 'threads/..index.thread.bundle'. Make sure your bundle is packaged correctly or you're running a packager server

0reactions
Traviskncommented, Aug 23, 2018

That could be a good PR! As long as people understand that relative file paths won’t be used in release mode, but rather we will simply look for the matching file under the assets/threads folder your code would be very helpful

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Problems When Creating a Release Build
See the /GZ (Catch Release-Build Errors in Debug Build) compiler option for information on how to catch release build errors in debug builds....
Read more >
Error: You are debugging a Release build of X.dll
This way you'll be able to step through code while debugging and Visual Studio won't bark about "Release" version anymore.
Read more >
Internal link error when compiling in Release mode
When I compile my DLL project in Release mode, I get the following linker error: 1>------ Erstellen gestartet: Projekt: K-Lib, Konfiguration: ReleaseMongo ...
Read more >
Running application in "Release mode causes errors"
If your application runs fine in Debug, but not in Release, this typically indicates there is an bug somewhere that doesn't get tripped...
Read more >
Build works for Debug but fails for Release
My problem is that when I choose to do a release build, I get some errors I don't understand: C51 COMPILER V9.53.0.0 -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found