[TIMOB-16161] LiveView: App fails to relauch on code changed with enabled liveView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-23T01:15:26.000+0000 |
Affected Version/s | Release 3.2.1 |
Fix Version/s | 2014 Sprint 02, 2014 Sprint 02 Core, Release 3.2.1, Release 3.3.0 |
Components | LiveView |
Labels | module_liveview, qe-3.2.1, qe-testadded, regression |
Reporter | Priya Agarwal |
Assignee | Chris Barber |
Created | 2014-01-10T08:06:00.000+0000 |
Updated | 2014-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
File | Date | Size |
---|---|---|
build_320.log | 2014-01-23T00:02:21.000+0000 | 15996 |
build.log | 2014-01-22T23:52:32.000+0000 | 17404 |
Is this ticket stating that liveview fails on device and emulator/simulator?
What version of liveview is this tested on ?
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.
[~pagarwal] can you please attach your log output to the ticket so I may review it. Thanks
The environment shows 3.2.1 for CLI, so likely related to TIMOB-16231. Marking it fixed now TIMOB-16231 is addressed.
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
[~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.
Could not verify this issue as LiveView is not working. Logged an issue TIMOB-16286
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.
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.
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
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.
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.