Skip to content

Livesync crashes app every OTHER time on iOS with 3.0.0-rc.2 #2732

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

Closed
alexziskind1 opened this issue Apr 22, 2017 · 9 comments
Closed

Livesync crashes app every OTHER time on iOS with 3.0.0-rc.2 #2732

alexziskind1 opened this issue Apr 22, 2017 · 9 comments
Assignees
Milestone

Comments

@alexziskind1
Copy link

Description

When using the new 3.0.0-rc.2 branch with iOS simulator, the livesynced app crashed every other time (literally every other time).
I make one change, the change breaks the app. I make another app, the app livesyncs successfully, after a third change the app crashed, etc.

Which platform(s) does your issue occur on?

iOS only

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

  • CLI: 3.0.0-rc.2
  • Cross-platform modules: rc
  • Runtime: "3.0.0-rc.1-2017-3-28-2"
  • iOS 10.3

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

I created a new app:
tns create rctest
Ran the app
tns run ios
Made changes to the javascript code.
Received the following error on the console (the app itself crashed)

Transferring project files...
Successfully transferred app.js.
Refreshing application...
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=3):
The request to open "org.nativescript.rctest" failed.
The process did launch, but has since exited or crashed.
Unable to sync files. Error is: Multiple errors were thrown:
Error Command failed: xcrun simctl launch 316B5D74-F5CF-4706-ABD7-1EA6F287AAF0 org.nativescript.rctest
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=3):
The request to open "org.nativescript.rctest" failed.
The process did launch, but has since exited or crashed.
 while executing xcrun simctl launch 316B5D74-F5CF-4706-ABD7-1EA6F287AAF0 org.nativescript.rctest.
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: Pasteboard change listener callback port <NSMachPort: 0x7fdf31e14470> registered
Apr 22 13:41:32 Alexander-Mac SpringBoard[4621]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
Apr 22 13:41:32 Alexander-Mac com.apple.CoreSimulator.SimDevice.316B5D74-F5CF-4706-ABD7-1EA6F287AAF0.launchd_sim[4604] (UIKitApplication:org.nativescript.rctest[0x9d6e][4626][5736]): Service exited due to Terminated: 15
Apr 22 13:41:32 Alexander-Mac backboardd[4622]: [Common] Unable to get short BSD proc info for 5736: No such process
Apr 22 13:41:32 Alexander-Mac backboardd[4622]: [Common] Unable to get proc info for 5736: Undefined error: 0
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: Pasteboard change listener callback port <NSMachPort: 0x7fdf31d04e10> registered
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: Requesting launch of org.nativescript.rctest with options: {
	    environment =     {
	    };
	}
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: Beginning launch sequence for bundle 'org.nativescript.rctest'
		retryTimeout: 120.000000 (default write com.apple.CoreSimulatorBridge LaunchRetryTimeout <value>)
		bootTimeout: 300.000000 (default write com.apple.CoreSimulatorBridge BootRetryTimeout <value>)
		bootLeeway: 120.000000 (default write com.apple.CoreSimulatorBridge BootLeeway <value>)
		Note: Use 'xcrun simctl spawn booted defaults write <domain> <key> <value>' to modify defaults in the booted Simulator device.
	Simulator booted at: 2017-04-22 16:31:12 +0000
	Current time: 2017-04-22 17:41:32 +0000
	Within boot leeway: NO
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: Launch attempt #0 for bundle 'org.nativescript.rctest', have been trying to launch for 0 seconds. Modern launch services = YES
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: Got LSBundleProxy for 'org.nativescript.rctest', sequenceNumber 260, cacheGUID 444AF7D9-F80F-4F19-A597-4EF1EF9128BC
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: [Common] [FBSSystemService][0x1094] Sending request to open "org.nativescript.rctest"
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: [Common] [FBSSystemService][0x1094] Error handling open request for org.nativescript.rctest: <NSError: 0x7fdf31e18340; domain: FBSOpenApplicationServiceErrorDomain; code: 3 (ProcessExited); reason: "The process did launch, but has since exited or crashed."> {
	    description = "The request to open "org.nativescript.rctest" failed.";
	    failureReason = "The process did launch, but has since exited or crashed.";
	}
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: Error Launching: Error Domain=FBSOpenApplicationServiceErrorDomain Code=3 "The request to open "org.nativescript.rctest" failed." UserInfo={NSLocalizedFailureReason=The process did launch, but has since exited or crashed., BSErrorCodeDescription=ProcessExited, NSLocalizedDescription=The request to open "org.nativescript.rctest" failed.}
Apr 22 13:41:32 Alexander-Mac CoreSimulatorBridge[4627]: Non-FBS error launching 'org.nativescript.rctest', will NOT retry. Error was: Error Domain=FBSOpenApplicationServiceErrorDomain Code=3 "The request to open "org.nativescript.rctest" failed." UserInfo={NSLocalizedFailureReason=The process did launch, but has since exited or crashed., BSErrorCodeDescription=ProcessExited, NSLocalizedDescription=The request to open "org.nativescript.rctest" failed.}
Apr 22 13:41:32 Alexander-Mac assertiond[4626]: Ignoring assertion request named "Deliver Message" from <BSProcessHandle: 0x7f8360605da0; SpringBoard:4621; valid: YES> because process { pid 5736; bundleID (null) } is unknown.
Apr 22 13:41:32 Alexander-Mac assertiond[4626]: Ignoring assertion request named "FBSceneSnapshotAction:org.nativescript.rctest" from <BSProcessHandle: 0x7f8360605da0; SpringBoard:4621; valid: YES> because process { pid 5736; bundleID (null) } is unknown.
@dtopuzov
Copy link
Contributor

