Comment 6 for bug 1046201

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Hmm odd, it seems as the weak_ptr mOwner is returning an empty shared_ptr when calling mOwner.lock().....

#7 unity::MT::GrabHandle::requestMovement (this=0xacf2c78, x=779, y=447, button=1) at /build/buildd/unity-6.4.0/plugins/unity-mt-grab-handles/src/unity-mt-grab-handle.cpp:39
        ghg = {px = 0x0, pn = {pi_ = 0x0}}

I wonder if a check should be there to skip over using the ptr if the .lock() returns an empty shared_ptr

Though it would be best to figure out why the weak_ptr expired....

I haven't been able to reproduce this though...Ill see if I can reproduce it...