I'm not sure exactly what is happening, but I suspect is needs something like the following in some other method. (from lp:qtmir src/platforms/mirserver/windowmanagementpolicy.cpp):
void WindowManagementPolicy::resize(const miral::Window &window, const Size size) { miral::WindowSpecification modifications; modifications.size() = size; m_tools.invoke_under_lock([&window, &modifications, this]() { try { m_tools.modify_window(m_tools.info_for(window), modifications); } catch (const std::out_of_range&) { // usually shell trying to operate on a window which already closed, just ignore // TODO: MirSurface extends the miral::Window lifetime by holding a shared pointer to // the mir::scene::Surface, meaning it cannot detect when the window has been closed // and thus avoid calling this method. } }); } -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unity8 in Ubuntu. https://bugs.launchpad.net/bugs/1656727 Title: Unity8 crashes and restarts when clicking on a menu [terminate called after throwing an instance of 'std::out_of_range' what(): map::at] Status in Canonical System Image: Confirmed Status in Mir: Confirmed Status in MirAL: Confirmed Status in QtMir: New Status in miral package in Ubuntu: Confirmed Status in unity8 package in Ubuntu: Confirmed Bug description: Unity8 crashes and restarts when clicking on a menu: terminate called after throwing an instance of 'std::out_of_range' what(): map::at Test case: 1. Launch AisleRiot 2. Click on a menu Expected: Menu opens Observed: Unity8 crashes and restarts every time ProblemType: Bug DistroRelease: Ubuntu 17.04 Package: unity8 8.15+17.04.20170110.4-0ubuntu1 ProcVersionSignature: Ubuntu 4.9.0-11.12-generic 4.9.0 Uname: Linux 4.9.0-11-generic x86_64 ApportVersion: 2.20.4-0ubuntu1 Architecture: amd64 Date: Mon Jan 16 10:29:08 2017 InstallationDate: Installed on 2016-11-03 (74 days ago) InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Alpha amd64 (20161102) SourcePackage: unity8 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1656727/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp