Skip to main content
Participating Frequently
May 4, 2011
Question

Java crashes during conversion in app-store mode (iOS)

  • May 4, 2011
  • 2 replies
  • 2538 views

  I have a Flash app that I'm trying to convert for iOS, and adt converts it fine when the target is set to ipa-test.  However, if I change that to ipa-app-store, it runs about the same length of time and then pops-up a totally white dialog with the title "Microsoft Visual C++ Runtime Library."  Clicking the only available button on the dialog causes the conversion process to terminate.  My guess would be that the problem is something that happens at the very end of the process.  (And obviously something that is different between ipa-test and ipa-app-store.)

  I've tried both Java 1.5 and Java 1.6 and both produce similar results (which leads me to suspect something from an external .dll.   Specifically, I tried to blame capicom.dll which Adobe ships, but that appears to be the latest version (which itself has been depricated by MSFT).  Also I tried Java various memory setting hoping to jar something into compliance, but all of those efforts have also failed.

  I'm without a clue for what to try next.  Please help!

This topic has been closed for replies.

2 replies

Participant
May 5, 2011

I have the same problem using Adobe Flash Professional 5.5

Sometimes I can get the ipa file without the crash, but when instaling it on the iPhone I get an error message saying that my iPhone isnt suported for thar app. My iPhone is a 3G with iOS 4.1 version. How can I choose the target iOS version before publish it on the Flash Professiona CS5.5?

Many thanks

Participating Frequently
May 5, 2011

AIR 2.6 does not support iOS 3 and armv6 devices, which effectively means you cannot create an application for iPhone 3G with AIR 2.6. You can continue to support such applications using packager for iPhone(http://labs.adobe.com/technologies/packagerforiphone/).

Thanks,

Sanika

Participant
May 5, 2011

Sanika,

Thank You for you reply!

But the link you give redirects to adobe cs 5.5, witch causes me that problem!

Is there a way of unnisntall the AIR 2.6 and install a later version of air?

Thanks

Participating Frequently
May 4, 2011

Hi,

There are some open bugs related to packaging large swfs with ipa-app-store target. You could try using the -Xmx switch and see if packaging succeeds for you. Try the following:

Java -Xmx1024m -jar ../lib/adt.jar -package -target ipa-app-store ....

This is when you are in the bin folder of the directory containing the SDK. You could also try -Xmx768m switch if the above does not work.

This is a Flex Mobile application. Could you please mention the exact error that java reports when you try the above command.

Are you on Mac or Windows? If you are on Windows, please try packaging on mac, it might work.

Thanks,

Sanika

SammyVCAuthor
Participating Frequently
May 4, 2011

Thanks for your reply.  I always set -Xms and -Xmx equal to avoid JVM heap realloc since I have plenty of RAM on my machine.  I've tried various values from 500m to 1100m.  Settings in the 500m range cause an Out of Memory error early on.  Settings in the 1000m range cause cryptic memory errors that seem to be related to their JNI calls.  (I suspect that the external .dlls (perhaps llvm?) is using up a fair amount of memory as well and trying to hold a VM that large + the external stuff in a 32-bit process is causing death.  The ideal memory setting seems to be around 800m.  But that, of course, gives the error mentioned.

Unfortunately the error isn't something that I know how to give you more information about.  It is an all white dialog with the title "Microsoft Visual C++ Runtime Library,"  It has a single, unlabelled button.  Clicking that button causing the conversion (started from the command line) to terminate.

As for platform, I'm on Windows 7 64-bit, and unfortunately I don't have a way to test on a Mac.

Thanks in advance for more pointers.

Participating Frequently
May 4, 2011

Hi,

Could you try unregistering Visual Studio as your default debugger? Then you should be able to see the java error on command line.

Thanks,

Sanika