Storyboard crash (show overlay)

I’ve been using showOverlay a lot to go through menus. From my understanding, each showOverlay call will remove the previous overlay. However on the 5th showOverlay, the simulator will crash and gives me an error as follows:

QphUaNT.png

This happens on the latest stable release (2013.1137)

I don’t know if this is a bug or my coding fault. However this issue did not occur on daily builds.

Need someone to acknowledge this to be sure.

Thanks

  • Jeffrey Quek

It should remove the older overlay, according to the documentation.  Can you build a very simple app that demonstrates this?  Without seeing your code, there could be something going on, but if you can built a simple app, that does this, then the engineers can look into it and see if it’s a bug in storyboard.  I don’t know that many people have tried to let overlay’s remove themselves with out hiding them.

Okay, I tried to reproduce the bug and I couldn’t… So I went back to my code and saw something stupid on my part…

The listener that calls the sb.showOverlay( … ) is listening to a touch event instead of tap… and I didn’t check for event.phase, thus when phase has ended, something bad happend… glad I manage to spot this if not its really bad.

Thanks for the help. I would not have notice or go find out that if you didn’t request for a simple reproduce.

Thanks again

  • Jeffrey Quek

It should remove the older overlay, according to the documentation.  Can you build a very simple app that demonstrates this?  Without seeing your code, there could be something going on, but if you can built a simple app, that does this, then the engineers can look into it and see if it’s a bug in storyboard.  I don’t know that many people have tried to let overlay’s remove themselves with out hiding them.

Okay, I tried to reproduce the bug and I couldn’t… So I went back to my code and saw something stupid on my part…

The listener that calls the sb.showOverlay( … ) is listening to a touch event instead of tap… and I didn’t check for event.phase, thus when phase has ended, something bad happend… glad I manage to spot this if not its really bad.

Thanks for the help. I would not have notice or go find out that if you didn’t request for a simple reproduce.

Thanks again

  • Jeffrey Quek