{ "id": "114089", "key": "TIMOB-13801", "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": "15490", "description": "2013 Sprint 10 JS", "name": "2013 Sprint 10 JS", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-18T03:24:01.000+0000", "created": "2013-05-09T18:14:45.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-3.1.1", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "28758", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "114312", "key": "TIMOB-13845", "fields": { "summary": "LiveView: Android app reload does not pass splash screen", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "28820", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "113733", "key": "TISTUD-4492", "fields": { "summary": "Liveview: Fastdev prevents liveview from working on android emulator", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "28646", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "113879", "key": "TIMOB-13768", "fields": { "summary": "LiveView: iOS simulator does not start when LiveView server is stopped", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-24T23:54:05.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": "h5. Description:\r\nI attempted to start an iOS simulator session with liveview and the app sits on the splash and the following is returned in the console for iOS:\r\n\r\n{code}\r\n[ERROR] : \b\b \b[LiveView] Event Sever unavailable. Connection Refused\r\n[ERROR] : \b\b \b[LiveView] Event Sever unavailable. Connection Refused\r\n{code}\r\n\r\nFor Android I get a runtime error, see attachment.\r\n\r\nThe same behavior occurs with CLI and Studio.\r\n\r\nh5. Steps to reproduce:\r\n1) Create a new project with services enabled\r\n2) Launch a liveview session in simulator or emulator via CLI or Studio\r\n\r\nh5. Result:\r\nRuntime error if android\r\niOS hang on splash - errors in console\r\n\r\nh5. Expected Result:\r\nThe simulator/emulator launches, and liveview functions", "attachment": [ { "id": "38290", "filename": "Screen Shot 2013-05-09 at 11.08.49 AM.png", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T18:14:45.000+0000", "size": 206753, "mimeType": "image/png" }, { "id": "38289", "filename": "Screen Shot 2013-05-09 at 11.09.14 AM.png", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T18:14:45.000+0000", "size": 294490, "mimeType": "image/png" } ], "flagged": false, "summary": "LiveView: iOS and Android: Server not found on launch", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.8.3\r\nSafari: 6.0.4\r\nXcode 4.6\r\nliveview: 0.1.15\r\nCLI: 3.1.0\r\ntitanium-code-processor: 1.0.1\r\nAlloy: 1.1.2\r\nAppcelerator Studio, build: 3.1.1.201305090345\r\nTitanium SDK version 3.1.1.v20130509083909", "comment": { "comments": [ { "id": "251080", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is an issue with Studio. The problem is the bin/liveview-server file has the incorrect permissions.", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T18:18:47.000+0000", "updated": "2013-05-09T18:18:47.000+0000" }, { "id": "251087", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here is the list of permissions from bin up. Which one looks bad?\n\nContents of my bin:\n-rwxr-xr-x 1 emerriman admin 2149 May 8 16:49 liveview\n-rwxr-xr-x 1 emerriman admin 562 May 3 10:02 liveview-help\n-rwxr-xr-x 1 emerriman admin 1305 May 3 10:02 liveview-install\n-rwxr-xr-x 1 emerriman admin 1065 May 3 10:02 liveview-rm\n-rwxr-xr-x 1 emerriman admin 1550 May 3 10:02 liveview-run\n-rwxr-xr-x 1 emerriman admin 1274 May 8 16:49 liveview-server\n\nMy bin folder:\ndrwxr-xr-x 8 emerriman admin 272 May 9 09:15 bin\n\nMy liveview folder:\ndrwxr-xr-x 13 emerriman admin 442 May 9 09:15 liveview\n\nNode module:\ndrwxr-xr-x 4 emerriman admin 136 May 9 09:15 node_modules\n\nThe plugin:\ndrwxr-xr-x 7 emerriman admin 238 May 9 09:15 com.appcelerator.titanium.liveview.core_1.0.0.1368080563\n\nThe plugin folder:\ndrwxr-xr-x@ 322 emerriman admin 10948 May 9 09:15 plugins\n\nAnd the application folder:\ndrwxr-xr-x@ 17 emerriman admin 578 May 9 09:17 Appcelerator Studio", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T18:29:15.000+0000", "updated": "2013-05-09T18:29:15.000+0000" }, { "id": "251088", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "what do you get for `ti config`", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T18:33:19.000+0000", "updated": "2013-05-09T18:33:19.000+0000" }, { "id": "251089", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This works as well:\n/Applications/Appcelerator\\ Studio/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1368080563/node_modules/liveview/bin/liveview-server status", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T18:35:23.000+0000", "updated": "2013-05-09T18:35:23.000+0000" }, { "id": "251091", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "emerrimanMBP:~ emerriman$ ti config\nandroid.ndkPath = \"/Users/emerriman/android-ndk-r8d\"\nandroid.sdkPath = \"/Users/emerriman/Android_SDK\"\napp.sdk = \"3.1.1.v20130509083909\"\napp.workspace = \"~/Documents/workspace/\"\ncli.colors = true\ncli.completion = false\ncli.failOnWrongSDK = false\ncli.logLevel = \"trace\"\ncli.prompt = true\ncli.quiet = false\npaths.commands = []\npaths.hooks = [\"/Applications/Appcelerator Studio/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1368080563/node_modules/liveview/hook\"]\npaths.modules = []\npaths.plugins = []\nuser.email = \"emerriman@appcelerator.com\"\nuser.locale = \"en\"\nuser.name = \"Eric Merriman\"\nemerrimanMBP:~ emerriman$ \n\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T18:35:45.000+0000", "updated": "2013-05-09T18:35:45.000+0000" }, { "id": "251317", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is caused by spaces not being escaped in the bin path\nResolved in 0.1.6 https://github.com/appcelerator/liveview/tree/0.1.16", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T17:05:20.000+0000", "updated": "2013-05-10T17:05:20.000+0000" }, { "id": "251437", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm still getting this in 0.1.16:\r\n\r\n{code}\r\n[LiveView] Server is already running\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] : Application started\r\n[INFO] : TestLVAlloy/1.0 (3.1.1.v20130509173053.ea47c2a)\r\n[ERROR] : [LiveView] Event Server unavailable. Connection Refused\r\n[ERROR] : [LiveView] Event Server unavailable. Connection Refused\r\n[ERROR] : Terminating in response to SpringBoard's termination.\r\n-- End simulator log ---------------------------------------------------------\r\n[INFO] : Application has exited from iOS Simulator\r\n[INFO] : Project built successfully in 48s 594ms\r\n{code}\r\n\r\nNote that I just restarted Studio, so there shouldn't be anything running. I also don't see any node processes. Is this an errant .pid file?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-11T17:18:59.000+0000", "updated": "2013-05-11T17:19:15.000+0000" }, { "id": "251438", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved in 0.1.17 https://github.com/appcelerator/liveview/tree/0.1.17", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-11T17:20:53.000+0000", "updated": "2013-05-11T17:20:53.000+0000" }, { "id": "251449", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is actually now broken for me again.\r\n\r\nIf I run 0.1.17, I get:\r\n\r\n{code}\r\n[DEBUG] Terminating all iOS simulators\r\n[DEBUG] Removing old log file: /Users/ingo/Library/Application Support/iPhone Simulator/6.1/Applications/813047AD-4E93-4952-BA30-BDF782565ED9/Documents/a38800e6-a563-40d3-b5eb-b391f85bb73a.log\r\n\r\nmodule.js:340\r\nthrow err;\r\n^\r\nError: Cannot find module '/Applications/Appcelerator\\ Studio/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1368309321/node_modules/liveview/bin/liveview-server'\r\nat Function.Module._resolveFilename (module.js:338:15)\r\nat Function.Module._load (module.js:280:25)\r\nat Module.runMain (module.js:492:10)\r\nat process.startup.processNextTick.process._tickCallback (node.js:245:9)\r\n[INFO] Launching application in iOS Simulator\r\n[TRACE] Simulator environment: DYLD_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks:/Applications/Xcode.app/Contents/OtherFrameworks\r\n[DEBUG] Simulator command: \"/Users/ingo/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.v20130509173053/iphone/ios-sim\" launch \"/Users/ingo/Documents/Appcelerator_Studio_Workspace/TestLV1/build/iphone/build/Debug-iphonesimulator/TestLV1.app\" --sdk 6.1 --family iphone\r\n[INFO] Focusing the iOS Simulator\r\n[DEBUG] Found iPhone Simulator log file: /Users/ingo/Library/Application Support/iPhone Simulator/6.1/Applications/813047AD-4E93\r\n{code}\r\n\r\nIf I instead revert back to 0.1.16, it works, though I am able to get myself into a situation where it comes back again.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-12T09:44:26.000+0000", "updated": "2013-05-12T09:44:26.000+0000" }, { "id": "251451", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sometimes it's a bad PID file. Suggest writing out console.log(FServer.pids()) as part of debug messaging for around line 147 of fserver.js\n\nDeleting the .pid file allowed me to recontinue.\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-12T10:29:46.000+0000", "updated": "2013-05-12T10:29:46.000+0000" }, { "id": "251460", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-12T20:49:09.000+0000", "updated": "2013-05-12T20:49:09.000+0000" }, { "id": "251462", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To ensure a fresh install execute liveview-server stop from the bin folder of the node_modules/liveview to make sure all the pids are cleared before testing a new version.", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-12T20:51:37.000+0000", "updated": "2013-05-12T20:51:37.000+0000" }, { "id": "251463", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-12T20:58:23.000+0000", "updated": "2013-05-12T20:58:23.000+0000" }, { "id": "251466", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FWIW, moving Appcelerator Studio to a location where the hook had no spaces in the path worked for me:\n\n{code}\nIngos-MacBook-Pro:com.appcelerator.titanium.liveview.core_1.0.0.1368309321 ingo$ ti config\napp.sdk = \"latest\"\napp.workspace = \"\"\ncli.colors = true\ncli.completion = false\ncli.failOnWrongSDK = false\ncli.httpProxyServer = \"\"\ncli.logLevel = \"trace\"\ncli.prompt = true\ncli.quiet = false\npaths.commands = []\npaths.hooks = [\"/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1368309321/node_modules/liveview/hook\"]\npaths.modules = []\npaths.plugins = []\npaths.sdks = []\n{code}", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-13T00:42:52.000+0000", "updated": "2013-05-13T00:42:52.000+0000" }, { "id": "252367", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't have any spaces in the hook path.\r\n\r\nThis was working yesterday when LiveView Version: 0.1.20 was up.\r\n\r\nThis is not working anymore.\r\n\r\nLiveView Version: 0.1.21\r\nTitanium SDK: 3.1.1.v20130509140103\r\nAndroid Emulator: Google APIs 2.3.3\r\n\r\n{code}\r\nDHydeMBP:~ dhyde$ ti config paths.hooks\r\n/Applications/Appcelerator/Appcelerator_Studio_3.1.1/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1368654722/node_modules/liveview/hook\r\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-16T20:39:18.000+0000", "updated": "2013-05-16T20:42:04.000+0000" }, { "id": "252380", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Try running `/Applications/Appcelerator/Appcelerator_Studio_3.1.1/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1368654722/node_modules/liveview server stop` then test again just to ensure all old pids have been cleared.", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-16T21:07:54.000+0000", "updated": "2013-05-16T21:07:54.000+0000" }, { "id": "252385", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I ran:\n\n{code}\n/Applications/Appcelerator/Appcelerator_Studio_3.1.1/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1368654722/node_modules/liveview/bin/liveview server stop\n{code}\n\nand now it works.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-16T21:18:10.000+0000", "updated": "2013-05-16T21:18:10.000+0000" }, { "id": "252524", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe the fix for this was for LiveView to call 'liveview-server stop' to clear all PIDs when starting a new session.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-17T06:06:05.000+0000", "updated": "2013-05-17T06:06:05.000+0000" }, { "id": "266541", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Able to run app with LiveView on iOS simulator and Android emulator on Appcelerator Studio, build: 3.1.2.201308091728, OSX 10.8.3. Consider verified and closing.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-14T22:21:03.000+0000", "updated": "2013-08-14T22:21:03.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }