{ "id": "162542", "key": "TIMOB-23766", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-30T06:45:55.000+0000", "created": "2016-08-11T21:20:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-01T20:39: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.Steps To Reproduce:\r\n1. Create a default alloy/classic app with SDK mentioned in environment.\r\n2. Build for android device/emulator.\r\n\r\nh5.Actual Results:\r\n1. The app crashes after launch with error:\r\n{code}\r\n[DEBUG] : Module: require called with un-prefixed module id, should be a core or CommonJS module. Falling back to old Ti behavior and assuming it's an absolute file\r\n[ERROR] : TiExceptionHandler: (main) [210,210] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] : TiExceptionHandler: (main) [0,210] - In ti:/module.js:301,2\r\n[ERROR] : TiExceptionHandler: (main) [0,210] - Message: Uncaught Error: Requested module not found: ti.cloud\r\n[ERROR] : TiExceptionHandler: (main) [1,211] - Source: \tthrow new Error(\"Requested module not found: \" + request); // TODO Set 'code' property to 'MODULE_NOT_FOUND' to match Node?\r\n[ERROR] : V8Exception: Exception occurred at ti:/module.js:301: Uncaught Error: Requested module not found: ti.cloud\r\n{code}\r\n\r\nh5. Expected Results:\r\n1. The app should not crash & run successfully.", "attachment": [], "flagged": false, "summary": "Android: Default alloy & classic app crashes after launch with error : Requested module not found: ti.cloud, even though present", "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 : 4.7.0.201607250649\r\nTi SDK : 6.0.0.v20160810073036\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.1\r\nMAC El Capitan : 10.11.6\r\nAppc NPM : 4.2.7\r\nAppc CLI : 6.0.0-24\r\nNode: 4.4.4\r\nTi.Cloud: 3.2.11", "closedSprints": [ { "id": 704, "state": "closed", "name": "2016 Sprint 18 SDK", "startDate": "2016-08-27T00:18:36.960Z", "endDate": "2016-09-10T00:18:00.000Z", "completeDate": "2016-09-09T20:26:13.865Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "393753", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~cwilliams] Logs mention V8Exception. Is this related to any of the changes for the new V8 support or the way that the request module is done?", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-08-22T06:53:05.000+0000", "updated": "2016-08-22T06:53:05.000+0000" }, { "id": "394073", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Currently investigating this area: https://github.com/appcelerator/titanium_mobile/blob/master/android/runtime/common/src/js/module.js#L232-L302\r\n", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-08-24T07:33:03.000+0000", "updated": "2016-08-24T07:33:03.000+0000" }, { "id": "394377", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs here: https://github.com/appcelerator/titanium_mobile/pull/8263\r\nbackport 6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8264", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-25T09:22:20.000+0000", "updated": "2016-08-25T09:22:20.000+0000" }, { "id": "394484", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-26T07:30:00.000+0000", "updated": "2016-08-26T07:30:00.000+0000" }, { "id": "394846", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cng], \r\nI created a default app with services enabled using the SDK with the fix. I don't see the crash or the {{ti.cloud}} error anymore but some new error:\r\n{code}\r\n[ERROR] : TiHTTPClient: (TiHttpClient-1) [337,337] HTTP Error (java.io.IOException): 411 : Length Required\r\n[ERROR] : TiHTTPClient: java.io.IOException: 411 : Length Required\r\n[ERROR] : TiHTTPClient: \tat ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1217)\r\n[ERROR] : TiHTTPClient: \tat java.lang.Thread.run(Thread.java:818)\r\n[ERROR] : D/com.google.android.apps.docs.quickoffice.X(28099): Loading recent documents list\r\n[ERROR] : D/com.google.android.apps.docs.quickoffice.X(28099): Checking validity of 1 items\r\n[INFO] : ACS Login Results for environment `development`:\r\n[INFO] : [object Object]\r\n{code}\r\n\r\nEnvironment:\r\nAppc Studio : 4.8.0.201608221113\r\nTi SDK : 6.0.0.v20160830110225\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.1\r\nMAC El Capitan : 10.11.6\r\nAppc NPM : 4.2.7\r\nAppc CLI : 6.0.0-31\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-30T21:15:36.000+0000", "updated": "2016-08-30T21:15:59.000+0000" }, { "id": "394866", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~msamah] can you verify if this is a different issue altogether, and if possible see if it's fixable? looks like its something to do with httpclient", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-31T01:26:07.000+0000", "updated": "2016-08-31T01:26:07.000+0000" }, { "id": "394874", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "This is another issue. That error is a response from the server.\r\nhttps://github.com/appcelerator/titanium_mobile/blob/8d8d1925e5d2d23116d6e2bb86835a9f5ff25190/android/modules/network/src/java/ti/modules/titanium/network/TiHTTPClient.java#L1217\r\n\r\nResponse from server: HTTP Status Code 411. Length Required. [~lchoudhary] Can you create a different ticket for this error?", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-08-31T03:23:33.000+0000", "updated": "2016-08-31T03:23:33.000+0000" }, { "id": "394965", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-31T22:26:59.000+0000", "updated": "2016-08-31T22:26:59.000+0000" }, { "id": "395142", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-01T20:39:13.000+0000", "updated": "2016-09-01T20:39:13.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }