playground-feedback icon indicating copy to clipboard operation
playground-feedback copied to clipboard

Playground (almost) always crash on iPhone 6(s)

Open fyodorio opened this issue 5 years ago • 11 comments

Details:

Did you search for the problem in other open issues in this repo?

Yes. Probably this issue has something in common with #156, but this one is more specific (to phone model in particular) and more persistent without dependency on previous unsuccessful runs

Tell us about the problem

Playground apps (most of them, from tutorial apps to showcase apps like last year's Ns/Uplabs challenge winners) crash on iPhone 6s with latest iOS (13.1.3). In most cases they let user to go throw app flow and then crash on some stage. The same apps run successfully on iPhone 8 plus.

Did you try it outside of {N} Playground?

  • Yes - it has the same behavior as in the playground (tried to run downloaded apps locally on the same phone through tns preview)

Which browser are you using?

  • Chrome
  • Safari

Are there any errors/warnings logged in your browser console?

Mostly not, though I didn't check all the cases

Which platform(s) does your issue occur on?

  • iOS

Are there any entries logged in the Device Logs tab?

The Preview app has terminated unexpectedly. Please run it again to get a detailed crash report.

Please provide the following information shown in the devices tab in the playground:

  • Model iPhone 6S
  • OS version iOS 13.1.3
  • Preview app version 1.26.0
  • Runtime version 6.2.0

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

  1. Open https://play.nativescript.org/?template=play-ng&id=rPhRoK&v=3 and try to load that on iPhone 6s
  2. In my case, it crashes immediately. If recreate the tutorial app myself, it lets me open the login screen and press login, then crashes

Example error log (from the device screen) is below

2019-11-11 10:46:14.001 nsplaydev[2480:186658] ***** Fatal JavaScript exception - application has been terminated. *****
2019-11-11 10:46:14.001 nsplaydev[2480:186658] Native stack trace:
1   0x1050a22bc NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2   0x1050e6900 -[TNSRuntime executeModule:referredBy:]
3   0x1061b225c -[UIApplication(PlayLiveSync) swizzled_executeModule:]
4   0x1047a7524
5   0x182b6b460 <redacted>
2019-11-11 10:46:14.003 nsplaydev[2480:186658] JavaScript stack trace:
2019-11-11 10:46:14.003 nsplaydev[2480:186658] require(file:///app/app.module.js:5:23)
at anonymous(file:///app/app.module.js:5:23)
at evaluate([native code])
at moduleEvaluation([native code])
at promiseReactionJob([native code])
at require([native code])
at anonymous(file:///app/main.js:5:29)
at evaluate([native code])
at moduleEvaluation([native code])
at promiseReactionJob([native code])
at require([native code])
at anonymous(file:///app/__main.js:3:8)
at evaluate([native code])
at moduleEvaluation([native code])
at promiseReactionJob([native code])
2019-11-11 10:46:14.003 nsplaydev[2480:186658] JavaScript error:
file:///app/app.module.js:5:23: JS ERROR Error: Could not find module 'nativescript-angular/http'. Computed path '/var/mobile/Containers/Data/Application/DD9F8AF1-04FE-43EE-93B2-D8C28630134B/Documents/Playground/LiveSync/app/tns_modules/nativescript-angular/http'. (evaluating 'require("nativescript-angular/http")')
2019-11-11 10:46:14.004 nsplaydev[2480:186658] PlayLiveSync: Uncaught Exception
2019-11-11 10:46:14.004 nsplaydev[2480:186658] *** JavaScript call stack:
(

)
2019-11-11 10:46:14.004 nsplaydev[2480:186658] *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Error: Could not find module 'nativescript-angular/http'. Computed path '/var/mobile/Containers/Data/Application/DD9F8AF1-04FE-43EE-93B2-D8C28630134B/Documents/Playground/LiveSync/app/tns_modules/nativescript-angular/http'. (evaluating 'require("nativescript-angular/http")')
 at 
require(file:///app/app.module.js:5:23)
at anonymous(file:///app/app.module.js:5:23)
at evaluate([native code])
at moduleEvaluation([native code])
at promiseReactionJob([native code])
at require([native code])
at anonymous(file:///app/main.js:5:29)
at evaluate([native code])
at moduleEvaluation([native code])
at promiseReactionJob([native code])
at require([native code])
at anonymous(file:///app/__main.js:3:8)
at evaluate([native code])
at moduleEvaluation([native code])
at promiseReactionJob([native code])
', reason: '(null)'
*** First throw call stack:
(0x182d6898c 0x182a910a4 0x1050a2738 0x1050e6900 0x1061b225c 0x1047a7524 0x182b6b460)
libc++abi.dylib: terminating with uncaught exception of type NSException
2019-11-11 10:46:14.004 nsplaydev[2480:186658] PlayLiveSync: Uncaught Exception

fyodorio avatar Nov 11 '19 05:11 fyodorio