https://bugs.kde.org/show_bug.cgi?id=361551

Thomas Lübking <thomas.luebk...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|BACKTRACE                   |---
             Status|NEEDSINFO                   |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #7 from Thomas Lübking <thomas.luebk...@gmail.com> ---
Qt 5.6 needs to be a required dependency to get rid of the QScreen/KScreen
intermix in plasmashell. This obviously can't happen before 5.7.

The crash is a simple nullptr resolution.
SceneOpenGLDecorationRenderer::resizeTextture results in an empty size, thus
m_texture is 0x0 and that's not caught in ::render() - I assume an early exit
will do.

diff --git a/scene_opengl.cpp b/scene_opengl.cpp
index c81c2b8..049bc1d 100644
--- a/scene_opengl.cpp
+++ b/scene_opengl.cpp
@@ -2451,6 +2451,9 @@ void SceneOpenGLDecorationRenderer::render()
         resetImageSizesDirty();
     }

+    if (!m_texture)
+        return;
+
     QRect left, top, right, bottom;
     client()->client()->layoutDecorationRects(left, top, right, bottom);

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to