Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16161] LiveView: App fails to relauch on code changed with enabled liveView

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-01-23T01:15:26.000+0000
Affected Version/sRelease 3.2.1
Fix Version/s2014 Sprint 02, 2014 Sprint 02 Core, Release 3.2.1, Release 3.3.0
ComponentsLiveView
Labelsmodule_liveview, qe-3.2.1, qe-testadded, regression
ReporterPriya Agarwal
AssigneeChris Barber
Created2014-01-10T08:06:00.000+0000
Updated2014-02-24T19:28:05.000+0000

Description

Its is regression As working fine on 3.2.0.GA Both Classic and Alloy App fails to relaunch on code changed with liveView enabled. Neither app closes nor relaunches itself. Steps to reproduce: 1. Create default alloy/classic app. 2. Enable LiveView and run the app. 3. App Launches Successfully. 4. Change the code and save. 5. App neither closes nor relaunches with changed code. On Console gets logs as mentioned below after the code change
[INFO] :   ALERT: (KrollRuntimeThread) [3092,3092] Hello, World
[WARN] :   TiVerify: (Timer-0) [1915,5007] Verifying module licenses...
[INFO] :   TiVerify: (Timer-0) [1309,6316] Succesfully verified module licenses
[LiveView] Alloy recompile initiated for android
[LiveView] Reload Triggered
  REASON: File Changed
  FILE: /Users/p.agarwal/Project/3.2.1/Appcelerator_Studio_Workspace/live/app/controllers/index.js
[LiveView] Reload Triggered
  REASON: File Changed
  FILE: /Users/p.agarwal/Project/3.2.1/Appcelerator_Studio_Workspace/live/Resources/android/alloy/sync/sql.js
[INFO] :   TiAnalyticsSvc: (Thread-1435) [24005,30321] Analytics Service Started
[INFO] :   TiAnalyticsSvc: (Thread-1435) [3086,33407] Stopping Analytics Service

Attachments

FileDateSize
build_320.log2014-01-23T00:02:21.000+000015996
build.log2014-01-22T23:52:32.000+000017404

Comments

  1. Christian Sullivan 2014-01-16

    Is this ticket stating that liveview fails on device and emulator/simulator?
  2. Christian Sullivan 2014-01-16

    What version of liveview is this tested on ?
  3. Priya Agarwal 2014-01-17

    Actually liveView server starts. Getting below message on console - [LiveView] version 1.0.1 [LiveView] File Server Started on Port 8324 [LiveView] Event Server Started on Port 8323 But if I change in the code (js file) and save then liveView does not relaunch the app with reflected code.
  4. Christian Sullivan 2014-01-17

    [~pagarwal] can you please attach your log output to the ticket so I may review it. Thanks
  5. Michael Xia 2014-01-21

    The environment shows 3.2.1 for CLI, so likely related to TIMOB-16231. Marking it fixed now TIMOB-16231 is addressed.
  6. Priya Agarwal 2014-01-21

    Unable to verify this ticket. Hence Reopening the issue. Since the ticket was closed with reference to TIMOB-16231 and according to workaround mentioned in mail. Need to remove liveView hook from paths.hooks in ti config So have done the above changes. After the above change was able to successfully build the app and run. But as soon as I enabled LiveView and tried again, build failed and again liveView hook path is getting added in paths.hooks in ti config
  7. Michael Xia 2014-01-21

    [~pagarwal] We just pushed another Studio 3.2.1 that includes the latest LiveView fix. Could you try updating and verify if the issue still happens? Thanks.
  8. Dhirendra Jha 2014-01-22

    Could not verify this issue as LiveView is not working. Logged an issue TIMOB-16286
  9. Michael Xia 2014-01-22

    Re-opening this ticket since I'm seeing the behavior with LiveView included in Studio 3.2.1.201401221450 + CLI 3.2.1 + SDK 3.2.1.v20140121132444. Attached the build log when run on a default two-tab alloy app.
  10. Michael Xia 2014-01-23

    Both Studio 3.2.1 + CLI 3.2.1 + SDK 3.2.0 and Studio 3.2.1 + CLI 3.2.0 + SDK 3.2.0 work for LiveView. Attached the working build log.
  11. Chris Barber 2014-01-23

    Titanium Mobile master pull request: https://github.com/appcelerator/titanium_mobile/pull/5247 Titanium Mobile 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5248
  12. Priya Agarwal 2014-01-23

    Issue seems to be resolved. Verified with Test Environment: Appc Studio:3.2.1.201401221450 Sdk:3.2.1.v20140122175749 alloy:1.3.1-beta3 titanium:3.2.1-beta2 acs:1.0.11 titanium-code-processor:1.1.0 Osx: Maverick 10.9 Xcode:5.0.2 Device:Nexus7(v4.4.2),Iphone5(v7.0.4) Steps followed: 1.Created both Classic and Alloy Default app. 2.Deployed on device with liveView enabled. App launches successfully on device. 3.Did some changes in code for both alloy and classic app. App launches successfully with changed code. App relauches successfully on code changed with liveView enabled.
  13. Samuel Dowse 2014-01-28

    Verified fixed on: Mac OSX 10.9.1 Appcelerator Studio, build: 3.2.1.201401241158 Titanium SDK, build: 3.2.1.v20140124163734 CLI: 3.2.1-beta3 Alloy: 1.3.1-beta4 Xcode: 5.0.2 LiveView: 1.0.2 Android Emulator: 2.3.3, 4.4 Android Device: Sony Ericsson Arc S (4.0.4) LiveView refreshes both device and emulator with every code change for both alloy and classic. Closing.

JSON Source