1 Reply Latest reply on Feb 26, 2013 8:29 PM by isaac.sunkes

    FB 4.7 iOS packaging - Exception in thread "main" java.lang.OutOfMemoryError"

    Isaac_Sunkes

      I have been having issues with FlashBuilder 4.7 and packaging my Flex Mobile application for iOS (simulator, or for install on device).

       

      The funny thing is it used to work just fine before a OSX system update.

       

      My machine is Macbook Pro, 2.66 GHz i7, Mac OSX Lion 10.7.5, 8GB

       

      When I run application to install on device I get the error...

       

      Error occurred while packaging the application:

       

       

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

                at com.adobe.png.PNGReader.readChunk(PNGReader.java:60)

                at com.adobe.png.PNGUtils.updatePNGMetadata(PNGUtils.java:56)

                at com.adobe.air.ipa.IPAOutputStream.addFile(IPAOutputStream.java:700)

                at com.adobe.air.ADTOutputStream.addFileFromStream(ADTOutputStream.java:307)

                at com.adobe.air.ADTOutputStream.addFileFromStream(ADTOutputStream.java:300)

                at com.adobe.air.ipa.IPAOutputStream.addSpecialIcon(IPAOutputStream.java:272)

                at com.adobe.air.ipa.IPAOutputStream.addFile(IPAOutputStream.java:256)

                at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:72)

                at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:245)

                at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)

                at com.adobe.air.ADT.run(ADT.java:419)

                at com.adobe.air.ADT.main(ADT.java:469)

       

      I have tried uninstalling/ reinstalling Flash Builder 4.7 multiple times

       

      I get this error no matter which AIR SDK I am using, 3.1, 3.4, 3.5, 3.6.

       

      I get this error with a blank fresh project.

       

      Please anyone, can you help me solve this.