Cannot gotoScene after reloading current scene

In my game I have a minigame which I’d like to allow the user to replay without going back to where they would select to play the game.

I did this with this call:
[lua]local function replayGame(e)
storyboard.reloadScene()
end[/lua]
It works great. I can reload it as many times as I want and it plays fine.

The problem arises when I want to leave that game and go back to the core game I get an error:

Runtime error  
 ?:0: attempt to index field 'contentBounds' (a nil value)  
stack traceback:  
 [C]: ?  
 ?: in function '?'  
 ?: in function 'gotoScene'  
 c:\projectfolder\miniGame.lua:394: in function 'onRelease'  
 ?: in funciton (?:269)  
 ?: in funct  

line 394 in my code is just a gotoScene call:
[lua]storyboard.gotoScene(“game”)[/lua]

Any ideas why its throwing that error. I’ve tried a few things and nothing seems to work.

If I attempt to go back before hitting replay it works fine. It’s only after reloading at least once that I get this problem.
[import]uid: 69531 topic_id: 24763 reply_id: 324763[/import]

I’m having the same problem with version 2012.781. In other versions the problem doesn’t appear.

Any solution? [import]uid: 105206 topic_id: 24763 reply_id: 100534[/import]

I think I was on 782 when I had the issue.
For now I just made a blank scene that redirects back to the previous one. It works for what I need although the reload function would have been a bit cleaner [import]uid: 69531 topic_id: 24763 reply_id: 100632[/import]

Agreed. I had much hope for the new ReloadScene, but it doesn’t seem to work at all, on any of the “supported” nightly builds. I too am using a dummy, black scene to go back to the scene I want refreshed.

Disappointing… [import]uid: 115085 topic_id: 24763 reply_id: 101308[/import]

Have you tried using the latest build? Using build 2012.790 I can’t reproduce the issue using the sample code.

If you *are* having this issue still with build 2012.790 or higher, please zip up a test case and file a bug so we can get to the bottom of the issue asap.

[import]uid: 52430 topic_id: 24763 reply_id: 103374[/import]

I went through the steps you described using the Storyboard sample (reloaded the current scene several times, and then transition to a new one) and I could not get it to reproduce your crash. In fact, after testing several scenarios I could not find any problems with storyboard.newScene().

The only way to evaluate this issue is going to be with a sample that reproduces the issue. Please do that and submit a bug:

http://developer.anscamobile.com/content/bug-submission

As a reminder, our bug fix cycle is coming to a close — which doesn’t mean no bugs will get fixed. But if this is something you want fixed ASAP, please file that bug as soon as you can, and also reply to this thread with the casenum so I can take a look at it.

Thanks for your help!

P.S. For those interested, a little hint, the storyboard “pop up” feature (though it’s not called that) is coming very soon :slight_smile: [import]uid: 52430 topic_id: 24763 reply_id: 103396[/import]