mart created this revision.
mart added a reviewer: Plasma.
Restricted Application added projects: Plasma, Frameworks.
Restricted Application added subscribers: Frameworks, plasma-devel.
mart requested review of this revision.
the texture of ManagedTextureNode gets deleted by the
refcountung of the internal QSharedPointer,
but in some rare cases, it can be deleted too by some
external cause, usually when a widget changes its parent
window (either changing containment or switching between
dragging a system monitor applet that uses the plotter
component between the desktop and panel quite reliably
crashes plasma, as it was trying to access the texture that may
have become invalid at the moment.
track it also with a qpointer which is used only to provide
an hasValidTexture boolean which should be checked before
accessing the texture of the node.
The bug is easily reproducible without the patch, wasn't
able to reproduce it anymore with it
To: mart, #plasma
Cc: plasma-devel, #frameworks, michaelh, ZrenBot, ngraham, progwolff,
lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart