Skip to main content
Inspiring
June 14, 2011
Answered

ADT Not Working With Large Amount Of Files

  • June 14, 2011
  • 1 reply
  • 1571 views

Hi,

I posted a similar issue in the Flash Builder forum; it seems these tools are not meant for anything too big. Here is my problem; I have an application that runs on the iPad just fine, however I cannot seem to be able to package any of the resource files it uses, such as swf, xml, jpg, and flv. There are a lot of these files, maybe around a 1000. This app won't be on the AppStore and just used internally at my company. I tried to package it using Flash Builder, but it couldn't handle it, and so now I have tried the adt command line tool. The problem now is that it is running out of memory:

Exception in thread "main" java.lang.OutOfMemoryError
        at java.util.zip.Deflater.init(Native Method)
        at java.util.zip.Deflater.<init>(Unknown Source)
        at com.adobe.ucf.UCFOutputStream.addFile(UCFOutputStream.java:428)
        at com.adobe.air.ipa.IPAOutputStream.addFile(IPAOutputStream.java:338)
        at com.adobe.ucf.UCFOutputStream.addFile(UCFOutputStream.java:273)
        at com.adobe.ucf.UCFOutputStream.addFile(UCFOutputStream.java:247)
        at com.adobe.air.ADTOutputStream.addFile(ADTOutputStream.java:367)
        at com.adobe.air.ipa.IPAOutputStream.addFile(IPAOutputStream.java:161)
        at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:67)
        at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:163)
        at com.adobe.air.ADT.parseArgsAndGo(ADT.java:504)
        at com.adobe.air.ADT.run(ADT.java:361)
        at com.adobe.air.ADT.main(ADT.java:411)

I tried increasing the java memory heap size to 1400m, but that did not help. What is disturbing though is why this day and age, the adt tool is written solely for 32 bit java runtimes, when you can no longer buy a 32bit computer. Almost everything is 64bit now. Being able to utilize a 64bit java runtime would eliminate this.

Has anyone else had to deal with packaging a large number of files within an iPad app?

thanks

This topic has been closed for replies.
Correct answer sanika Kulshreshtha

Hi,

Could you post the bug number in the thread?

We have fixed some OOM bugs in AIR 2.7. Here is the blog post about the release: http://blogs.adobe.com/flashplayer/2011/06/adobe-air-2-7-now-available-ios-apps-4x-faster.html . Could you try packaging your application and see if it works?

-Sanika

1 reply

relaxatraja
Inspiring
June 15, 2011

Are you trying to give more files on adt command line with spaces? or try with organizing all the resources in a tolder and attach the folder. give it a try

leejkAuthor
Inspiring
June 15, 2011

I was specifiying the folders only on the command line. As a test, I removed some of the folders to reduce the number of files included in the package, and that got me by the memory problem, but then the ADT program crashed each time. I've logged it as a bug.

I think the only workaround around at this point might be to figure out out to modify the ipa file manually, so I can add the needed resources. Is the only correct way to do this is by using the SDK on a Mac?

thx

sanika KulshreshthaCorrect answer
Participating Frequently
June 15, 2011

Hi,

Could you post the bug number in the thread?

We have fixed some OOM bugs in AIR 2.7. Here is the blog post about the release: http://blogs.adobe.com/flashplayer/2011/06/adobe-air-2-7-now-available-ios-apps-4x-faster.html . Could you try packaging your application and see if it works?

-Sanika