Error on Reload Scene

I’ve been battling an annoying problem with Director… When I try to reload a scene I get the standard obscure Director error and my scene does not reload it is just blank. I’ve even tried changing the scene to an empty scene and then in that scene loading my level again and still just errors.

I’ve cleaned EVERYTHING, all graphics, listeners, timers, transitions.
This is putting a road block in my game’s progress… Anyone experience this or have any pointers on what to look for or what approach to take with your programming when you plan on reloading the same scene?

Thanks…

[import]uid: 63800 topic_id: 14487 reply_id: 314487[/import]

Check this out:

http://developer.anscamobile.com/forum/2011/08/15/director-gives-uninformative-debug-logs#comment-51062

ojnab’s code helped me find the issue and fix the problem very quickly.

[import]uid: 67217 topic_id: 14487 reply_id: 53614[/import]

Actually I did that already and it helped me out before, however the problem doesn’t happen when I load the scene initially, just when I change the scene and reload it again. That debug code doesn’t help then because director doesn’t work when you are debugging that way. [import]uid: 63800 topic_id: 14487 reply_id: 53627[/import]

Hmmm… Have you tried performWithDelay? When I need to reload same scene (with playAgain button), I use performWithDelay. That seems to be the only way I could make it work. Here’s how I do mine:

local playAgain(event) local function launchWithDelay() director:changeScene(event.target.scene, "crossfade"); end -- reset related functions comes here timerStash.newTimer = timer.performWithDelay(1, launchWithDelay); end [import]uid: 67217 topic_id: 14487 reply_id: 53636[/import]