Crash when closing a view while it's still processing a stroke
Closed, ResolvedPublic

Description

To reproduce:

  1. Open a new document and be sure to have OpenGL active
  2. Open a view on that document
  3. Draw with a slow brush
  4. While it's still drawing, quickly close the inactive view

Crashlog: https://paste.kde.org/pos5togoz

This also shows another issue i was talking about with boud.. we really should be using weak shared ptr only after acquiring them as temporary shared pointer, since they're not thread safe (in the sense that if i check if it's valid, the line after the check it can be invalid already; with a shared pointer this doesn't happen, it's either one or the other and it will be in that state until released).

Restricted Application added a subscriber: woltherav. · View Herald TranscriptApr 11 2016, 8:34 PM
stefanobonicatti added a subscriber: dkazakov.
dkazakov closed this task as Resolved.Aug 15 2016, 12:34 PM

I have tested the bug on Linux + Qt 5.5.1 + openGL and the bug seems to be not reproducible anymore. I guess Boud or me have fixed something like that some time ago.