Closed
Description
Environment
- CLI:
├── [email protected]
- Cross-platform modules:
├── @nativescript/[email protected]
- Android Runtime:
├── @nativescript/[email protected]
- iOS Runtime:
├── @nativescript/[email protected] (JSC)
- Plugin(s):
- NativeScript-Angular:
├── @nativescript/[email protected]
- Angular:
├── @angular/[email protected]
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
Labels
No labels