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

[Android/iOS] Unable to obtain a JavascriptEngine. #296

Open
renatomserra opened this issue Jul 7, 2022 · 2 comments
Open

[Android/iOS] Unable to obtain a JavascriptEngine. #296

renatomserra opened this issue Jul 7, 2022 · 2 comments

Comments

@renatomserra
Copy link

Hello sorry for all the issues, just trying to be helpful and report what i'm finding since upgrading to the latest.
Love this lib tho!

Having another error popping on sentry at times, since implementing preloading

{"error":{"code":0,"domain":"com.google.android.gms.ads","message":"Unable to obtain a JavascriptEngine."}}

@frederiko-famobi
Copy link

After adding a listener with adInterstitial.addAdEventsListener(getListener('interstitial')), I started to log the errors from AdEventType.ERROR, and I found out of 44% of the load Ad requests were giving errors, and this is one of the most common ones:

 "info": {
    "error": "[googleMobileAds/internal-error] Unable to obtain a JavascriptEngine.",
    "event": "error",
    "payload": {
      "code": "googleMobileAds/internal-error",
      "jsStack": "Error\n    at fromEvent (address at index.android.bundle:1:2914804)\n    at _handleAdEvent (address at index.android.bundle:1:2912525)\n    at apply (native)\n    at emit (address at index.android.bundle:1:128447)\n    at anonymous (address at index.android.bundle:1:2857730)\n    at apply (native)\n    at emit (address at index.android.bundle:1:128447)\n    at apply (native)\n    at __callFunction (address at index.android.bundle:1:133003)\n    at anonymous (address at index.android.bundle:1:131501)\n    at __guard (address at index.android.bundle:1:132438)\n    at callFunctionReturnFlushedQueue (address at index.android.bundle:1:131459)",
      "message": "[googleMobileAds/internal-error] Unable to obtain a JavascriptEngine.",
      "namespace": "googleMobileAds",
      "userInfo": {
        "code": "internal-error",
        "message": "Unable to obtain a JavascriptEngine."
      }
    },
    "type": "interstitial"
  },

I am not sure what is the reason, if it's related to the React Native version, or conflicts with other libraries...

@renatomserra
Copy link
Author

yeap i didnt figure it out unfortunetly, im just moving to run my own ads instead :/

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

2 participants