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

Exception: Calling js method onReceivedError failed #23

Open
DerZyklop opened this issue Feb 16, 2022 · 0 comments
Open

Exception: Calling js method onReceivedError failed #23

DerZyklop opened this issue Feb 16, 2022 · 0 comments

Comments

@DerZyklop
Copy link

Which platform(s) does your issue occur on?

  • Android
  • system-images;android-30;google_apis;arm64-v8a

Please, provide the following version numbers that your issue occurs with:

  • CLI: 8.1.5
  • Cross-platform modules:
    (…you mean dependencies?)
  "dependencies": {
    "@nativescript/core": "7.0.3",
    "@nativescript/firebase": "11.0.0",
    "@nativescript/local-notifications": "5.0.0",
    "@nativescript/theme": "2.5.0",
    "nativescript-dna-deviceinfo": "2.4.3",
    "@nativescript/localize": "5.0.2",
    "nativescript-webview-interface2": "1.4.7",
    "nativescript-webview-utils": "3.0.1"
  },
  "devDependencies": {
    "@nativescript/android": "7.0.0",
    "@nativescript/ios": "7.0.0",
    "@nativescript/types": "7.0.3",
    "@nativescript/webpack": "3.0.4",
    "nativescript-remote-builds": "1.1.1",
    "typescript": "3.9.7"
  },
  • Runtime(s): no entries in my package.json
  • Plugin(s): see above

Please, tell us how to recreate the issue in as much detail as possible.

Started App, opened chrome://inspect/#devices in Chrome on Computer. Clicked inspect on the emulator entry. App inside emulator crashed.

Exception:

Calling js method onReceivedError failed 
Error: JNI Exception occurred (SIGABRT).
=======
Check the 'adb logcat' for additional information about the error.
=======

StackTrace
push.../node_modules/nativescript-webview-utils/webview-utils.js.WebViewUtils.onReceivedError(file:///data/data/de.emscon.plano/files/app/vendor.js:76026:46)
    at com.tns.Runtime.callJSMethodNative(Native Method)
    at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1302)
    at com.tns.Runtime.callJSMethodImpl(Runtime.java:1188)
    at com.tns.Runtime.callJSMethod(Runtime.java:1175)
    at com.tns.Runtime.callJSMethod(Runtime.java:1153)
    at com.tns.Runtime.callJSMethod(Runtime.java:1149)
    at com.tns.gen.android.webkit.WebViewClient_vendor_75960_28_WebViewUtils.onReceivedError(WebViewClient_vendor_75960_28_WebViewUtils.java:72)
    at g9.handleMessage(chromium-TrichromeWebViewGoogle6432.apk-stable-447211484:124)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7356)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Is there any code involved?

Very simple app:

<Page class="page"
	loaded="pageLoaded"
    xmlns="http://schemas.nativescript.org/tns.xsd"
    backgroundSpanUnderStatusBar="true"
    backgroundColor="#cd7415"
    iosOverflowSafeAreaEnabled="false"
>
    <GridLayout>
        <WebView
            iosOverflowSafeAreaEnabled="true"
            row="1" loaded="onWebViewLoaded" id="webView"
        >
    	</WebView>
    </GridLayout>
</Page>
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

1 participant