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

LiveView: Building to an Android emulator fails with [LiveView] File Server unavailable. Host Unreachable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 3.5.1
    • Fix Version/s: None
    • Component/s: Android, LiveView
    • Environment:

      Mac OSX 10.10.2
      Appcelerator Studio, build: 3.4.2.201502181619
      Titanium SDK build: 3.5.1.v20150219140555
      Titanium CLI, build: 3.4.2-alpha
      Alloy: 1.5.1
      Android Emulator 5.0.1
      LiveView 1.0.7

    • Story Points:
      8
    • Sprint:
      2015 Sprint 04 Tooling

      Description

      Description

      When attempting to build to an Android emulator the build fails with.

       [ERROR] :  TiExceptionHandler: (main) [9499,9499] ----- Titanium Javascript Runtime Error -----
          [ERROR] :  TiExceptionHandler: (main) [1,9500] - In app.js:567,13
          [ERROR] :  TiExceptionHandler: (main) [1,9501] - Message: Uncaught Error: [LiveView] File Server unavailable. Host Unreachable @ 172.16.0.216:8324
          [ERROR] :  TiExceptionHandler: [LiveView] Please ensure your device and computer are on the same network and the port is not blocked.
      

      I do not believe this is a regression as it has been reported in previous versions of LiveView

      To workaround just disable LiveView and the build will be fine

      Building to device with LiveView works fine and I am able to make changes with no errors
      Checking the log output shows that the LiveView server has started

      [LiveView] version 1.0.7
      [LiveView] File Server Started on Port 8324
      [LiveView] Alloy project monitor started
      [LiveView] Event Server Started on Port 8323
      

      This issue is not reliant on a node version, it occurs in node 0.12 as well as 0.10.32

      Steps To Reproduce

      1. Build to an Android emulator from Studio with LiveView enabled

      Actual Result

      The build fails with the error above

      Expected Result

      The build should not fail and LiveView should be working as expected

        Issue Links

          Activity

          Hide
          msamah Ashraf Abu (Inactive) added a comment - - edited

          Tried this with Android 6.0 on a Nexus 6 with 5.2.0.GA with an Alloy application. Using Mac OS X. No issues for me.
          (If it matters, my node is v0.10.37)

          Show
          msamah Ashraf Abu (Inactive) added a comment - - edited Tried this with Android 6.0 on a Nexus 6 with 5.2.0.GA with an Alloy application. Using Mac OS X. No issues for me. (If it matters, my node is v0.10.37)
          Hide
          ingo Ingo Muschenetz added a comment -

          I didn't think we still officially supported Node 0.10.73. I thought we mandated 0.12.X and above?

          Show
          ingo Ingo Muschenetz added a comment - I didn't think we still officially supported Node 0.10.73. I thought we mandated 0.12.X and above?
          Hide
          msamah Ashraf Abu (Inactive) added a comment -

          Will get my Node updated and check to see if this occurs.

          Show
          msamah Ashraf Abu (Inactive) added a comment - Will get my Node updated and check to see if this occurs.
          Hide
          msamah Ashraf Abu (Inactive) added a comment -

          Updated node.
          Tried this with:-
          Node.js
          Node.js Version = 0.12.10
          npm Version = 2.14.9
          Titanium CLI
          CLI Version = 5.0.6
          Titanium SDK
          SDK Version = 5.2.0.GA

          No issues. Works correctly.

          Show
          msamah Ashraf Abu (Inactive) added a comment - Updated node. Tried this with:- Node.js Node.js Version = 0.12.10 npm Version = 2.14.9 Titanium CLI CLI Version = 5.0.6 Titanium SDK SDK Version = 5.2.0.GA No issues. Works correctly.
          Hide
          mkellogg91@gmail.com Michael Kellogg added a comment - - edited

          I was using one of the Nodejs LTS installations hence the nodejs version: 4.3.1 I'm not sure if this would change my experience, but my suspicion is that it would. I've since gone out and installed nodejs 0.12.10 since I saw that others were using that instead. Also, since writing my previous post I am using Genymotion for Android emulators and they only support up to android build 22 (sdk 6.0 is build 23 and build 23 was what I was previously having trouble with). At any rate I have my liveview working now.

          Show
          mkellogg91@gmail.com Michael Kellogg added a comment - - edited I was using one of the Nodejs LTS installations hence the nodejs version: 4.3.1 I'm not sure if this would change my experience, but my suspicion is that it would. I've since gone out and installed nodejs 0.12.10 since I saw that others were using that instead. Also, since writing my previous post I am using Genymotion for Android emulators and they only support up to android build 22 (sdk 6.0 is build 23 and build 23 was what I was previously having trouble with). At any rate I have my liveview working now.

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              eharris Ewan Harris
            • Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:

                Development

                  Agile

                    Poker Sessions

                    This issue is currently not assigned to any Poker Session.

                      Git Source Code