dtopuzov commented Apr 23, 2017

@alexziskind1 Can you please try:

tns create rctest --template tns-template-hello-world@rc
tns platform add ios@rc --path rctest (we released 3.0.0-rc.2 last week)
tns run ios --path tctest

{N} 3.0.0 include breaking changes and template is also changed (and released with @rc tag).

@alexziskind1
Copy link
Author

Hi @dtopuzov
I tried your suggestion, but received the same error when I made a change in the running app.

@dtopuzov
Copy link
Contributor

dtopuzov commented Apr 26, 2017

@alexziskind1 I still can not reproduce the issue.
Can you please post exact package.json of your app?

@alexziskind1
Copy link
Author

Sure. This happens with any app I try on my machine. I've tried your template. Now I'm able to reproduce the problem with the nativescript groceries app too. Here's the package.json from the groceries app based on the groceries template.

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.Groceries",
    "tns-ios": {
      "version": "3.0.0-rc.1-2017-3-28-2"
    },
    "tns-android": {
      "version": "2.5.0"
    }
  },
  "dependencies": {
    "@angular/common": "2.4.3",
    "@angular/compiler": "2.4.3",
    "@angular/core": "2.4.3",
    "@angular/forms": "2.4.3",
    "@angular/http": "2.4.3",
    "@angular/platform-browser": "2.4.3",
    "@angular/platform-browser-dynamic": "2.4.3",
    "@angular/router": "3.4.3",
    "nativescript-angular": "1.4.0",
    "nativescript-theme-core": "~1.0.2",
    "reflect-metadata": "~0.1.8",
    "rxjs": "~5.0.1",
    "tns-core-modules": "2.5.0"
  },
  "devDependencies": {
    "babel-traverse": "6.24.1",
    "babel-types": "6.24.1",
    "babylon": "6.17.0",
    "lazy": "1.0.11",
    "nativescript-dev-android-snapshot": "^0.*.*",
    "nativescript-dev-typescript": "^0.3.5",
    "typescript": "~2.1.0",
    "zone.js": "~0.7.2"
  }
}

@alexziskind1
Copy link
Author

Confirmed this is still a problem with the 3.0.0 release. But, you probably are already way ahead of me on this one. :)

@dtopuzov
Copy link
Contributor

dtopuzov commented May 8, 2017

Hi @alexziskind1 we are working on the problem and we will provide fix soon (in first hot fix release after 3.0.0).

@dtopuzov
Copy link
Contributor

dtopuzov commented May 10, 2017

Hi @alexziskind1 fix is already available in master, can you please try:

npm un -g nativescript
npm cache clean
npm i -g nativescript@next

I hope we will release it in official release by the end of this week or begging of next week.

@b4rtt
Copy link

b4rtt commented May 10, 2017

@dtopuzov It seems to be working now

@alexziskind1
Copy link
Author

alexziskind1 commented May 10, 2017

Thanks @dtopuzov . I've tested the @next version (3.0.0-2017-05-10-8844) with a new hello world app, and it seems to be working with iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants