{ "id": "133514", "key": "TIMOB-17731", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-01-30T09:09:49.000+0000", "created": "2014-07-22T09:30:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "3.3.0.GA", "TCSupport", "android", "installation", "mobile" ], "versions": [], "issuelinks": [ { "id": "39568", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "133367", "key": "TIMOB-17347", "fields": { "summary": "Android: Install fails. Object has no method 'indexOf'", "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 } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2020-01-30T16:49:21.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Hi, \r\nwhen i try to build an application and launch it on the emulator, the console gives me this error:\r\n{code:borderStyle=solid}\r\n[INFO] : Installing apk: /home/username/Documenti/Ti_Workspace/projectName/build/android/bin/projectName-dev-debug.apk\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 8\r\n[TRACE] : Checking if package manager service is started\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nhas no method 'indexOf'\r\n{code}\r\ncomplete log here: \r\n[Complete Log on PasteBin|http://pastebin.com/Q18pHFsA]\r\n\r\nthis is my complete environment: \r\n[Complete Environment on PasteBin|http://pastebin.com/jyiAW5ZN]", "attachment": [], "flagged": false, "summary": "Installation failed, longjohn.js 185 - has no method 'indexOf'", "creator": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "environment": "OS: Ubuntu 13.10 / Windows 7 \r\nCLI: 3.3.0GA\r\nStudio 3.3.0\r\n", "closedSprints": [ { "id": 1177, "state": "closed", "name": "2020 Sprint 2", "startDate": "2020-01-20T17:44:37.733Z", "endDate": "2020-01-31T17:44:00.000Z", "completeDate": "2020-01-31T16:57:44.689Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "315451", "author": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "body": "have found a workaround...\r\nfile: /home/user/.titanium/mobilesdk/linux/3.3.0.GA/android/cli/hooks/run.js\r\nfrom row 189 to 193\r\nfrom this\r\n{code:javascript|borderStyle=solid}\r\nif (output.indexOf('system_server') === -1) {\r\n\tlogger.trace(__('Package manager not started yet, trying again in %sms...', retryInterval));\r\n\tintervalTimer = setTimeout(installApp, retryInterval);\r\n\treturn;\r\n}\r\n{code}\r\nto this\r\n{code:javascript|borderStyle=solid}\r\n//if (output.indexOf('system_server') === -1) {\r\n//\tlogger.trace(__('Package manager not started yet, trying again in %sms...', retryInterval));\r\n//\tintervalTimer = setTimeout(installApp, retryInterval);\r\n//\treturn;\r\n//}\r\n{code}", "updateAuthor": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-07-23T10:42:07.000+0000", "updated": "2014-07-23T10:42:07.000+0000" }, { "id": "317700", "author": { "name": "ashleysommer", "key": "ashleysommer", "displayName": "Ashley Sommer", "active": true, "timeZone": "Australia/Brisbane" }, "body": "I have this same problem, using 3.3.0.GA, and latest Android SDK.\r\nIt appears the issue is caused because the output variable from the 'ps' command is a javascript [object Object] rather than a string.\r\nA better workaround is to change line 198 to:\r\n{{if (output.toString().indexOf('system_server') === -1) {}}", "updateAuthor": { "name": "ashleysommer", "key": "ashleysommer", "displayName": "Ashley Sommer", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2014-08-08T11:26:51.000+0000", "updated": "2014-08-21T21:46:07.000+0000" }, { "id": "319692", "author": { "name": "Cryde", "key": "cryde", "displayName": "Jérémy Tonneau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\nI have been recently faced by the same issue.\r\n\"if (output.toString().indexOf('system_server') === -1) {\" saved me !!!!\r\n\r\n\r\nRegards.", "updateAuthor": { "name": "Cryde", "key": "cryde", "displayName": "Jérémy Tonneau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-21T13:27:31.000+0000", "updated": "2014-08-21T13:27:31.000+0000" }, { "id": "319813", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Thanks [~daorithos] for the report! [~ingo]: can you please assign Gianpaolo ([~daorithos]) as the Reporter? TIA! ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-21T22:06:52.000+0000", "updated": "2014-08-21T22:06:52.000+0000" }, { "id": "453893", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Upon investigation, it seems the fix in the comments was put in place back in 3.4.0.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5915\r\n\r\nMarking as fixed.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2020-01-30T09:09:49.000+0000", "updated": "2020-01-30T09:09:49.000+0000" }, { "id": "453938", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "Fix verified in build: 9.0.0.v20200130071742. The fix that was put in place in 3.4.0 still exists today. Ticket closed.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-01-30T16:49:14.000+0000", "updated": "2020-01-30T16:49:14.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }