{ "id": "173915", "key": "TIMOB-27266", "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": "20845", "name": "Release 8.1.1", "archived": false, "released": true, "releaseDate": "2019-08-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-08-28T11:11:28.000+0000", "created": "2019-07-20T23:10:26.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Titanium", "engReviewed", "regression" ], "versions": [ { "id": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" }, { "id": "20791", "name": "Release 8.0.2", "archived": false, "released": true, "releaseDate": "2019-06-18" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2019-08-28T11:11:28.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "There is a bug on Titanium 8.0.1.GA & 8.0.2.GA, where when running a simple compile:\r\n\r\n{code}\r\nti run -p android -T device\r\n{code}\r\n\r\nGives the error:\r\n\r\n{code}\r\n[INFO] Encrypting JavaScript files: C:\\ProgramData\\Titanium\\mobilesdk\\win32\\8.0.1.GA\\android\\titanium_prep.win32.exe \"com.example.sandbox\" \"C:\\path\\to\\project\\build\\android\\assets\" \"--file-listing\" \"C:\\path\\to\\project\\build\\android\\titanium_prep_listing.txt\"\r\n[ERROR] Failed to encrypt JavaScript files\r\n[ERROR]\r\n{code}\r\n\r\nI narrowed down the issue to changes made to *titanium_prep.win32.exe*.\r\n\r\nLooking at the history:\r\nhttps://github.com/appcelerator/titanium_mobile/commits/master/support/android/titanium_prep.win32.exe\r\n\r\nIt seems that one of the 2 commits to be blamed are:\r\nhttps://github.com/appcelerator/titanium_mobile/commit/3eaf55c596402078321632c682549428b7c57371#diff-81660f9ac67f928cddca3a1e35855580\r\nor\r\nhttps://github.com/appcelerator/titanium_mobile/commit/86b3fc01230a0ec09c0b2577a3e68c1e488e48b1#diff-81660f9ac67f928cddca3a1e35855580\r\n\r\nA temp workaround is to copy the *titanium_prep.win32.exe* and *titanium_prep.win64.exe* from 8.0.0.GA and replace the ones in the newer 8.0.1.GA or 8.0.2.GA. \r\n\r\n\r\n \r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Titanium \"Failed to encrypt JavaScript files\" error on >=8.0.1.GA on Windows when using 32 bit java", "creator": { "name": "yahya12", "key": "yahya12", "displayName": "Yahya Uddin", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "yahya12", "key": "yahya12", "displayName": "Yahya Uddin", "active": true, "timeZone": "Europe/London" }, "environment": "Windows 10, Titanium >=8.0.1.GA", "closedSprints": [ { "id": 1160, "state": "closed", "name": "2019 Sprint 17", "startDate": "2019-08-12T07:59:28.950Z", "endDate": "2019-08-25T07:59:00.000Z", "completeDate": "2019-08-26T15:35:29.980Z", "originBoardId": 114 }, { "id": 1161, "state": "closed", "name": "2019 Sprint 18", "startDate": "2019-08-26T21:46:26.269Z", "endDate": "2019-09-08T21:46:00.000Z", "completeDate": "2019-09-09T20:39:58.761Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "449971", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nThanks for sharing with us. Can you please create a new app, run this on 8.0.2.GA and let us know how it goes.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-07-22T09:21:49.000+0000", "updated": "2019-07-22T09:21:49.000+0000" }, { "id": "449982", "author": { "name": "yahya12", "key": "yahya12", "displayName": "Yahya Uddin", "active": true, "timeZone": "Europe/London" }, "body": "Yes this occured on a hello world app for version 8.0.2.GA as well. But copying over the *titanium_prep.win32.exe* from an older version fixed the issue\r\n", "updateAuthor": { "name": "yahya12", "key": "yahya12", "displayName": "Yahya Uddin", "active": true, "timeZone": "Europe/London" }, "created": "2019-07-22T10:53:49.000+0000", "updated": "2019-07-22T10:53:49.000+0000" }, { "id": "449985", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Thanks for the report [~yahya12], I can reproduce this and it looks to be specific to using 32 bit Java", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-07-22T12:43:14.000+0000", "updated": "2019-07-22T12:43:14.000+0000" }, { "id": "450159", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~rmitro], they appear to be using 64-bit java based off their log, could we have a new ticket for that issue with full logs from the build.\r\n\r\n[~nsalahin], I don't believe we have any updates currently. If possible we would recommend the user to move to a 64bit java is possible.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-07-30T15:36:20.000+0000", "updated": "2019-07-30T15:36:20.000+0000" }, { "id": "450373", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "titanium_prep: https://github.com/appcelerator/titanium_prep/pull/35", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-09T20:49:08.000+0000", "updated": "2019-08-09T20:49:08.000+0000" }, { "id": "450399", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "titanium_mobile master: https://github.com/appcelerator/titanium_mobile/pull/11136\r\n\r\nI'm not sure where else we want this to land, it's a regression from 8.0.1.GA onwards", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-12T16:19:03.000+0000", "updated": "2019-08-12T16:19:13.000+0000" }, { "id": "450578", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "8_1_X: https://github.com/appcelerator/titanium_mobile/pull/11155\r\n8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11159", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-19T15:23:43.000+0000", "updated": "2019-08-19T15:27:28.000+0000" }, { "id": "450601", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Note for this ticket, we made our default settings for d8 and javac max memory incompatible with 32-bit java in TIMOB-26898. If you absolutely must use Java 8 32 bit (Java 9+ is 64 bit only), you must set the following.\r\n\r\n{code}\r\n[appc] ti config android.javac.maxMemory 1024M\r\n[appc] ti config android.dx.maxMemory 1024M\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-20T10:29:32.000+0000", "updated": "2019-08-20T10:32:49.000+0000" }, { "id": "450602", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Using the instructions mentioned by Ewan above I am able to verify the fix on SDK Version 8.2.0.v20190819090550. FR Also passed for 8_1_X and 8_3_X.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-20T12:51:15.000+0000", "updated": "2019-08-20T12:51:15.000+0000" }, { "id": "450629", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master and 8_3_X. Waiting on rebuild for 8_1_X...", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-08-20T17:09:52.000+0000", "updated": "2019-08-20T17:09:52.000+0000" }, { "id": "450643", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to 8_1_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-08-20T18:46:11.000+0000", "updated": "2019-08-20T18:46:11.000+0000" }, { "id": "450890", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Using the above instructions also able to verify the fix on SDK version {{8.1.1.v20190827142754}} and SDK version {{8.2.0.v20190819090550}}\r\n\r\n*Test and other information can be found at:*\r\nMaster: https://github.com/appcelerator/titanium_mobile/pull/11136\r\n8_1_X: https://github.com/appcelerator/titanium_mobile/pull/11155\r\n8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11159", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-28T11:10:55.000+0000", "updated": "2019-08-28T11:11:17.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }