Comment 3 for bug 753269

Revision history for this message
Ugo Riboni (uriboni) wrote : Re: unity-2d-spread crashes on change of workspace

Hi Richard,
you are right about the leak in removeWindow, it should be fixed. If you plan to submit a patch for that, I'll be happy to review it.

Regarding the bug itself,have you tried verifying that by simply removing the connections to updateWorkspaceRole in WindowwList (there are two) the crasher goes away ?

If after that test you still think that method is still the actual point of the crash, I would read the documentation of QObject::sender() and pay attention to what it say about using sender() with certain specific types of signal-slot connections, and make sure that the connections to updateWorkspaceRole are of the right type. (It's the only suspicious thing i can find in that method from a quick look).

Another thing worth checking if none of the above is working is running the debug version of QT and then stepping into frame #8 from your original backtrace:
#7 0x00940920 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
By doing this you should be able to see what's the slot that's being called on what object, just before the actual crash.
This might give you some extra clues.