NativeScript: Android production crash: Cannot set property 'recreated' of undefined

In our production app we log crashes using Sentry and we receive a lot of crashes on Android, unfortunately we are unable to reproduce this. The error we get:

Calling js method run failed
TypeError: Cannot set property 'recreated' of undefined

StackTrace:

Frame: function:'t.setCurrent', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 1270, column: 2472
Frame: function:'', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 4474, column: 11211
Frame: function:'e.invokeTask', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 3203, column: 7611
Frame: function:'f.runTask', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 3203, column: 2732
Frame: function:'invoke', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 3203, column: 8590
Frame: function:'n', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 3217, column: 115
Frame: function:'u', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 2137, column: 313
Frame: function:'e.invoke', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 3203, column: 6910
Frame: function:'f.runGuarded', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 3203, column: 2276
Frame: function:'', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 3203, column: 1893
Frame: function:'run', file:'file:///data/data/nl.company.selfserviceapp/files/app/vendor.js', line: 2137, column: 398

We only found the use of ‘recreated’ in the file: https://github.com/NativeScript/NativeScript/blob/master/tns-core-modules/ui/frame/frame.android.ts

Which platform(s) does your issue occur on?

Android only Versions: 4.4.4 - 8.1 Devices: Samsung, LG, Sony, Asus Device types: phones and tablets

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

  • CLI: 3.4.1
  • Cross-platform modules: 3.4.0
  • Runtime(s): 3.4.1

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

@dennis-montana @RoyiNamir closing due to inactivity and also as I was not able to reproduce the issue. Please guys do let me know if you have a sample project that can reproduce this one on a real device (please post the used model of the test device as well)

@NickIliev Hi. to tell you the truth , no. I didn’t try it on a real device. It’s just that every time I saw this delay of rotation ( landscape , like the image ^) , then I got the exception. But when it happend fast (fast rotation) , I didn’t get the error.