Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17181] LiveView: build fails when installing on a different device/simulator

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-06-26T21:31:40.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.3.0
ComponentsLiveView
Labelsmodule_liveview, qe-3.3.0, qe-testadded, regression
ReporterFederico Casali
AssigneePraveen Innamuri
Created2014-06-18T20:52:29.000+0000
Updated2014-07-03T10:14:51.000+0000

Description

Problem description

Build fails to install and launch when building on any other device/simulator other than the first one. The issue seems to be relative to LiveView version 1.0.4 Using LiveView 1.0.3 and everything else 3.3.0, this issue is not reproducible - in this case the app is built and run correctly on the new device/simulator and LiveView is only working and updating modifications in the latest device/simulator used (so, is supporting only one device at a time). Marking as regression.

Steps to reproduce

1. Create a new default app from Studio (classic or Alloy) 2. Enable LiveView and build/run on iOS simulator Result: app build and runs correctly. LiveView is working as expected (so every change made to the code is correctly updated on the running application) 3. Keep LiveView enabled and build/run on a different device or OS (for example, build for Android device) Result: App fails to install and run. The following error logs are displayed:
[ERROR] :  [LiveView] Disconnected from Event Server
			[INFO] :   [LiveView] Attempting reconnect to Event Server
			[ERROR] :  Script Error {
			[ERROR] :      backtrace = "#0 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:140\n#1 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:243";
			[ERROR] :      line = 465;
			[ERROR] :      message = "[LiveView] Event Server unavailable. Connection Refused @ 172.16.2.131:8324\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.";
			[ERROR] :      sourceId = 367040832;
			[ERROR] :      sourceURL = "file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js";
			[ERROR] :  }
			[INFO] :   [LiveView] Attempting reconnect to Event Server
			[ERROR] :  Script Error {
			[ERROR] :      backtrace = "#0 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:140\n#1 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:243";
			[ERROR] :      line = 465;
			[ERROR] :      message = "[LiveView] Event Server unavailable. Connection Refused @ 172.16.2.131:8324\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.";
			[ERROR] :      sourceId = 367040832;
			[ERROR] :      sourceURL = "file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js";
			[ERROR] :  }
			[ERROR] :  2014-06-18 11:24:03.760 liveviewTest[51058:70b] Warning: Attempt to present <TiErrorController: 0x15b22010> on <TiRootViewController: 0xd48fec0> whose view is not in the window hierarchy!
			[INFO] :   [LiveView] Attempting reconnect to Event Server
			[ERROR] :  Script Error {
			[ERROR] :      backtrace = "#0 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:140\n#1 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:243";
			[ERROR] :      line = 465;
			[ERROR] :      message = "[LiveView] Event Server unavailable. Connection Refused @ 172.16.2.131:8324\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.";
			[ERROR] :      sourceId = 367040832;
			[ERROR] :      sourceURL = "file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js";
			[ERROR] :  }
			[ERROR] :  2014-06-18 11:24:05.757 liveviewTest[51058:70b] Warning: Attempt to present <TiErrorController: 0x15c640d0> on <TiRootViewController: 0xd48fec0> whose view is not in the window hierarchy!
			[INFO] :   [LiveView] Attempting reconnect to Event Server
			[ERROR] :  Script Error {
			[ERROR] :      backtrace = "#0 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:140\n#1 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:243";
			[ERROR] :      line = 465;
			[ERROR] :      message = "[LiveView] Event Server unavailable. Connection Refused @ 172.16.2.131:8324\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.";
			[ERROR] :      sourceId = 367040832;
			[ERROR] :      sourceURL = "file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js";
			[ERROR] :  }
			[ERROR] :  2014-06-18 11:24:07.756 liveviewTest[51058:70b] Warning: Attempt to present <TiErrorController: 0x1474bd20> on <TiRootViewController: 0xd48fec0> whose view is not in the window hierarchy!
			[INFO] :   [LiveView] Attempting reconnect to Event Server
			[ERROR] :  Script Error {
			[ERROR] :      backtrace = "#0 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:140\n#1 () at file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js:243";
			[ERROR] :      line = 465;
			[ERROR] :      message = "[LiveView] Event Server unavailable. Connection Refused @ 172.16.2.131:8324\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.";
			[ERROR] :      sourceId = 367040832;
			[ERROR] :      sourceURL = "file:///Users/fede/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/075B92B0-3FF9-49EB-8C78-4C68691D33FD/liveviewTest.app/app.js";
			[ERROR] :  }
			[ERROR] :  2014-06-18 11:24:09.756 liveviewTest[51058:70b] Warning: Attempt to present <TiErrorController: 0x1474bd20> on <TiRootViewController: 0xd48fec0> whose view is not in the window hierarchy!
Also, on iOS simulator, an Application Error is now displayed. See screenshot.

Attachments

FileDateSize
Screen Shot 2014-06-18 at 11.27.55 AM.png2014-06-18T20:52:29.000+0000117815

Comments

  1. Ingo Muschenetz 2014-06-18

    I'm assuming this must be a regression caused by the fix for TIMOB-16740.
  2. Praveen Innamuri 2014-06-18

    [~ingo] Not sure. But this has to be addressed for 3.3.0 release.
  3. Praveen Innamuri 2014-06-26

    https://github.com/appcelerator/liveview/pull/80

JSON Source