Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I've been porting a Flex 4 codebase to iOS using the adobe packager, but have run into a snag when trying to package our whole codebase. The packager runs for a while and then throws an OutOfMemoryError - even if I increase the java heap size to 4GB.

No single piece of code seems to be causing the problem, as it compiles successfully if I cut out large chunks of code, and I can change which chunks I'm omitting. It might be related to the size of the code itself.

I've logged a very detailed bug report with adobe here: http://bugs.adobe.com/jira/browse/FB-32192 . It includes an AIRI file that you can package to reproduce the issue, a ruby script that generates actionscript code to generate that AIRI file, and a summary of all of the things I tried before logging the bug.

Has anyone else tried compiling large projects with the iOS packager? Are there any known workarounds?

like image 566
karl Avatar asked Jul 20 '11 16:07

karl


1 Answers

try to use x64 Java runtimes. It solved the similar issue for me - project packaged successfully using x64 Java runtimes only, x86 Java process couldn't allocate as much RAM as it needed to package my project even with heap sizes increased.

like image 165
focus Avatar answered Sep 24 '22 02:09

focus