Adobe Flash iOS packager throws java.lang.OutOfMemoryError when packing large projects

I ported the Flex 4 codebase to iOS using adobe packager, but ran into a problem while trying to pack our entire codebase. The sachet works for a while and then throws an OutOfMemoryError - even if I increase the java heap size to 4 GB.

No single piece of code causes a problem because it compiles successfully if I cut large chunks of code and I can change which chunks I omit. This may be due to the size of the code itself.

I recorded a very detailed error report with adobe here: http://bugs.adobe.com/jira/browse/FB-32192 . It includes an AIRI file that you can package to reproduce the problem, a ruby ​​script that generates ActionScript code to create this AIRI file, and a summary of all the things I tried before reporting the error.

Has anyone else tried to compile large projects with an iOS packer? Are there any known workarounds?

+7
source share
3 answers

try using x64 Java runtime. He solved a similar problem for me - the project was successfully packed using only x64 Java processes, the x86 Java process was not able to allocate as much RAM as needed to pack my project even with an increase in the heap size.

+1
source

There is nothing you can do about it, this is a known adobe packager problem. The only thing I would like to do is try to set the mini-heap size to very high, or maybe something crazy, how to run it using jdb (even if there are no debugging characters ...).

0
source

Try using Ant to control the process described here , and then configure java options in Ant as follows:

fork="true" maxmemory="256m" 
0
source

All Articles