Skip navigation
bSmartEducation
Currently Being Moderated

FB 4.7 AIR 3.6 Flex 4.9 iOS packing - Exception in thread "main" java.lang.OutOfMemoryError'

Mar 21, 2013 5:33 AM

Tags: #ios #fb-4.7 #air-3.6 #flex-4.9 #java.lang.outofmemoryerror

I've got an error similar to Isaac_Sunkes' 'FB 4.7 iOS packaging - Exception in thread "main" java.lang.OutOfMemoryError',

but the causes are not related to what he discovered, corrupt image or other files, I'd exclude bad archive contents in my project.

 

I'm using Flash Builder 4.7 with Adobe AIR 3.6 set into an Apache Flex 4.9.1 SDK;

 

HW system is:

 

iMac,    2,7 GHz Intel Core i5,    8 GB 1600 MHz DDR3,    NVIDIA GeForce GT 640M 512 MB,    OS X 10.8.2 (12C3103)

 

The Flash project consists in an application with a main SWF file which loads, via ActionScript methods, other SWF in cascade.

I've formerly compiled and run the application on an iPad 1, IOS 5.0.1 (9A405), but got on the device the error alert:

 

"Uncompiled ActionScript

Your application is attempitng to run

uncompiled ActionScript, probably

due to the use of an embedded

SWF. This is unsupported on iOS.

See the Adobe Developer

Connection website for more info."

 

Then I changed the FB compiler switches, now are set to:

 

-locale en_US

-swf-version=19

 

Please note that without the switch    -swf-version=19     the application is compiled correctly and the IPA is sent to the device

and I can debug it, but iOS traps secondary SWF files and blocke the app usage, as previously told.

 

 

they work on deploy of small applications,

 

but, when I try to build a big IPA file either for an ad-hoc distribution, either for an debug on device, after some minutes long waiting, I get a Java stuck, with this trace:

 

Error occurred while packaging the application:

 

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

    at java.util.HashMap.addEntry(HashMap.java:753)

    at java.util.HashMap.put(HashMap.java:385)

    at java.util.HashSet.add(HashSet.java:200)

    at adobe.abc.Algorithms.addUses(Algorithms.java:165)

    at adobe.abc.Algorithms.findUses(Algorithms.java:187)

    at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4731)

    at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3615)

    at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2309)

    at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:532)

    at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:341)

    at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler .java:599)

    at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:104)

 

 

I've tried to change the Java settings on FB's eclipse.ini in MacOS folder,

 

-vmargs

-Xms(various settings up to)1024m

-Xmx(various settings up to)1024m

-XX:MaxPermSize=(various settings up to)512m

-XX:PermSize=(various settings up to)256m

 

but results are the same.

 

Now settings are back as recommended:

 

-vmargs

-Xms256m

-Xmx512m

-XX:MaxPermSize=256m

-XX:PermSize=64m

 

I've changed the Flex build.properties

jvm.args = ${local.d32} -Xms64m -Xmx1024m -ea -Dapple.awt.UIElement=true

 

with no results; now I'n get back to the standard:

jvm.args = ${local.d32} -Xms64m -Xmx384m -ea -Dapple.awt.UIElement=true

 

and now I truely have no more ideas;

could anyone give an help?

 

many thanks in advance.

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points