Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13763] LiveView: App fails to start with LiveView if the server is already enabled with a different app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-06-14T20:35:26.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 10 JS, 2013 Sprint 10, Release 3.1.2, Release 3.2.0
ComponentsLiveView
Labelsn/a
ReporterPraveen Innamuri
AssigneeChristian Sullivan
Created2013-05-06T18:52:31.000+0000
Updated2013-12-03T20:43:04.000+0000

Description

Liveview version : 0.1.12 Steps to reproduce : 1) Launch app A enabled with liveview on iphone simulator. 2) Launch app B enabled with liveview on Android emulator. Actual: App B fails to start on Android emulator (as shown in the screenshot). Expected: App B should be started with liveview

Attachments

FileDateSize
Screen Shot 2013-05-06 at 11.44.19 AM.png2013-05-06T18:52:31.000+0000292810

Comments

  1. Christian Sullivan 2013-05-06

    can you please attache the build log so I can diagnose the issue better
  2. Christian Sullivan 2013-05-06

    unable to reproduce via command line.
  3. Ingo Muschenetz 2013-05-10

    Addressed by commit: https://github.com/appcelerator/liveview/commit/4e37476ee9ada68cf4eb1e0b082289bb34c12db0
  4. Paras Mishra 2013-06-13

    Issue is reproducible. App throws a runtime error while trying to run it with liveview enabled on Emulator. Environment Used: Android Emulator v4.2 , iOS Simulator v6. SDK: 3.1.1.v20130612114553 CLI version : 3.1.1-cr OS : MAC OSX 10.7.5 Appcelerator Studio, build: 3.1.1.201306121633 XCode : 4.5.1 LiveView : 0.1.24 Log: 06-13 10:31:49.948: E/TiExceptionHandler(1003): (main) [5,5397] - Message: Uncaught Error: [LiveView] 06-13 10:31:49.948: E/TiExceptionHandler(1003): (main) [4,5401] - Source: throw new Error('[LiveView]', 'File Server unavailable. Host Unreachable
  5. Olga Romero 2013-06-14

    I was able to launch two different apps , simulator(app A) and emulator(app B) with liveview enabled. Code changes apply on app B now, and I can see it on simulator/emulator. I linked this issue to TIMOB-14168, which is closed now.
  6. Christian Sullivan 2013-06-14

    This is happening because for some reason the precompile hook is never fired in liveview's hook. In this hook the server stop command it executed to stop all servers before starting new ones.
  7. Christian Sullivan 2013-06-14

    Fixed in v0.1.25 https://github.com/appcelerator/liveview/pull/35
  8. Michael Xia 2013-08-14

    Verified fixed on Appcelerator Studio, build: 3.1.2.201308091728, OSX 10.8.3.

JSON Source