[TIMOB-15936] Android: Unable to compile APK: RangeError: Maximum call stack size exceeded
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-11T00:58:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 25, 2013 Sprint 25 Core, Release 3.2.0, Release 3.3.0 |
Components | Android |
Labels | module_build, qe-testadded, triage |
Reporter | Ingo Muschenetz |
Assignee | Chris Barber |
Created | 2013-12-10T01:45:04.000+0000 |
Updated | 2014-07-29T18:30:24.000+0000 |
Description
While compiling for Android with a project that has 1000+ plus files in the resource folder, them build will fail with the following error:
[INFO] Writing unsigned apk: /Volumes/Work/clients/tobias_group_time/TEAMWIRE/gt/build/android/bin/app-unsigned.apk
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
throw e;
^
RangeError: Maximum call stack size exceeded
I was able to reproduce the problem using a project that had 1000 Apache licenses, 1000 Asus video card rebate PDFs, 1000 DJ Shadow MP3s, 2000 Appcelerator logo PNG images, and 1 jquery.js file.
I'm also able to reproduce this on iOS.
Mobile Web is fine. Haven't check Blackberry or Tizen.
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5110 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5111
Seems to work fine with the 3.2.0.v20131210191510 build. Thank you :)
@Chris - I do not see any test instructions in this ticket. Can you please provide with some test steps or test app with large amount of files in it.
To test: 1) create an Android app 2) add lots of png images and lots of text files spread out across directories in the Resources dir (at least 5 levels deep) 3) build the app @Lokesh, I no longer have the test app. [~ayeung] still has the files, so you can get it from him. It's 700MB zipped.
Got it from Allen. Thanks guys.
Ran the test app from Allen. The app builds & launches successfully with out any errors. Closing. Environment: Appcel Studio : 3.2.0.201312162210 Ti SDK : 3.2.0.v20131216191854 Mac OSX : 10.8.5 Alloy : 1.3.0-cr2 CLI - 3.2.0-cr3 Nexus 5 - android 4.4