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

Detecting OpenGL support on systems with llvmpipe

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.15
    • Fix Version/s: None
    • Component/s: GUI: OpenGL, QPA: X11/XCB
    • Labels:
      None
    • Environment:
      Linux, X11, Ubuntu 21.10

      Description

      Hello,
      While testing my software on various systems, I noticed that it crashes on startup on OSes running llvmpipe, for instance on an Ubuntu 21.10 VM on VirtualBox.

      I reduced the setup_opengl function to this which is enough to cause the crash:
       

      static void setup_opengl()
      {
          QSurfaceFormat fmt = QSurfaceFormat::defaultFormat();
          fmt.setProfile(QSurfaceFormat::CoreProfile);
          fmt.setSwapInterval(1);
          fmt.setMajorVersion(4);
          fmt.setMinorVersion(6);
          QOpenGLContext ctx;
          ctx.setFormat(fmt);
          ctx.create(); // crash is here
      }
      

       
      So, my issue with this is that since the crash occurs on creation of the context, I cannot even try to call glGetStrings(GL_VERSION) to try to blacklist llvmpipe. What are my other options to avoid this sad state of affairs ?

       

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.graphics.and.multimedia Qt Graphics Team
            Reporter:
            jcelerier Jean-Michaël Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes