Skip to main content
Inspiring
June 22, 2013
Answered

AIR 3.8 - ADT Compilation Times Out

  • June 22, 2013
  • 1 reply
  • 829 views

I've recently converted my game levels from XML files to Actionscript code (large 10K line AS classes) - this has given a big boost in level load speed and compilation time hasn't increased by too much.

However, after this change, during IPA packaging, the ABC Optimizer started throwing heap space issues (I use ANT to compile). I threw 11Gig of RAM at the JVM which fixed the memory issues, but now the compilation runs for hours without any output. Seems like the ABC optimizer is freaking out trying to optimize my huge classes.

What should I do? I can't go back to XML, since my levels are huge, and parsing/creating levels during gameplay is taking forever using XML.

P.S I've created a bug base ticket here.

This topic has been closed for replies.
Correct answer jahiro_himalaya

I've resolved this issue by serializing each entity in my level to an internal AS class, which is booted up in the main class. This way the bytecode optimzer doesn't crash, since the code is broken up into classes, instead of just one huge code block.

1 reply

jahiro_himalayaAuthorCorrect answer
Inspiring
June 23, 2013

I've resolved this issue by serializing each entity in my level to an internal AS class, which is booted up in the main class. This way the bytecode optimzer doesn't crash, since the code is broken up into classes, instead of just one huge code block.

Participating Frequently
October 11, 2013

Your use case is much different than mine, but ultimately we are running into the same memory bug in ADT.  Glad you were able to work around the problem, but it still exists.

I've found that increasing the memory to the JVM beyond what is supported for your OS doesn't actually fix the problem (for OSX jvm in 32bit mode that is 2GB I believe), but just causes ADT to hang and never get to the point where the memory bug occurs.

If you want to follow this issue, I have a discussion here that references it: http://forums.adobe.com/thread/1313736?tstart=0