Comment 10 for bug 1234609

Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

> The core of the problem is that unity-mir reacts asynchronously to events from the SessionListener. MirSurfaceManager
> connects to the SessionListener::sessionCreatedSurface() signal using Qt::ConnectionType type = Qt::AutoConnection

That was meant to be SessionListener::sessionDestroyingSurface signal...

Because, the event is handled at a later time in the main Qt loop, the underlying ms::Surface has been already destroyed when the handler is invoked, causing the crash.