English 中文(简体)
为什么 FDT 在为 iOS (. IPA) 包装 Adobe AIR 应用程序时显示 FDT 显示 Java 高位错误?
原标题:Why Does FDT Show A Java Heap Error While Packaging an Adobe AIR app for iOS (.IPA)

我正使用 Adobe AIR 创建一些闪光游戏。 我试图将它编译为.ipa 文件( 在 iPad 设备上运行 ) 。

使用6 swc 库和未预先编译的代码批数。 我试图用两种方法用Flash FDT 5. 5 组合我的游戏:

  • fast - works ok, but the performance is terrible;
  • standard - my compilation finishes with following error:

Packaging failed! Packaging error message: Picked up JAVA_TOOL_OPTIONS: -Xmx3072M Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.TreeMap.put(Unknown Source) at adobe.abc.Algorithms$SetMap.get(Algorithms.java:225) at adobe.abc.Algorithms.addUses(Algorithms.java:164) at adobe.abc.Algorithms.findUses(Algorithms.java:186) at adobe.abc.GlobalOptimizer.cp(GlobalOptimizer.java:9381) at adobe.abc.GlobalOptimizer.dce(GlobalOptimizer.java:9627) at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4638) at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514) at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215) at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:527) at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:337) at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:510) at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:80) Picked up JAVA_TOOL_OPTIONS: -Xmx3072M Compilation failed while executing : ADT Picked up JAVA_TOOL_OPTIONS: -Xmx3072M Picked up JAVA_TOOL_OPTIONS: -Xmx3072M

我知道这与日光天化日记( Eclipse development) 有着共同的问题。 我试图以标准方式解决这个问题 - & gt; 增加 java 堆积的大小。 正如你所看到的, 我设置了3072M, 足够了 。

当我试图编集较小的项目时,它的工作很好。我不知道现在该怎么办:(.有什么想法吗?)

最佳回答

在深入调查后,我找到了一个解决方案。这不是因为任何昆虫的配置,而是如@Alan所说,Adobe的包装机遇到了问题。我想,它在优化阶段遇到问题。

这里的论坛主题非常有用:http://forums.adobe.com/mesage 4445973#4445973

我发现:http://deltaluca.me.uk/forum/index.php/m/2148/0c449c29792978a4/ 人们在汇编时遇到问题。 在我看来,汇编时间是不固定的;最后,以 Javas的记忆例外结束。解决方案是使用最新的NAPE建筑,这是作者略微优化的。这个小优化使我的项目奏效了。

总而言之:如果你有模拟问题, 请检查您的代码。 试着找到一些巨大的函数/ 方法, Adobe 的软件包很难优化 。

问题回答

- Xmx3072M 不是一个有效的日食参数。 恢复您的日食. ini 设置和其他 Java 设置, 使其恢复到默认值, 应该有效 。 您可能会设置高到 JVM 其它部分的内存耗尽的程度 。

从堆叠痕迹中可以看到,它不是一个剪切或 FDT 问题。 Adobe s packer 正在遇到问题。 如果默认值仍然不起作用, 那么请查看给 Java 更多一般的内存。 如果这不起作用, 缓慢递增 Eclipse 的内存来查看它是否有效 。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签