Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Random graphical artefacts on QT 5.14 with OpenGL on Intel HD graphics

Random graphical artefacts on QT 5.14 with OpenGL on Intel HD graphics

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 7 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Matthias St.M Offline
    Matthias St.M Offline
    Matthias St.
    wrote on last edited by
    #1

    Hello,

    I am currently trying to fix a Qt/QML OpenGL problem that can be observed with Intel HD Graphics on Windows 10. Sporadically, a black triangle is drawn across the whole window (usually completely diagonal with varying 3rd vertex position). It disappears shortly after, especially after the uses moves the mouse. This is very annoying during user interaction.

    I attached a screenshot. Has anyone had a similar problem or knows how to fix it?

    qt_opengl_artefacts.png

    The problem appeared after upgrading from an old Intel driver (26.20.100) to a recent one (27.20.100). We are currently using Qt 5.14.0 and the latest Visual Studio 2019. When trying out an old build (Visual Studio 2013) with Qt 5.9.2, the problem cannot be reproduced. When using the angle backend, no problems can be observed (but performance is very slow). On computers with dedicated graphics cards, there is also no problem.

    System specs:

    QT: 5.14.0
    Dynamic GL LibGL Vendor: Intel
    Renderer: Intel(R) HD Graphics 530 (also reproducible on the 6xx series)
    Version: 4.6.0 - Build 27.20.100.9316
    

    Thanks for any suggestions for how to address this,
    Matthias

    Pl45m4P JKSHJ 2 Replies Last reply
    0
    • Matthias St.M Matthias St.

      Hello,

      I am currently trying to fix a Qt/QML OpenGL problem that can be observed with Intel HD Graphics on Windows 10. Sporadically, a black triangle is drawn across the whole window (usually completely diagonal with varying 3rd vertex position). It disappears shortly after, especially after the uses moves the mouse. This is very annoying during user interaction.

      I attached a screenshot. Has anyone had a similar problem or knows how to fix it?

      qt_opengl_artefacts.png

      The problem appeared after upgrading from an old Intel driver (26.20.100) to a recent one (27.20.100). We are currently using Qt 5.14.0 and the latest Visual Studio 2019. When trying out an old build (Visual Studio 2013) with Qt 5.9.2, the problem cannot be reproduced. When using the angle backend, no problems can be observed (but performance is very slow). On computers with dedicated graphics cards, there is also no problem.

      System specs:

      QT: 5.14.0
      Dynamic GL LibGL Vendor: Intel
      Renderer: Intel(R) HD Graphics 530 (also reproducible on the 6xx series)
      Version: 4.6.0 - Build 27.20.100.9316
      

      Thanks for any suggestions for how to address this,
      Matthias

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Matthias-St said in Random graphical artefacts on QT 5.14 with OpenGL on Intel HD graphics:

      Qt 5.14.0

      Have you tested it with 5.15?
      It's the latest Qt5 stable version and a lot of stuff / bugs got fixed there (if this is a Qt issue).


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      Matthias St.M 1 Reply Last reply
      0
      • nageshN Offline
        nageshN Offline
        nagesh
        wrote on last edited by
        #3

        @Matthias-St Does this "Random graphical artefacts" appear when you run your application?

        Matthias St.M 1 Reply Last reply
        0
        • Pl45m4P Pl45m4

          @Matthias-St said in Random graphical artefacts on QT 5.14 with OpenGL on Intel HD graphics:

          Qt 5.14.0

          Have you tested it with 5.15?
          It's the latest Qt5 stable version and a lot of stuff / bugs got fixed there (if this is a Qt issue).

          Matthias St.M Offline
          Matthias St.M Offline
          Matthias St.
          wrote on last edited by
          #4

          @Pl45m4 Hi, thank you for your reply. I updated to the latest 5.15 version but nothing improved. I could not find any QT release notes that appear to address this issue either.

          1 Reply Last reply
          0
          • nageshN nagesh

            @Matthias-St Does this "Random graphical artefacts" appear when you run your application?

            Matthias St.M Offline
            Matthias St.M Offline
            Matthias St.
            wrote on last edited by
            #5

            @nagesh Yes, they appear when I run the application. The frequency of artefacts increases when the application renders more data (we basically draw frequently updating plots)

            nageshN 1 Reply Last reply
            0
            • Matthias St.M Matthias St.

              @nagesh Yes, they appear when I run the application. The frequency of artefacts increases when the application renders more data (we basically draw frequently updating plots)

              nageshN Offline
              nageshN Offline
              nagesh
              wrote on last edited by
              #6

              @Matthias-St I guess there might be problem with application drawing(some co-ordinate calculation). Try to draw the plots in fixed position and check whether these artefacts do appear?

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hypnos97
                wrote on last edited by
                #7

                @ Matthias-St
                I also had a similar situation

                1 Reply Last reply
                0
                • Matthias St.M Offline
                  Matthias St.M Offline
                  Matthias St.
                  wrote on last edited by
                  #8

                  I maybe found a solution by enabling the new Rendering Interface in Qt 5.15. So far, there were no issues after executing the following line of code very early in the main function:

                  QQuickWindow::setSceneGraphBackend(QSGRendererInterface::OpenGLRhi);
                  

                  This does not yet mean that the problems are gone, but it's a way I will now test out on other machines to see if this really works (and does not break anything else).

                  1 Reply Last reply
                  0
                  • U Offline
                    U Offline
                    ufukgun
                    wrote on last edited by ufukgun
                    #9

                    When i change "setSceneGraphBackend", i have received many shader errors and display artifacts.
                    My problem still continues.

                    Qt 5.15.2
                    Visual Studio 2019

                    1 Reply Last reply
                    0
                    • Matthias St.M Matthias St.

                      Hello,

                      I am currently trying to fix a Qt/QML OpenGL problem that can be observed with Intel HD Graphics on Windows 10. Sporadically, a black triangle is drawn across the whole window (usually completely diagonal with varying 3rd vertex position). It disappears shortly after, especially after the uses moves the mouse. This is very annoying during user interaction.

                      I attached a screenshot. Has anyone had a similar problem or knows how to fix it?

                      qt_opengl_artefacts.png

                      The problem appeared after upgrading from an old Intel driver (26.20.100) to a recent one (27.20.100). We are currently using Qt 5.14.0 and the latest Visual Studio 2019. When trying out an old build (Visual Studio 2013) with Qt 5.9.2, the problem cannot be reproduced. When using the angle backend, no problems can be observed (but performance is very slow). On computers with dedicated graphics cards, there is also no problem.

                      System specs:

                      QT: 5.14.0
                      Dynamic GL LibGL Vendor: Intel
                      Renderer: Intel(R) HD Graphics 530 (also reproducible on the 6xx series)
                      Version: 4.6.0 - Build 27.20.100.9316
                      

                      Thanks for any suggestions for how to address this,
                      Matthias

                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #10

                      @Matthias-St said in Random graphical artefacts on QT 5.14 with OpenGL on Intel HD graphics:

                      Intel HD Graphics on Windows 10

                      Yeah, Intel's OpenGL support is buggy. (Example: https://bugreports.qt.io/browse/QTBUG-69538 )

                      @ufukgun said in Random graphical artefacts on QT 5.14 with OpenGL on Intel HD graphics:

                      When i change "setSceneGraphBackend", i have received many shader errors and display artifacts.
                      My problem still continues.

                      Qt 5.15.2
                      Visual Studio 2019

                      Try a Direct3D backend instead of the OpenGL backend.

                      Alternatively, try using ANGLE instead of the Intel's OpenGL drivers by setting the environment variable, QT_OPENGL=angle

                      Note: You must set the backend before initializing your first window.

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        Toeger
                        wrote on last edited by
                        #11

                        Same problem on Intel UHD Graphics on Qt 5.15.1 (but not on Intel HD Graphics 620), QQuickWindow::setSceneGraphBackend(QSGRendererInterface::OpenGLRhi); fixed it.
                        However, the fix caused curves in my graph to not render.
                        The reason was that I used the flag useOpenGL: true from QtCharts.AbstractSeries to speed up rendering which seems to be incompatible with OpenGLRhi. Removing useOpenGL: true fixed the missing curves issue.

                        1 Reply Last reply
                        1

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved