{ "id": "172856", "key": "TIMOB-26725", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-01-17T22:55:30.000+0000", "created": "2019-01-14T19:18:30.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2019-01-23T18:43:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "NOTE: To make liveview work with 8.0.0 use latest studio 5.1.2 from jenkins.\r\n\r\nh5.Steps to reproduce:\r\n1. Create a default app.\r\n2. Enable liveview.\r\n3. Build for android device/emulator.\r\n4. After the app launches make changes to initiate app reload.\r\n5. Make another change & again initiate app reload.\r\n\r\nh5.Actual results:\r\n1. Liveview closes the file/event server process & stops working :\r\n{code}\r\n[LiveView] Closing file/event server process id: 49697\r\n{code}\r\n2. I also get these warnings:\r\n{code}\r\n[WARN] : [Pixel] W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.InputStream java.net.Socket.getInputStream()' on a null object reference\r\n[WARN] : [Pixel] W/System.err: \tat ti.modules.titanium.network.socket.TCPProxy.readSync(TCPProxy.java:392)\r\n[WARN] : [Pixel] W/System.err: \tat ti.modules.titanium.stream.StreamModule.pumpSync(StreamModule.java:359)\r\n[WARN] : [Pixel] W/System.err: \tat ti.modules.titanium.stream.StreamModule.access$300(StreamModule.java:24)\r\n[WARN] : [Pixel] W/System.err: \tat ti.modules.titanium.stream.StreamModule$3.run(StreamModule.java:343)\r\n[WARN] : [Pixel] W/System.err: \tat java.lang.Thread.run(Thread.java:764)\r\n{code}\r\n\r\nh5.Expected result:\r\n1. Liveview should not close the file/event server & work as expected.\r\n\r\nAdditional logs:\r\n{code}\r\n[LiveView] Closing file/event server process id: 51218\r\n at Object._errnoException (util.js:1024:11)\r\n at process.kill (internal/process.js:183:18)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:103:12\r\n at Array.forEach ()\r\n at Object.FServer.stop (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:98:7)\r\n at Timeout. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:354:13)\r\n at ontimeout (timers.js:475:11)\r\n at tryOnTimeout (timers.js:310:5)\r\n at Timer.listOnTimeout (timers.js:270:5)\r\n---------------------------------------------\r\n at Socket. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:353:20)\r\n at emitNone (events.js:111:20)\r\n at Socket.emit (events.js:208:7)\r\n at endReadableNT (_stream_readable.js:1056:12)\r\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\r\n at process._tickDomainCallback (internal/process/next_tick.js:218:9)\r\n---------------------------------------------\r\n at Socket.Readable.on (_stream_readable.js:772:35)\r\n at Server. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:348:10)\r\n at emitOne (events.js:116:13)\r\n at Server.emit (events.js:211:7)\r\n at TCP.onconnection (net.js:1561:8)\r\n---------------------------------------------\r\n at Object.FServer.start (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:341:12)\r\n at startServer (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:225:11)\r\n at ClientRequest. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:182:6)\r\n at emitNone (events.js:106:13)\r\n at ClientRequest.emit (events.js:208:7)\r\n at Socket.socketCloseListener (_http_client.js:350:7)\r\n at emitOne (events.js:121:20)\r\n---------------------------------------------\r\n at Domain. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:181:6)\r\n at Domain.run (domain.js:242:14)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:176:10\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/lib/hook.js:235:13\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:3845:9\r\n at replenish (/Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1030:17)\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1034:9\r\n at eachOfLimit (/Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1061:22)\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1066:16 code: 'ESRCH', errno: 'ESRCH', syscall: 'kill' }\r\n[LiveView] Error closing server { Error: kill ESRCH\r\n at Object._errnoException (util.js:1024:11)\r\n at process.kill (internal/process.js:183:18)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:103:12\r\n at Array.forEach ()\r\n at Object.FServer.stop (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:98:7)\r\n at Timeout. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:354:13)\r\n[LiveView] Closing file/event server process id: 51521\r\n at ontimeout (timers.js:475:11)\r\n at tryOnTimeout (timers.js:310:5)\r\n at Timer.listOnTimeout (timers.js:270:5)\r\n---------------------------------------------\r\n at Socket. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:353:20)\r\n at emitNone (events.js:111:20)\r\n at Socket.emit (events.js:208:7)\r\n at endReadableNT (_stream_readable.js:1056:12)\r\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\r\n at process._tickDomainCallback (internal/process/next_tick.js:218:9)\r\n---------------------------------------------\r\n at Socket.Readable.on (_stream_readable.js:772:35)\r\n at Server. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:348:10)\r\n at emitOne (events.js:116:13)\r\n at Server.emit (events.js:211:7)\r\n at TCP.onconnection (net.js:1561:8)\r\n---------------------------------------------\r\n at Object.FServer.start (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:341:12)\r\n at startServer (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:225:11)\r\n at ClientRequest. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:182:6)\r\n at emitNone (events.js:106:13)\r\n at ClientRequest.emit (events.js:208:7)\r\n at Socket.socketCloseListener (_http_client.js:350:7)\r\n at emitOne (events.js:121:20)\r\n---------------------------------------------\r\n at Domain. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:181:6)\r\n at Domain.run (domain.js:242:14)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:176:10\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/lib/hook.js:235:13\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:3845:9\r\n at replenish (/Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1030:17)\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1034:9\r\n at eachOfLimit (/Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1061:22)\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1066:16 code: 'ESRCH', errno: 'ESRCH', syscall: 'kill' }\r\n[LiveView] Error closing server { Error: kill ESRCH\r\n at Object._errnoException (util.js:1024:11)\r\n at process.kill (internal/process.js:183:18)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:103:12\r\n at Array.forEach ()\r\n at Object.FServer.stop (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:98:7)\r\n at Timeout. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:354:13)\r\n at ontimeout (timers.js:475:11)\r\n at tryOnTimeout (timers.js:310:5)\r\n at Timer.listOnTimeout (timers.js:270:5)\r\n---------------------------------------------\r\n at Socket. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:353:20)\r\n at emitNone (events.js:111:20)\r\n at Socket.emit (events.js:208:7)\r\n at endReadableNT (_stream_readable.js:1056:12)\r\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\r\n at process._tickDomainCallback (internal/process/next_tick.js:218:9)\r\n---------------------------------------------\r\n at Socket.Readable.on (_stream_readable.js:772:35)\r\n at Server. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:348:10)\r\n at emitOne (events.js:116:13)\r\n at Server.emit (events.js:211:7)\r\n at TCP.onconnection (net.js:1561:8)\r\n---------------------------------------------\r\n at Object.FServer.start (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/lib/fserver.js:341:12)\r\n at startServer (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:225:11)\r\n at ClientRequest. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:182:6)\r\n at emitNone (events.js:106:13)\r\n at ClientRequest.emit (events.js:208:7)\r\n at Socket.socketCloseListener (_http_client.js:350:7)\r\n at emitOne (events.js:121:20)\r\n---------------------------------------------\r\n at Domain. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:181:6)\r\n at Domain.run (domain.js:242:14)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20190114044343/node_modules/liveview/hook/lvhook.js:176:10\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/lib/hook.js:235:13\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:3845:9\r\n at replenish (/Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1030:17)\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1034:9\r\n at eachOfLimit (/Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1061:22)\r\n at /Users/lchoudhary/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1066:16 code: 'ESRCH', errno: 'ESRCH', syscall: 'kill' }\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Liveview closes file/event server process after the first app reload & stops working", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 5.1.2.201812191831\r\nSDK Ver: 8.0.0.v20190114044343\r\nOS Ver: 10.14\r\nXcode Ver: Xcode 10.1\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.0.9\r\nDaemon Ver: 1.1.3\r\nTi CLI Ver: 5.1.1\r\nAlloy Ver: 1.13.4\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 10.0.2\r\nDevices: ⇨ google Nexus 5 (Android 6.0.1)\r\n ⇨ google Pixel (Android 9)\r\n", "closedSprints": [ { "id": 1108, "state": "closed", "name": "2019 Sprint 2", "startDate": "2019-01-14T17:20:19.067Z", "endDate": "2019-01-26T17:20:00.000Z", "completeDate": "2019-01-28T17:38:11.580Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "445286", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "So there's a change to autokill the liveview server if it hasn't reloaded in 10 seconds (https://github.com/appcelerator/liveview/pull/119). In hindsight that's way too short, 1 minute is probably a sane minimum. https://github.com/appcelerator/liveview/blob/1c8d3ba0539cb7765bbd46ab07e0ebad1c2216a9/lib/fserver.js#L355 just needs changing to a new number.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-01-14T19:47:26.000+0000", "updated": "2019-01-14T19:47:26.000+0000" }, { "id": "445289", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/liveview/pull/123", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-01-14T20:16:50.000+0000", "updated": "2019-01-14T20:16:50.000+0000" }, { "id": "445291", "author": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "body": "Oops. My bad. ", "updateAuthor": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "created": "2019-01-14T20:33:35.000+0000", "updated": "2019-01-14T20:33:35.000+0000" }, { "id": "445292", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~eharris], I think a minute is short as well. I guess 3-5 minutes should be good. Because I think it will defeat the purpose of liveview if we have to rebuild the app again after a minute timeout interval to see the changes. Don't know I might be wrong here. What do you think ?", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-14T20:49:16.000+0000", "updated": "2019-01-14T20:49:16.000+0000" }, { "id": "445480", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/10635\r\n8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10636", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-18T21:24:30.000+0000", "updated": "2019-01-18T21:29:36.000+0000" }, { "id": "445516", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "master liveview update: https://github.com/appcelerator/titanium_mobile/pull/10633\r\n8_0_X liveview update: https://github.com/appcelerator/titanium_mobile/pull/10639", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-01-21T16:28:14.000+0000", "updated": "2019-01-21T16:28:14.000+0000" }, { "id": "445571", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Latest PR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-23T17:32:43.000+0000", "updated": "2019-01-23T17:32:43.000+0000" }, { "id": "445575", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with sdk 8.0.0.v20190123061938.\r\nClosing.\r\n\r\nStudio Ver: 5.1.2.201812191831\r\nSDK Ver: 8.0.0.v20190123061938\r\nOS Ver: 10.14\r\nXcode Ver: Xcode 10.1\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.0.10-master.5\r\nDaemon Ver: 1.1.3\r\nTi CLI Ver: 5.1.1\r\nAlloy Ver: 1.13.7\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 10.0.2\r\nDevices: ⇨ google Nexus 5 (Android 6.0.1)\r\n ⇨ google Pixel (Android 9)", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-23T18:43:47.000+0000", "updated": "2019-01-23T18:43:47.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }