{ "id": "124451", "key": "TIMOB-16139", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-01-09T00:39:24.000+0000", "created": "2014-01-07T08:39:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "liveview", "mobileweb" ], "versions": [], "issuelinks": [], "assignee": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T16:47:56.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": "*Description:*\r\nI attempted to start an iOS simulator session with liveview then open mobile web, the LiveView serve stop and iOS application get error.\r\n\r\nin mobileweb console log\r\n{code}\r\n[LiveView] Closing file/event server process id: 32238\r\n{code}\r\n\r\nin iOS console log\r\n{code}\r\n[LiveView] Client connected\r\n[ERROR] : [LiveView] Disconnected from Event Server\r\n[INFO] : [LiveView] Attempting reconnect to Event Server\r\n[ERROR] : Script Error {\r\n[ERROR] : backtrace = \"#0 () at file:///Users/hazemkhaled/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/EF83504F-E610-4045-BD32-A78EEB00F02C/traapp.app/app.js:140\\n#1 () at file:///Users/hazemkhaled/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/EF83504F-E610-4045-BD32-A78EEB00F02C/traapp.app/app.js:243\";\r\n[ERROR] : line = 465;\r\n[ERROR] : message = \"[LiveView] Event Server unavailable. Connection Refused @ 192.168.1.4:8324\\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.\";\r\n[ERROR] : sourceId = 318261344;\r\n[ERROR] : sourceURL = \"file:///Users/hazemkhaled/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/EF83504F-E610-4045-BD32-A78EEB00F02C/traapp.app/app.js\";\r\n[ERROR] : }\r\n[ERROR] : 2014-01-07 12:22:33.478 traapp[32333:80b] Warning: Attempt to present on whose view is not in the window hierarchy!\r\n{code}\r\n\r\n*Steps to reproduce:*\r\n# Create a new project with services enabled\r\n# Launch a liveview session in iOS simulator via Studio\r\n# Run on mobile web (safari)\r\n\r\n*Result:*\r\nLiveView stopped and iOS give me application error\r\n\r\nExpected Result:\r\nThe mobile web working without stop LiveView\r\n", "attachment": [ { "id": "44966", "filename": "iOS Simulator Screen shot Jan 7, 2014, 12.21.10 PM.png", "author": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2014-01-07T08:39:07.000+0000", "size": 123196, "mimeType": "image/png" } ], "flagged": false, "summary": "LiveView: Closing file/event servers after run mobile web", "creator": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "environment": "Mac OS 10.9.1\r\nSafari: 7.0.1\r\nXcode 5.0.2\r\nliveview: 1.0.1\r\nCLI: 3.2.0\r\ntitanium-code-processor: 1.0.1\r\nAlloy: 1.1.0\r\nAppcelerator Studio, build: 3.2.1.201401031222\r\nTitanium SDK version 3.2.0 / 3.2.1.v20140106195644", "comment": { "comments": [ { "id": "287010", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "LiveView currently doesn't support Mobile Web app, so the fix here should be to not close the running LiveView server when launching Mobile Web app.", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T18:42:24.000+0000", "updated": "2014-01-07T18:42:24.000+0000" }, { "id": "287114", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I would say this is invalid since liveview should stop running when the app is built with out the --liveview flag.", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-08T00:08:58.000+0000", "updated": "2014-01-08T00:08:58.000+0000" }, { "id": "287373", "author": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Christian,\r\n\r\nSo you mean if i run this command\r\nti build --platform=ios --liveview\r\n\r\nthen run this one\r\nti build --platform=mobileweb --liveview\r\n\r\niOS liveview will not stop? unfortunately liveview stopped again\r\n\r\n{code}\r\nINFO] Processing splash screen\r\n[INFO] Assembling titanium.css\r\n[INFO] Creating the filesystem registry\r\n[INFO] Creating the index.html\r\n[LiveView] Closing file/event server process id: 19783\r\n[INFO] Project built successfully in 14s 648ms\r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2014-01-09T05:16:53.000+0000", "updated": "2014-01-09T05:16:53.000+0000" }, { "id": "413699", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T16:47:56.000+0000", "updated": "2017-03-20T16:47:56.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }