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

Running OpenGL app with Qt 5.7 on Ubuntu 16.04: "Could not initialize GLX"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.7.0
    • None
    • OS: Ubuntu 16.04
      GPU: nVidia GeForce 520M, bridged via Optimus with an Intel HD Graphics 5000 (not used)
      Version: nVidia driver version is 367
      Compiler: gcc 5.4.0

    Description

      This application is built with Qt 5.7, on Ubuntu 16.04.

      When running this application (either through Qt Creator or directly on the terminal), I get this error just before I create a QOpenGLWidget:

      Could not initialize GLX

      That's it. This problem does NOT occur when the application is built with Qt 5.5 or 5.6. With those versions, the program runs as expected.

      The application doesn't crash immediately after starting, because I do some printout that's unrelated to graphics before the window is visible.

      Some Googling reveals that once upon a time, Qt Creator would crash with this error message. That is NOT the case with me; Qt Creator runs as expected.

      I've attached the output of qtdiag.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            JesseTG Jesse Talavera-Greenberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes