If you Quit the Widget demo while the PopupMenu is visible you’ll get an assertion in DeletedAtShutdown::deleteAll()
Quick fix was in the WidgetsDemo to create a destructor for WidgetsDemo:
~WidgetsDemo()
{
PopupMenu::dismissAllActiveMenus();
}
Cheers,
Rail