Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Calling js method onSaveInstanceState failed TypeError: Cannot read property '_domId' of undefined #25

Closed
@jessorlisa

Description

@jessorlisa

Environment

Describe the bug
Since upgrading to Angular 12 the following report can be found multiple times in Crashlytics:

Fatal Exception: com.tns.NativeScriptException: Calling js method onSaveInstanceState failed
TypeError: Cannot read property '_domId' of undefined
       at com.tns.Runtime.callJSMethodNative(Runtime.java)
       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.NativeScriptActivity.onSaveInstanceState(NativeScriptActivity.java:55)
       at android.app.Activity.performSaveInstanceState(Activity.java:2075)
       at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1486)
       at android.app.ActivityThread.callActivityOnSaveInstanceState(ActivityThread.java:5694)
       at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5001)
       at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4960)
       at android.app.ActivityThread.handleStopActivity(ActivityThread.java:5040)
       at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:41)
       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2216)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:237)
       at android.app.ActivityThread.main(ActivityThread.java:7948)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)

It seems the error already was reported before here, the issue was closed but the "possible fix" is not yet released: NativeScript/NativeScript#9447

To Reproduce
As of today, this does not happen in development? 🤷🏻‍♀️

Expected behavior
No crash reports

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions