Skip to main content
Participant
July 20, 2011
Question

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

  • July 20, 2011
  • 2 replies
  • 516 views

Crosspost from stackoverflow, I figured this forum might have some insights too!

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?

This topic has been closed for replies.

2 replies

Adobe Employee
July 22, 2011

Thanks for reporting the issue, we are working on it, hopefully it will be available in next major version of AIR.
To know more about it, you might want nominate yourself for our prerelease program at this link.

http://labs.adobe.com/technologies/flashplatformruntimes/air3/

Thanks,

Amish.

Adobe Employee
July 21, 2011

Thanks for reporting the issue.

This is a known problem with AIR 2.7 while packaging large projects for iOS.

We will take care of it in our future releases.