Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-140648

QOpenGLWidget causing system hangs and TDR events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.8.1
    • GUI: OpenGL
    • None
    • Windows

      I am encountering an issue where using QOpenGLWidget will destabilize my entire computer. Here is a minimal example that reproduces the issue for me: https://github.com/HBurd/qopenglwidget-repro. The example consists of a single window with a single QOpenGLWidget which simply clears the framebuffer to white.

      The issue occurs sporadically when rapidly resizing the window. The symptoms include:

      • Entire screen freezing for several seconds, including mouse
      • Screen flashing black
      • Graphical glitches in other running applications
      • Integrated GPU pinned at 100% usage

      Sometimes these issues resolve after I shut down the application. Other times, the issues persist and I am forced to reboot.

      Inspecting in the windows event viewer, the system instability coincides with numerous TDR events, indicating a problem with the GPU driver.

      I am using a laptop with an integrated GPU as well as a discrete NVIDIA GPU. The issues do not occur when I force the application to use integrated graphics in the NVIDIA control panel. They only occur when the setting is "auto-select" or "High-performance NVIDIA processor".

      I would guess that something about how Qt is handling QOpenGLWidget resizing is interacting poorly with the GPU driver.

      System information: 

      • Thinkpad P14s
      • CPU: Intel Core Ultra 7 155H
      • GPU: NVIDIA RTX 500 Ada Generation Laptop GPU (Tested driver versions 550, 570, 580)
      • RAM: 64 GB

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lagocs Laszlo Agocs
            hburd Hugo Burd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes