All games scenes crashing suddenly!

NeoCHI

  • Posts: 523
For some reason all my game scenes are crashing after half a second all of sudden except for my splash screen.

This all fine normally because it might be because I may have changed some code, but I've also tried removing all behaviors, events and even layers and it still crashes a split second after opening.

Just to be clear, this seems to only be happening when testing on my iphone and what happens exactly is it opens the scene for half a second then exits the app automatically.

Any help would be super appreciated, spent over 2 hours trying to debug this and at this point I really don't know what's wrong!!!

mdotedot

  • Posts: 1654
Hi NeoCHI

Try a Clean Project and rebuild. That might solve previous stored problems.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

colburt187

  • *
  • Posts: 2416
do any errors show up in the console when testing in flash? even if its not crashing.

NeoCHI

  • Posts: 523
Cleaned project and now flash also crashes half a second after starting.

When using the Flash player to test, Log viewer keeps producing:

[Flash] Universal#uncaughtErrorHandler(59): Error #1009: Cannot access a property or method of a null object reference.

colburt187

  • *
  • Posts: 2416
You have a null reference, some actor block or region etc has not been selected. Something like "switch animation for actor" but you haven't selected the actor.

NeoCHI

  • Posts: 523
But I've disabled all the behaviors and events on the scene....

colburt187

  • *
  • Posts: 2416
And on all actors in the scene?

NeoCHI

  • Posts: 523
I've gone so far as to make a copy of the scene and remove all behaviors, events and layers....but it still errors. But if I make a new scene, it's fine...

NeoCHI

  • Posts: 523
There are no actors on the scene...

NeoCHI

  • Posts: 523
WAIT!....you maybe onto something... I just reverted my scene to the size it use to be (bigger) and found an actor!

colburt187

  • *
  • Posts: 2416
XD  thankfully you found him, the other actors were getting worried.

NeoCHI

  • Posts: 523
XD now I just have to slowing fix all the bugs my old unclean projects somehow was ok with....but atleast I have a starting point.

THANKS! Would have never been able to figure this out.