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

            Bug ID: 442408
           Summary: Compositor is disabled after screen dim
           Product: kwin
           Version: 5.22.5
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: compositing
          Assignee: kwin-bugs-n...@kde.org
          Reporter: n.parka...@gmail.com
  Target Milestone: ---

SUMMARY
Occasionally, when returning from a screen dim on X11, the compositor ends up
disabled. Seems to reproduce more easily when another application is using
openGL. Seems to be an integer overflow problem.

STEPS TO REPRODUCE
For me, leaving a firefox tab at
https://webglsamples.org/aquarium/aquarium.html and letting the screen dim
reliably triggers it.

OBSERVED RESULT
Compositor is disabled.

EXPECTED RESULT
Compositor should remain enabled.

I built a custom package with some printf debugging, and found that in
SceneOpenGL::viewportLimitsMatched(), from time to time the call to
glGetIntegerv(GL_MAX_VIEWPORT_DIMS, limit) is returning a very large value for
width, overflowing the GLint. Based on
https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glViewport.xhtml it
seems these dimensions are supposed to be GLsizei, and indeed I cannot
reproduce the issue if I change the GLint to GLsizei in that function.

This might be the same as Bug 394890.

SOFTWARE/OS VERSIONS
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2-arch1-2

ADDITIONAL INFORMATION

Radeon RX 570

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

Reply via email to