react-native-v8 icon indicating copy to clipboard operation
react-native-v8 copied to clipboard

App crash on start

Open Jalson1982 opened this issue 5 years ago • 12 comments

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",

Jalson1982 avatar Jun 12 '20 19:06 Jalson1982

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

Kudo avatar Jun 15 '20 01:06 Kudo

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?

Jalson1982 avatar Jun 16 '20 17:06 Jalson1982

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.

Kudo avatar Jun 18 '20 06:06 Kudo

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

gauravsbagul avatar Nov 02 '20 09:11 gauravsbagul

@gauravsbagul For [email protected], please use react-native-v8@0.63.2-patch.1.

Kudo avatar Nov 02 '20 16:11 Kudo

@gauravsbagul For [email protected], 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

gauravsbagul avatar Nov 03 '20 09:11 gauravsbagul

@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.

Kudo avatar Nov 03 '20 15:11 Kudo

@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

gauravsbagul avatar Nov 04 '20 13:11 gauravsbagul

"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.

Farmscraft avatar Mar 03 '21 09:03 Farmscraft

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

Kudo avatar Mar 09 '21 02:03 Kudo

"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 avatar May 22 '21 12:05 dianappsmahendra

"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

dianappsmahendra avatar May 24 '21 04:05 dianappsmahendra