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
Bugs, which is subscribed to 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]
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1656727/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs