away3d / awayphysics-core-fp11

Away Physics - 3D physics library for the Away3D Engine in Flash Player 11
http://www.awayphysics.com
112 stars 47 forks source link

awayphysics crushs in AIR for IOS #9

Open ddmsama opened 12 years ago

ddmsama commented 12 years ago

awayphysics crushs in AIR for IOS. We think it crushs when running alchemy. Is there any fix? or we just have to wait for alchemy to improve?

muzerly commented 12 years ago

yeah, you need wait alchemy2 release

62316e commented 11 years ago

As i know flasscc is already out. Still its not working on ios. Any reason?

62316e commented 11 years ago

TypeError: Error #1009 at awayphysics.dynamics::AWPDynamicsWorld() at awayphysics.dynamics::AWPDynamicsWorld$/getInstance()

Fails at CModule.startAsync(this);

muzerly commented 11 years ago

Hi, it work on ios, pls use dev branch.

62316e commented 11 years ago

Em, i do use dev branch. Master for 4.0 - will crash on 4.1

62316e commented 11 years ago

I've tested on: iPad 2 (5.1.1) iPhone 5 (6.1) with Air 3.7 and 3.8 tried both Asc 2 and flex build -swf-version=21 -swf-version=20

Black screen everywhere.

62316e commented 11 years ago

Now when compiling as ad-hoc i receive

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at adobe.abc.GlobalOptimizer$FrameState.init(GlobalOptimizer.java:9154 ) at adobe.abc.GlobalOptimizer.createBlock(GlobalOptimizer.java:9170) at adobe.abc.GlobalOptimizer.merge(GlobalOptimizer.java:9217) at adobe.abc.GlobalOptimizer$InputAbc.readCode(GlobalOptimizer.java:1051 ) at adobe.abc.GlobalOptimizer$InputAbc.readBody(GlobalOptimizer.java:531) at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:404) at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:280) at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:160) at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.jav a:329) at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:600) at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java :196) at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:35 5) at com.adobe.air.ADTPackager.createPackage(ADTPackager.java:65) at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:165) at com.adobe.air.ADTEntrypoint.parseArgsAndGo(ADTEntrypoint.java:132) at com.adobe.air.ipa.PFI.parseArgsAndGo(PFI.java:152) at com.adobe.air.ADTEntrypoint.run(ADTEntrypoint.java:68) at com.adobe.air.ipa.PFI.main(PFI.java:112)

muzerly commented 11 years ago

try to disable asc2.0, it should work.

62316e commented 11 years ago

I've tried. Nothing works

On Thu, May 23, 2013 at 5:16 PM, Yang Li notifications@github.com wrote:

try to disable asc2.0, it should work.

— Reply to this email directly or view it on GitHubhttps://github.com/away3d/awayphysics-core-fp11/issues/9#issuecomment-18345908 .

Sent from my gmail.

muzerly commented 11 years ago

do you run on device or simulator?

62316e commented 11 years ago

What do you mean simulator? I event cant build

62316e commented 11 years ago

Only fast interpreter build works. Which is very slow. I need ad-hoc or release build. (everybody)

62316e commented 11 years ago

Ah, sorry. Wrong thread. Yeah, with flex build it works on device but only in interpreter build.

Related: https://github.com/away3d/awayphysics-core-fp11/issues/16

muzerly commented 11 years ago

I have not test on device, will test tomorrow.

62316e commented 11 years ago

Can you also test release build for ios?

muzerly commented 11 years ago

yes, I will

62316e commented 11 years ago

In how many years? 23 days passed.

dtramer commented 11 years ago

any progress on this muzerly?

muzerly commented 11 years ago

Unfortunatly, I'm still not sure what cause this error.

62316e commented 11 years ago

After some memory size tests looks like there is some stack overflow inside optimizer. Basically you need to download flex source code and try to compile and debug by your self.

Or you can just comment method-by-method and then you will understand where exactly error happens.