App crashes on iPhone Simulator

Hi, I tried compile code in attachement for ios target. It compiles without errors, but after tapping right button it crashes in simulator. For flash and Android it works. The output is here: http://pastebin.com/Bgsb80Cd

  • Forums
  • »
  • Bugs
  • »
  • App crashes on iPhone Simulator
Viewing 1 to 6 (6 Total)
App crashes on iPhone Simulator

jorul

jorul
Total Posts: 31
Joined: September 02, 2011

Hi,
I tried compile code in attachement for ios target. It compiles without errors, but after tapping right button it crashes in simulator. For flash and Android it works.

The output is here:
http://pastebin.com/Bgsb80Cd

Tags:
Attachments: Benchmark.zip
Posted on September 29, 2011 at 2:29 PM

mumuja

mumuja
Total Posts: 57
Joined: September 08, 2011

Re: App crashes on iPhone Simulator

I would like to know the cause of this to as this uses the same benchmark i use smiling

Posted on September 29, 2011 at 2:34 PM

singmajesty

singmajesty
Total Posts: 2192
Joined: August 25, 2011

Re: App crashes on iPhone Simulator

Well, it looks like the SpriteSheet class is ending up with a null BitmapData object, so it crashes when it tries to copy pixels.

Can you try using Assets.getBitmapData or ApplicationMain.getAssets explicitly, and see if you are able to load the bitmap? It's possible that the asset paths may be incorrect somehow

Posted on September 29, 2011 at 2:39 PM

mumuja

mumuja
Total Posts: 57
Joined: September 08, 2011

Re: App crashes on iPhone Simulator

how come it works on flash and android, is there a difference in the way flash and android handling the path compared to ios?

Posted on September 29, 2011 at 2:52 PM

singmajesty

singmajesty
Total Posts: 2192
Joined: August 25, 2011

Re: App crashes on iPhone Simulator

Theoretically there could be a bug in how the install tool is configuring everything. Doing an explicit test to load the needed graphic (without running through the sprite sheet library) should make it easier to determine the cause

Posted on September 29, 2011 at 3:13 PM

mumuja

mumuja
Total Posts: 57
Joined: September 08, 2011

Re: App crashes on iPhone Simulator

I will try to get my mac environment running this weekend to figure out why it's not working.

Posted on September 30, 2011 at 12:44 AM