In a complex project I’m trying to handle crashes so that the whole project reloads rather than hangs.
In a test scenario I’m deliberately calling a file that doesn’t exist as a crash simulation.
using myUnhandledErrorListener I can reload a scene. The problem is when a display group has been started but not yet returned. The error (crash) happens before the display group is complete.
I can’t find a way to remove the partially built display group from the composer scene. I presume this is because the display group hasn’t yet been added to the screenGroup so destroying the screenGroup or scene removes everything except the orphaned display group.
Is there any way of destroying everything, the equivalent of quitting without actually quitting the app?