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

App crash on start #49

Open
Jalson1982 opened this issue Jun 12, 2020 · 12 comments
Open

App crash on start #49

Jalson1982 opened this issue Jun 12, 2020 · 12 comments

Comments

@Jalson1982
Copy link

Hello .. I am trying all day to setup v8 but no luck. I see in logcat this error:

No implementation found for com.facebook.react.bridge.Inspector com.facebook.react.bridge.Inspector.instance() (tried Java_com_facebook_react_bridge_Inspector_instance and Java_com_facebook_react_bridge_Inspector_instance__)
E/unknown:ReactNative: Inspector doesn't work in open source yet
java.lang.UnsatisfiedLinkError: No implementation found for com.facebook.react.bridge.Inspector com.facebook.react.bridge.Inspector.instance() (tried Java_com_facebook_react_bridge_Inspector_instance and Java_com_facebook_react_bridge_Inspector_instance__)
at com.facebook.react.bridge.Inspector.instance(Native Method)

Not sure what I am doing wrong to be honest but quite stuck with this . Any help please...

My react native is 0.62.2 and v8 "react-native-v8": "^0.60.0-patch.2",

@Kudo
Copy link
Owner

Kudo commented Jun 15, 2020

For RN 0.62.2, please use react-native-v8 0.62.2-patch-* and the latest one is 0.62.2-patch.1.

@Jalson1982
Copy link
Author

Hello thx it works. I want to ask you what exact improvement we can expect with V8 ? To be honest I hate my life when I need to deal with Android performances in react native. Will V8 be able to speed up JS execution?

@Kudo
Copy link
Owner

Kudo commented Jun 18, 2020

From my previous benchmark, V8 will not help a lot compared to Hermes or JavaScriptCore, except you use the v8-android-jit version.
Performance issue is complicated and it is highly depended with your application.
If your application is heavy JS computing one, then the better JS engine may help.

Please always do profiling and find the bottleneck first.

@gauravsbagul
Copy link

Hi, I also have the same issue,
On start app crashes I have install

"dependencies": {
   **...Other dependencies**,
    "react": "16.13.1",
    "react-native": "0.63.2",
    "react-native-v8": "0.62.2-patch.1",
    "v8-android-jit": "^8.84.0",
    **...Other dependencies**,
  },

I have made all the required changes in build.gradle and app/build.gradle

@Kudo
Copy link
Owner

Kudo commented Nov 2, 2020

@gauravsbagul For react-native@0.63.2, please use react-native-v8@0.63.2-patch.1.

@gauravsbagul
Copy link

gauravsbagul commented Nov 3, 2020

@gauravsbagul For react-native@0.63.2, please use react-native-v8@0.63.2-patch.1.

Thanks, it worked at first,
console.log(V8 version is ${global._v8runtime().version});

but when I switched to debug mode I got this error on the console

ExceptionsManager.js:179 TypeError: global._v8runtime is not a function

and got a crash

@Kudo
Copy link
Owner

Kudo commented Nov 3, 2020

@gauravsbagul In current react-native design, if you enable remote debugging, the JS engine is proxied to and running inside Chrome browser.
That is not running by react-native-v8 and no global._v8runtime as well.

@gauravsbagul
Copy link

@gauravsbagul In current react-native design, if you enable remote debugging, the JS engine is proxied to and running inside Chrome browser.
That is not running by react-native-v8 and no global._v8runtime as well.

Yes, resolved, Thank you

@Farmscraft
Copy link

"dependencies": {
...Other dependencies,
"react": "16.11.0",
"react-native": "0.62.1",
"react-native-v8": "0.62.1-patch.0",

**...Other dependencies**,

},

App crash on start.

@Kudo
Copy link
Owner

Kudo commented Mar 9, 2021

@Farmscraft What's the version of v8-android? You could check the version at yarn.lock.

@dianappsmahendra
Copy link

"v8-android-jit": "^9.88.0",
"react-native-v8": "^0.62.2-patch.2",
"react-native": "~0.62.2",

if i use v8-android then its working fine and if i want to use v8-android-jit then it crash when app start after bundle load

@dianappsmahendra
Copy link

"v8-android-jit": "^9.88.0",
"react-native-v8": "^0.62.2-patch.2",
"react-native": "~0.62.2",

if i use v8-android then its working fine and if i want to use v8-android-jit then it crash when app start after bundle load

Resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants