{ "id": "124151", "key": "TIMOB-16093", "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": "15817", "description": "2014 Sprint 01", "name": "2014 Sprint 01", "archived": true, "released": true, "releaseDate": "2014-01-17" }, { "id": "15819", "description": "2014 Sprint 01 Core", "name": "2014 Sprint 01 Core", "archived": true, "released": true, "releaseDate": "2014-01-17" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": null, "resolutiondate": null, "created": "2013-12-23T22:41:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cb-tooling" ], "versions": [], "issuelinks": [ { "id": "33983", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "124131", "key": "TIMOB-16073", "fields": { "summary": "Android: Failed to encrypt JavaScript files (Windows)", "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 } } } }, { "id": "33989", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "123514", "key": "TIMOB-15936", "fields": { "summary": "Android: Unable to compile APK: RangeError: Maximum call stack size exceeded", "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 } } } }, { "id": "33991", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "124178", "key": "TIMOB-16077", "fields": { "summary": "Android: Large amounts of JavaScript breaks encryption process", "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": "High", "id": "2" }, "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": "2016-08-19T04:28:52.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "attachment": [ { "id": "44794", "filename": ".log", "author": { "name": "keylo", "key": "keylo", "displayName": "Keylo E.", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T22:41:32.000+0000", "size": 0, "mimeType": "text/plain" }, { "id": "44795", "filename": "diagnostic8251845148288191520.log", "author": { "name": "keylo", "key": "keylo", "displayName": "Keylo E.", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T22:41:35.000+0000", "size": 15329, "mimeType": "text/plain" }, { "id": "45180", "filename": "problemfile.js", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-16T02:45:24.000+0000", "size": 141895, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Failed to encrypt JavaScript files (OS X)", "creator": { "name": "keylo", "key": "keylo", "displayName": "Keylo E.", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "keylo", "key": "keylo", "displayName": "Keylo E.", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 3.3.0", "comment": { "comments": [ { "id": "285685", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for reporting this issue. Engineering is actively looking into this. please watch TIMOB-16073 for more updates.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T23:14:36.000+0000", "updated": "2013-12-23T23:14:36.000+0000" }, { "id": "285737", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To confirm, this is for OS X + Android, yes? All other reports have been on Windows so far.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-24T14:53:27.000+0000", "updated": "2013-12-24T14:53:39.000+0000" }, { "id": "285738", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note to developers:\n\nHost OS: Mac OS X\nOS Version: 10.9\nOS Arch: x86\n\nJRE Version: 1.6.0_65\nJRE Vendor: Apple Inc.\nJRE Home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-24T14:56:13.000+0000", "updated": "2013-12-24T14:56:13.000+0000" }, { "id": "285741", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~keylo] Can you please try an experiment? Can you try building your project, but remove 50% of the ui/common/* files? We have an issue with the amount of data the encryption process will encrypt at once. This _should_ not have changed between 3.1.3 and 3.2.0, but just to eliminate the issue, I'd like to try this out.\n\nAnother way to test is just to build a brand new Android project, and see if it fails there.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-24T15:02:10.000+0000", "updated": "2013-12-24T15:02:10.000+0000" }, { "id": "285756", "author": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-24T22:22:55.000+0000", "updated": "2013-12-24T22:22:55.000+0000" }, { "id": "285767", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~keylo] Would it be possible for you to attach a complete project that reproduces this issue? You can either attach it to this ticket or send me by direct email at ragrawal@appcelerator.com? We have been trying to reproduce this issue with no success so far.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-25T01:37:01.000+0000", "updated": "2013-12-25T01:37:01.000+0000" }, { "id": "285771", "author": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "body": "Cannot. Client privacy forbids. Stab in the dark but could you take a look at the tiapp.xml since error contains \"build-manifest.json does not exist\" and adjusting it fixed for iOS. from \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n true\r\n true\r\n \r\n default\r\n \r\n \r\n ti.cloud\r\n facebook\r\n facebook\r\n \r\n \r\n true\r\n false\r\n true\r\n true\r\n true\r\n false\r\n \r\n 3.1.3.GA\r\n\r\n{code}", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-25T02:10:58.000+0000", "updated": "2013-12-27T01:24:20.000+0000" }, { "id": "285772", "author": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "body": "classic, not alloy", "updateAuthor": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-25T02:11:56.000+0000", "updated": "2013-12-25T02:11:56.000+0000" }, { "id": "285773", "author": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "body": ".. and 3.2.0.GA ", "updateAuthor": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-25T02:14:01.000+0000", "updated": "2013-12-25T02:14:01.000+0000" }, { "id": "285919", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Keylo, could you clarify \"adjusting it [build-manifest.json] fixed for iOS\"? My current hunch is this is a duplicate of TIMOB-16077, but we really need some project to duplicate the issue. We know there is a problem with the amount of JavaScript, but we expected the limits to be identical to 3.1.3.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-27T01:27:19.000+0000", "updated": "2013-12-27T01:27:19.000+0000" }, { "id": "285924", "author": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "body": "Referring to my original report. After update, iOS suggested removing the android:largeHeap ='true' from tiapp.xml, which worked for latest build, then moved on to Android and..", "updateAuthor": { "name": "keylo e.", "key": "keylo e.", "displayName": "Keylo E.", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-27T01:38:12.000+0000", "updated": "2013-12-27T01:38:12.000+0000" }, { "id": "286275", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Keylo, We have been unable to reproduce this issue., and yours so far is the only report. Can you please provide some project that reproduces the issue for you?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-30T18:53:57.000+0000", "updated": "2013-12-30T18:53:57.000+0000" }, { "id": "286487", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Deferring to 3.2.2 until we get more information.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-02T15:50:34.000+0000", "updated": "2014-01-02T15:50:34.000+0000" }, { "id": "287833", "author": { "name": "keylo", "key": "keylo", "displayName": "Keylo E.", "active": true, "timeZone": "America/Los_Angeles" }, "body": "got around to stripping the project down. Found that the culprit was this export:\r\nThe prob object had 1000 lines, each with a string, some fairly long. Works for iOS, not android.\r\n\r\n\r\nin ProblemFile.js..\r\n\r\nfunction ProblemFile() {\r\n\t\r\nvar prob = {\r\n \"title 1\" : \"Name, Name, Name, Name, Name, Name, Name, Name, Name\",\r\n\r\n ... \r\n\r\n \"title 1000\" : \"Name, Name, Name, Name, Name, Name, Name, Name, Name, Name, Name, Name, Name\"\r\n};\r\n\r\n\r\n\r\n\treturn data;\r\n}\r\n\r\nmodule.exports = ProblemFile;\r\n", "updateAuthor": { "name": "keylo", "key": "keylo", "displayName": "Keylo E.", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-12T01:48:19.000+0000", "updated": "2014-01-12T01:50:44.000+0000" }, { "id": "288400", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I tried to reproduce this by replicating the ProblemFile.js, but it built successfully for Android device on Mac OS X 10.8.5 (Mountain Lion). I don't have Mavericks to test with at this moment.\r\n\r\nI doubled the amount of lines from 1000 to 2000 and it still worked. I then copied the file 10 times and it still worked. I copied the file 100 times and it still worked. I tried 200 copies, but titanium_prep ran out of memory and caused a completely different error.\r\n\r\nIn any case, I'm resolving as cannot reproduce. I have attached my version of the ProblemFile.js for anyone who's bored.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-16T02:45:02.000+0000", "updated": "2014-01-16T02:45:02.000+0000" }, { "id": "290810", "author": { "name": "amigoni", "key": "amigoni", "displayName": "Leonardo Amigoni", "active": true, "timeZone": "Europe/Berlin" }, "body": "I am having the same issue on OSX 10.9.1. Has there been any resolution? Let me know if you need the project. ", "updateAuthor": { "name": "amigoni", "key": "amigoni", "displayName": "Leonardo Amigoni", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-02-02T21:56:52.000+0000", "updated": "2014-02-02T21:56:52.000+0000" }, { "id": "290826", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Leonardo, yes, please attach your project.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-03T03:38:03.000+0000", "updated": "2014-02-03T03:38:03.000+0000" }, { "id": "291126", "author": { "name": "jbzdawka", "key": "jbzdawka", "displayName": "Jeff Bzdawka", "active": true, "timeZone": "America/Chicago" }, "body": "Chris, we are having this exact same issue. Our build process combines all of our JS into a single app.js. This app.js ends up being 43k lines and 1.2MB of code - we do this because we've found the app is significantly quicker to launch if we can skip include calls. I noticed via browsing various github repos that the build process was recently rewritten for android.\r\n\r\nWe are on Mavericks, trying to use TiSDK 3.2.0GA.", "updateAuthor": { "name": "jbzdawka", "key": "jbzdawka", "displayName": "Jeff Bzdawka", "active": true, "timeZone": "America/Chicago" }, "created": "2014-02-04T15:18:06.000+0000", "updated": "2014-02-04T15:18:06.000+0000" }, { "id": "291145", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jbzdawka] To confirm, it used to work for you in 3.1.3 and no longer works in 3.2.0? Any way you can attach (or email us privately) your application code as a test file?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-04T17:37:26.000+0000", "updated": "2014-02-04T17:37:26.000+0000" }, { "id": "291160", "author": { "name": "jbzdawka", "key": "jbzdawka", "displayName": "Jeff Bzdawka", "active": true, "timeZone": "America/Chicago" }, "body": "Correct, 3.1.3 is fine and 3.2.0 throws the encryption error. I am unable to share the code - even privately. We do have a custom manifest file - but I am not sure if that could cause this problem. I've also tried on multiple computers (all Mavericks) and the problem is present on all.", "updateAuthor": { "name": "jbzdawka", "key": "jbzdawka", "displayName": "Jeff Bzdawka", "active": true, "timeZone": "America/Chicago" }, "created": "2014-02-04T18:45:36.000+0000", "updated": "2014-02-04T18:45:36.000+0000" }, { "id": "319071", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~cbarber] here is a way to replicate the issue. (just having it now :( )\r\n\r\nGo to http://www.json-generator.com/, set the repeat to something like 9999 (though 500 will do it)\r\n\r\n{code}\r\n'{{repeat(9999)}}',\r\n{code}\r\n\r\ngenerate, copy to clipboard and put in a single js file in Resources.\r\nThen try to compile with \r\n{code}\r\nti build -p android -T device -C YOUR_DEVICE --skip-js-minify\r\n{code}\r\n\r\n", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-18T13:46:50.000+0000", "updated": "2014-08-18T13:47:26.000+0000" }, { "id": "319099", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Reopening because titanium_prep needs to be fixed to handle large JavaScript files.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-08-18T16:24:45.000+0000", "updated": "2014-08-18T16:24:45.000+0000" }, { "id": "322727", "author": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "body": "What is the fix to come around this? THIS IS URGENT!!\r\n\r\nMade a big update for iOS and now I cannot continue for Android.\r\nNo problem on iOS, big troubles on Android.\r\n\r\nThis is again a discrepancy between the two major platforms Appcelerator derives its existance from.\r\n", "updateAuthor": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-10T06:06:49.000+0000", "updated": "2014-09-10T06:06:49.000+0000" }, { "id": "322730", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~ray@raymondverbruggen.nl] I assume it's breaking during the call to titanium_prep and resulting in the \"Failed to encrypt JavaScript files\" message, correct? What operating system are you on? Is it possible to try building your app on a different operating system? Does your app have a lot of JavaScript code? Do you know how many JS files? How big are they?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-10T06:12:58.000+0000", "updated": "2014-09-10T06:12:58.000+0000" }, { "id": "322737", "author": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "body": "OSX Mavericks is my operating system, it is not possible to build for another OS.\r\nI have chosen Appcelerator because of the multi-platform, Android and iOS and so OSX.\r\n\r\n\"app.js\" \"alloy/backbone.js\" \"alloy/constants.js\" \"alloy/controllers/BaseController.js\" \"alloy/controllers/facebook.js\" \"alloy/controllers/help.js\" \"alloy/controllers/home.js\" \"alloy/controllers/index.js\" \"alloy/controllers/mainview.js\" \"alloy/controllers/mapView.js\" \"alloy/controllers/menuview.js\" \"alloy/controllers/settings.js\" \"alloy/controllers/twitter.js\" \"alloy/models/Partners.js\" \"alloy/styles/facebook.js\" \"alloy/styles/help.js\" \"alloy/styles/home.js\" \"alloy/styles/index.js\" \"alloy/styles/mainview.js\" \"alloy/styles/mapView.js\" \"alloy/styles/menuview.js\" \"alloy/styles/settings.js\" \"alloy/styles/twitter.js\" \"alloy/sync/localStorage.js\" \"alloy/sync/properties.js\" \"alloy/sync/sql.js\" \"alloy/underscore.js\" \"alloy/widget.js\" \"alloy/widgets/com.imagitechdj.slideMenu/controllers/widget.js\" \"alloy/widgets/com.imagitechdj.slideMenu/styles/widget.js\" \"alloy.js\" \"lib/httpClient.js\" \"lib/shadow.js\" \"lib/utils.js\" \"openlayers/OpenLayers.js\" \"openlayers/mobile.js\" \"openlayers/proj4.js\" \"slideMenu/slideMenu.js\" \"_app_props_.json\"\r\n\r\nThe largest is Openlayers.js, 770kb\r\n", "updateAuthor": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-10T06:23:08.000+0000", "updated": "2014-09-10T06:23:08.000+0000" }, { "id": "322743", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~ray@raymondverbruggen.nl] OK, so you don't have that many files. Titanium_prep is sensitive to the total size of all JS files combined. Perhaps the files combined are large?\r\n\r\nAnother thing you can try is right after it fails, locate the text in the output \"Encrypting JavaScript files:\" and copy everything afterwards and run titanium_prep manually. What does it output? Does it display any errors? What is the exit code? (echo $?)", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-10T07:20:11.000+0000", "updated": "2014-09-10T07:20:11.000+0000" }, { "id": "323833", "author": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I had the same issue and it was solved exporting this environment variable: \r\n\r\nexport JAVA_TOOL_OPTIONS=\"-XX:+HeapDumpOnOutOfMemoryError -Xmx1024m -XX:MaxPermSize=256m\"\r\n\r\nThe main problem is related with use of memory", "updateAuthor": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-15T23:28:01.000+0000", "updated": "2014-09-15T23:28:01.000+0000" }, { "id": "323835", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~juanblo] Brilliant! Thanks for this tip. I'll test it and if it solves the problem, I'll add it to Android's build so that you don't have to worry about it.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-15T23:31:01.000+0000", "updated": "2014-09-15T23:31:01.000+0000" }, { "id": "323958", "author": { "name": "jbzdawka", "key": "jbzdawka", "displayName": "Jeff Bzdawka", "active": true, "timeZone": "America/Chicago" }, "body": "Unfortunately, the export JAVA_TOOL_OPTIONS did not work for me. I get a file is too big error regardless of the max memory setting for java, etc. \r\n\r\nThe command I run is:\r\n~/Library/Application\\ Support/Titanium/mobilesdk/osx/3.3.0.GA/android/titanium_prep.macos \"com.movatohealth.phoenix\" \"/Users/Jeff/Desktop/Projects/TiWorkspace/Phoenix/build/android/assets\" \"app.js\"\r\nThe output is:\r\nPicked up JAVA_TOOL_OPTIONS: -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m -Xms2048m -XX:MaxPermSize=1024m\r\nFile is too big.\r\n\r\nYou can see I was increasing the numbers as I fiddled with it to try to get it to work. That app.js is 839kb, we have a build process that creates a single app.js from ~400 javascript files via a plugin and pre compile hook. Through trial and error I think I stumbled on a max file size of 500kb for a single file for titanium_prep.macos for android. We're working on a build script that tries to stay under 500kb per file and splits it in an intelligent spot so that we stay under that cap that is currently a theory on our part - will report back on if staying under that theorized cap works for us. ", "updateAuthor": { "name": "jbzdawka", "key": "jbzdawka", "displayName": "Jeff Bzdawka", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-16T14:19:17.000+0000", "updated": "2014-09-16T14:19:17.000+0000" }, { "id": "324221", "author": { "name": "jbzdawka", "key": "jbzdawka", "displayName": "Jeff Bzdawka", "active": true, "timeZone": "America/Chicago" }, "body": "Aiming for around 512kb in breaking down our files worked. This is purely anecdotal, but the sum of files can be far in excess of 512kb but for us an individual file could not be greater than 512kb otherwise we got a \"file is too big\" error. ", "updateAuthor": { "name": "jbzdawka", "key": "jbzdawka", "displayName": "Jeff Bzdawka", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-17T12:34:48.000+0000", "updated": "2014-09-17T12:34:48.000+0000" }, { "id": "324283", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~jbzdawka] I don't have a magic workaround right this minute. titanium_prep takes a bunch of input .js files and encrypts them and that output is injected into the a .java file. I have managed to generate a 20MB .java file that fails to compile because 256MB of memory is not enough. I did make it so you can override the javac max memory ({{ti config android.javac.maxmemory 1G}}). But you are hung up on titanium_prep and unfortunately I don't know a way of boosting the number of files or size of files that are to be encrypted. If I was able to generate a 20MB .java file, I can guarantee you that I had way more than 512KB of .js files. When I tested it, I think I was testing using a TON of jquery.js files.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-17T17:38:38.000+0000", "updated": "2014-09-17T17:38:38.000+0000" }, { "id": "325099", "author": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "body": "Dear Appcelerator developers!\r\n\r\nAny news on this issue?? This is really a big problem!", "updateAuthor": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-23T06:18:40.000+0000", "updated": "2014-09-23T06:18:40.000+0000" }, { "id": "326860", "author": { "name": "ben0", "key": "ben0", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After wrestling with this issue all week I was able to work around it by creating a link to the library as described here: http://stackoverflow.com/a/23696459/2272365\r\n\r\nIn Terminal.app:\r\n{code}\r\ncd /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/\r\nsudo mkdir bundle\r\ncd bundle\r\nsudo mkdir Libraries\r\ncd Libraries\r\nsudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/server/libjvm.dylib libserver.dylib\r\n{code}\r\n\r\nYou'll have to change the jdk1.x.x_xx.jdk directory to match whatever you have installed.\r\n\r\nAnother option is to modify the Titanium SDK \"_build.js\" file and set encryptJS to false (around line 934). I wouldn't recommend that method for anything important though. This file should be located somewhere like \r\n\"/Users/ben/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/android/cli/commands/_build.js\"", "updateAuthor": { "name": "ben0", "key": "ben0", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-03T00:57:18.000+0000", "updated": "2014-10-24T14:14:25.000+0000" }, { "id": "328572", "author": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any progress on this one???? \r\n\r\nWhen is a solution provided?", "updateAuthor": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-20T08:23:40.000+0000", "updated": "2014-10-20T08:23:40.000+0000" }, { "id": "329316", "author": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "body": "Does anybody have a workaround for this?\r\nThis one is putting my project on a hold!", "updateAuthor": { "name": "ray@raymondverbruggen.nl", "key": "ray@raymondverbruggen.nl", "displayName": "Raymond Verbruggen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-24T12:58:11.000+0000", "updated": "2014-10-24T12:58:11.000+0000" }, { "id": "345998", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "thanks [~ben0] I've modified /Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/android/cli/commands/_build.js (just the test environment) will deal with it when I go to production.", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2015-03-13T22:27:51.000+0000", "updated": "2015-03-13T22:27:51.000+0000" }, { "id": "358880", "author": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "body": "This bug is now exacerbated by El Capitan's lack of Java 6 support. The workaround from Ben fixed it for me, but it's still a problem in SDK 4.0.0.GA and 4.1.0.GA.", "updateAuthor": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "created": "2015-08-03T18:03:11.000+0000", "updated": "2015-08-03T18:03:11.000+0000" }, { "id": "363584", "author": { "name": "magnatronus", "key": "magnatronus", "displayName": "Steve Rogers", "active": true, "timeZone": "Europe/London" }, "body": "Is it possible to have selective encryption? For example in a project select which js file get encrypted or even just have a master file that gets encrypted ( alloy.js ) so that data in there is 'secure' - I use the term loosely. Even prefix or suffix files that need to be included in the encryption process enc_xxx.js or xxx_enc.js or xxxx.enjs", "updateAuthor": { "name": "magnatronus", "key": "magnatronus", "displayName": "Steve Rogers", "active": true, "timeZone": "Europe/London" }, "created": "2015-09-11T09:43:25.000+0000", "updated": "2015-09-11T09:43:25.000+0000" } ], "maxResults": 44, "total": 44, "startAt": 0 } } }