{ "id": "140545", "key": "TIMOB-18097", "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": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-02T23:53:30.000+0000", "created": "2014-11-25T22:19:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_android", "qe-3.6.0", "qe-manualtest", "qe-testadded" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-08T01:30:20.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": "h5.Description:\r\n1. Create a default app with services enabled.\r\n2. Build it to an android device/emulator with sdk 3.6.0.v20141125101716.\r\n\r\nh5.Actual Result:\r\n1. The build fails with the following errors:\r\n{code}\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nTypeError: Cannot call method 'test' of undefined\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/android/cli/commands/_build.js:1557:28\r\n at Array.forEach (native)\r\n at AndroidBuilder. (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/android/cli/commands/_build.js:1554:56)\r\n at Array.forEach (native)\r\n at AndroidBuilder. (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/android/cli/commands/_build.js:1500:18)\r\n at AndroidBuilder. (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/titanium-sdk/lib/builder.js:211:3)\r\n at detect.callback (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/node-appc/lib/timodule.js:386:52)\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/node-appc/lib/timodule.js:170:51\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/node-appc/node_modules/async/lib/async.js:592:17\r\n at done (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/node-appc/node_modules/async/lib/async.js:135:19)\r\n---------------------------------------------\r\n at Object.run (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/titanium-sdk/lib/emulators/genymotion.js:318:21\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/async/lib/async.js:511:21\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/async/lib/async.js:227:13\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/async/lib/async.js:111:13\r\n at Array.forEach (native)\r\n at _each (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/async/lib/async.js:32:24)\r\n at async.each (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.6.0.v20141125101716/node_modules/async/lib/async.js:110:9)\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 8\r\n{code}\r\n2. Talking to chris barber figured out that javascript context is not passed into forEach() loop in file _build.js at 1569 as there is no {code}, this{code} which causes the failure.", "attachment": [], "flagged": false, "summary": "Android: App with module containing a native '.so' library fail to build", "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": "Environment:\r\nAppc Studio : 3.4.1.201410281743\r\nTi SDK : 3.6.0.v20141125101716\r\nCLI : 3.4.1\r\nAlloy : 1.5.1 GA\r\nCode Processor : 1.1.1\r\nMAC Yosemite : 10.10\r\nNexus 5 - Android 5.0", "comment": { "comments": [ { "id": "334434", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/6413", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-02T23:51:39.000+0000", "updated": "2014-12-02T23:51:39.000+0000" }, { "id": "337867", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. Building app with module containing a native '.so' library does not fails to build.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.4.1.201410281743\r\nTi SDK : 3.6.0.v20150105084202\r\nCLI : 3.4.1\r\nAlloy : 1.5.1 GA\r\nCode Processor : 1.1.1\r\nMAC Yosemite : 10.10\r\nNexus 5 - Android 5.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-05T19:03:16.000+0000", "updated": "2015-01-05T19:03:16.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }