Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17181

LiveView: build fails when installing on a different device/simulator

    Details

    • Sprint:
      2014 Sprint 13 Tooling

      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

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              fcasali Federico Casali
              Reviewer:
              Chris Barber
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18868
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration