2 Replies Latest reply on Aug 28, 2015 1:33 AM by li_li_li87222

    release build error with ANE "AOT Compilation has failed while optimizing function"


      I'm trying to use the ChartBoost ANE which can be downloaded here https://github.com/freshplanet/ANE-Chartboost

      When I do an Ad-hoc release build It keeps crashing and giving me the error below when packaging for iOS. But if I do a debug build that's a "fast" or "standard" build it compiles fine, and I can even see the ads.

      Why would it crash when doing a release build? Does this ANE need an update?

      I'm using FB 4.7 and AIR 3.8. Specifically, Apache Flex 4.10 Air 3.8

      If I remove this 1 line of the Chartboost ANE code "AirChartboost.getInstance().showInterstitial();", the release build compiles fine and I can put it on the test iOS device.

      "Error occurred while packaging the application:

      AOT Compilation has failed while optimizing function public::AdsHelper.showFullscreenAd
      Exception in thread "main" java.lang.NullPointerException
      at java.util.TreeMap.getEntry(TreeMap.java:324)
      at java.util.TreeMap.containsKey(TreeMap.java:209)
      at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6150)
      at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:6019)
      at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4733)
      at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3615)
      at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2309)
      at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:534)
      at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:343)
      at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:611)
      at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:104)
      Compilation failed while executing : ADT"