{ "id": "133367", "key": "TIMOB-17347", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-21T20:58:36.000+0000", "created": "2014-07-18T10:26:04.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "adb", "android", "cli", "install" ], "versions": [], "issuelinks": [ { "id": "39568", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "133514", "key": "TIMOB-17731", "fields": { "summary": "Installation failed, longjohn.js 185 - 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": "2017-03-16T22:26:34.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" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "Error was made in https://github.com/appcelerator/titanium_mobile/commit/6d006eba6bc1100fb94e8046e7e53f4ec11f297e.\r\n\r\nandroid/cli/hooks/run.js:\r\n{code:javascript}\r\n...\r\n(function installApp() {\r\n adb.shell(device.id, 'ps', function (err, output) {\r\n if (output.indexOf('system_server') === -1) {\r\n ...\r\n{code}\r\n\r\n'output' isn't a string so the toString() conversion doesn't work. This creates a problem installing to Android devices\r\n\r\nIt's more correct to use getPid() from adb.js.", "attachment": [ { "id": "49879", "filename": "build_log.txt", "author": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "created": "2014-07-18T16:35:01.000+0000", "size": 8709, "mimeType": "text/plain" }, { "id": "49902", "filename": "TIMOB17347.log", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-21T11:45:11.000+0000", "size": 45714, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Install fails. Object has no method 'indexOf'", "creator": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "subtasks": [], "reporter": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "environment": null, "closedSprints": [ { "id": 155, "state": "closed", "name": "2014 Sprint 15 Tooling", "startDate": "2014-07-21T22:15:26.319Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T14:51:13.686Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "314813", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you for the suggestion. Can you give us a way to reproduce the problem? What is the error you get when it happens?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T16:01:28.000+0000", "updated": "2014-07-18T16:01:28.000+0000" }, { "id": "314826", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master: https://github.com/appcelerator/titanium_mobile/pull/5915\r\n3_3_X: https://github.com/appcelerator/titanium_mobile/pull/5916", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-07-18T17:01:19.000+0000", "updated": "2014-07-18T17:01:19.000+0000" }, { "id": "314855", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I simply ran \r\n{code}\r\nti build -p android -T device\r\nti build -p android -T emulator\r\n{code}\r\n\r\nI both cases the app successfully installed.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-18T18:58:00.000+0000", "updated": "2014-07-18T18:58:00.000+0000" }, { "id": "314857", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~farwayer] I see the error you are getting and I believe I have fixed in in the PRs above, however the QE team is having a bear of a time trying to reproduce this. We have tested Android builds on Linux with 3.3.0.GA and cannot reproduce. Can you help us by letting us know what exact OS you are using, what version on Node.js, what version of the Android build/platform/sdk tools, what Android target SDK, and what device? Thank you!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-07-18T19:11:06.000+0000", "updated": "2014-07-18T19:11:06.000+0000" }, { "id": "314864", "author": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "body": "Of course, guys:\r\n{code}\r\ntitanium_mobile 82fd1b1\r\ntitanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#f6ae085562535fb0a76f20d3749627423b65d345)\r\nnodejs v0.10.29\r\nadb 1.0.31\r\nandroid-sdk r23.0.2\r\nandroid-sdk-build-tools r20\r\nandroid-sdk-platform-tools r20\r\nandroid-platform 4.4.2_r03\r\ngenymotion 2.2.2 with 2.3.7\r\n{code}\r\n-`ti info` attached- can't attach new file, appended to comment\r\n{code}\r\nOperating System\r\n Name = GNU/Linux\r\n Version = \r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 7.7GB\r\n\r\nNode.js\r\n Node.js Version = 0.10.29\r\n npm Version = 1.4.14\r\n\r\nTitanium CLI\r\n CLI Version = 3.4.0-dev\r\n node-appc Version = 0.2.14\r\n\r\nTitanium SDKs\r\n 3.4.0\r\n Version = 3.4.0\r\n Install Location = /home/farwayer/.titanium/mobilesdk/linux/3.4.0\r\n Platforms = mobileweb, android\r\n git Hash = 82fd1b1\r\n git Timestamp = 07/18/14 22:27\r\n node-appc Version = 0.2.12\r\n \r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\n Not installed\r\n\r\nJava Development Kit\r\n Version = 1.7.0_65\r\n Java Home = /usr/lib/jvm/java-7-openjdk\r\n\r\nGenymotion\r\n Path = /usr/bin\r\n Genymotion Executable = /usr/bin/genymotion\r\n Genymotion Player = not found\r\n Home = /home/farwayer/.Genymobile/Genymotion\r\n\r\nVirtualBox\r\n Executable = /usr/bin/VBoxManage\r\n Version = 4.3.14_OSEr95030\r\n\r\nAndroid SDK\r\n Android Executable = /opt/android-sdk/tools/android\r\n ADB Executable = /opt/android-sdk/platform-tools/adb\r\n SDK Path = /opt/android-sdk\r\n\r\nAndroid NDK\r\n NDK Path = /opt/android-ndk\r\n NDK Version = r9d (64-bit)\r\n\r\nAndroid Platforms\r\n 1) android-17\r\n Name = Android 4.2.2\r\n API Level = 17\r\n Revision = 2\r\n Skins = WSVGA, WVGA854, WXGA800, HVGA, WXGA800-7in, WQVGA400, WVGA800, QVGA, WQVGA432, WXGA720\r\n ABIs = no ABIs.\r\n Path = /opt/android-sdk/platforms/android-17\r\n 2) android-19\r\n Name = Android 4.4.2\r\n API Level = 19\r\n Revision = 3\r\n Skins = WSVGA, WVGA854, WXGA800, HVGA, WXGA800-7in, WQVGA400, WVGA800, QVGA, WQVGA432, WXGA720\r\n ABIs = no ABIs.\r\n Path = /opt/android-sdk/platforms/android-19\r\n\r\nAndroid Add-Ons\r\n 3) Google Inc.:Google APIs:17\r\n Name = Android 4.2.2 (API level 17)\r\n Vendor = Google Inc.\r\n Revision = 3\r\n Description = Android + Google APIs\r\n Skins = WXGA800, WXGA720, WVGA800, WQVGA400, HVGA, WSVGA, WXGA800-7in, WQVGA432, QVGA, WVGA854\r\n ABIs = armeabi-v7a\r\n Path = /opt/android-sdk/add-ons/addon-google_apis-google-17\r\n Libraries = com.google.android.media.effects: Collection of video effects (effects.jar)\r\n com.android.future.usb.accessory: API for USB Accessories (usb.jar)\r\n com.google.android.maps: API for Google Maps (maps.jar)\r\n\r\n\r\nAndroid Emulators\r\n None\r\n\r\nGenymotion Emulators\r\n Google Nexus One - 2.3.7 - API 10 - 480x800\r\n SDK Version = 2.3.7\r\n ABI = x86\r\n Genymotion Version = 2.2.2\r\n Display = 480x800-16\r\n DPI = 240\r\n OpenGL Acceleration = yes\r\n Google APIs = no\r\n Samsung Galaxy S5 - 4.4.2 - API 19 - 1080x1920\r\n SDK Version = 4.4.2 (android-19)\r\n ABI = x86\r\n Genymotion Version = 2.2.2\r\n Display = 1080x1920-16\r\n DPI = 480\r\n OpenGL Acceleration = yes\r\n Google APIs = unknown, emulator not running\r\n Motorola Moto X - 4.4.2 - API 19 - 720x1280\r\n SDK Version = 4.4.2 (android-19)\r\n ABI = x86\r\n Genymotion Version = 2.2.2\r\n Display = 720x1280-16\r\n DPI = 320\r\n OpenGL Acceleration = yes\r\n Google APIs = unknown, emulator not running\r\n\r\nConnected Android Devices\r\n None\r\n\r\nGenymotion Issues\r\n ✕ Unable to locate the Genymotion \"player\" executable.\r\n{code}", "updateAuthor": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "created": "2014-07-18T19:33:59.000+0000", "updated": "2014-07-18T19:37:08.000+0000" }, { "id": "314881", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~farwayer] Great! Which Linux distro and which Android device are you using?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-07-18T20:54:31.000+0000", "updated": "2014-07-18T20:54:31.000+0000" }, { "id": "314886", "author": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "body": "I am using Arch linux. application is successfully installed to device but not to genymotion emulator.", "updateAuthor": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "created": "2014-07-18T21:26:28.000+0000", "updated": "2014-07-18T21:26:28.000+0000" }, { "id": "314911", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~farwayer] Yeah, we just fixed the Genymotion issue with TIMOB-17344. You can get the fix by running:\r\n\r\n{code}\r\nti sdk install -b 3_3_X -d\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-07-18T22:52:23.000+0000", "updated": "2014-07-18T22:52:23.000+0000" }, { "id": "314924", "author": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "body": "Hm, just tested behavior with standart android emulator. All ok. Look like the problem appear on Genymotion only. But it's another problem than TIMOB-17344. Commit from TIMOB-17344 didn't help me.", "updateAuthor": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "created": "2014-07-19T00:07:12.000+0000", "updated": "2014-07-19T00:10:36.000+0000" }, { "id": "315006", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried and able to reproduce this issue. See the details below - \r\n\r\nEnvironment - \r\nacs@1.0.15\r\nalloy@1.4.0\r\nnpm@1.3.2\r\ntitanium@3.3.0\r\ntitanium-code-processor@1.1.1\r\nOS - Ubuntu 12.04\r\nAppcelerator Studio - 3.3.0.201407111535\r\n1) Configured Ubuntu 12.04 system with current 3.3.0 GA environment.\r\n2) Configured Genymotion on the system.\r\n3) Verified that Studio detect the Genymotion configuration correctly.\r\n4) Created a default classic project.\r\n5) From the CLI, run the command - ti build -p android -T emulator -C \"GoogleNexus5-4.4.2-API 19-1080x1920\"\r\nResult - Got the same error as mentioned in this issue. \r\n6) Removed the \"modules\" folder and 3.3.0 GA build from .titanium folder.\r\n7) Download the build (linux 2) as mentioned in the issue TISTUD-6730.\r\n8) Install the above SDK build from Studio.\r\n9) Run the app again with the same command mentioned in the step 5.\r\n\r\nResult - Again got the same error message. App did not install on Genymotion emulator. See the attached CLI log file.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-21T11:44:39.000+0000", "updated": "2014-07-21T11:44:39.000+0000" }, { "id": "315090", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I tested this on Mac OS X using the PR above. I was able to install to a Genymotion emulator without issues. I'm not sure if this is a valid test or if the issue exists solely on Linux.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-07-21T19:30:56.000+0000", "updated": "2014-07-21T19:30:56.000+0000" }, { "id": "315106", "author": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "body": "Yep, with PR all ok also on Linux.", "updateAuthor": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "created": "2014-07-21T20:35:04.000+0000", "updated": "2014-07-21T20:35:04.000+0000" }, { "id": "315108", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~skypanther] I say we just merge this. The change is low risk and is verified by [~farwayer].", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-07-21T20:37:02.000+0000", "updated": "2014-07-21T20:37:02.000+0000" }, { "id": "315116", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Approved and merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-07-21T20:58:36.000+0000", "updated": "2014-07-21T20:58:36.000+0000" }, { "id": "413348", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:26:34.000+0000", "updated": "2017-03-16T22:26:34.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }