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

OpenGL context creating fails with Nvidia driver

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.5.1, 5.7
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Arch Linux with latest Nvidia beta drivers 358.09 (nvidia-libgl-beta)
      also libxcb compiled from git master

      GPU Nvidia GeForce GTX 650 Ti

      Description

      I've compiled qtbase and qtdeclarative from git dev branch and when I start sddm I get

      Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0)
      
      #0  0x00007f6fba4c55f8 in raise () from /usr/lib/libc.so.6
      #1  0x00007f6fba4c6a7a in abort () from /usr/lib/libc.so.6
      #2  0x00007f6fbae6d6c9 in qt_message_fatal (context=..., message=<synthetic pointer>) at /mnt/Qt/qtbase/src/corelib/global/qlogging.cpp:1606
      #3  QMessageLogger::fatal (this=this@entry=0x7ffdd6430580, msg=msg@entry=0x7f6fbc0dc719 "%s") at /mnt/Qt/qtbase/src/corelib/global/qlogging.cpp:780
      #4  0x00007f6fbbf24faf in QSGRenderLoop::handleContextCreationFailure (this=this@entry=0x1fb4f80, window=0x1fb4690, isEs=isEs@entry=false) at /mnt/AUR/qt5-declarative-git/src/qt5-declarative/src/quick/scenegraph/qsgrenderloop.cpp:260
      #5  0x00007f6fbbf2d805 in QSGThreadedRenderLoop::handleExposure (this=this@entry=0x1fb4f80, window=window@entry=0x1fb4690) at /mnt/AUR/qt5-declarative-git/src/qt5-declarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:946
      #6  0x00007f6fbbf2df23 in QSGThreadedRenderLoop::exposureChanged (this=0x1fb4f80, window=0x1fb4690) at /mnt/AUR/qt5-declarative-git/src/qt5-declarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:884
      #7  0x00007f6fbb39bd75 in QWindow::event (this=this@entry=0x1fb4690, ev=ev@entry=0x7ffdd6430900) at /mnt/Qt/qtbase/src/gui/kernel/qwindow.cpp:2096
      #8  0x00007f6fbbf63531 in QQuickWindow::event (this=0x1fb4690, e=0x7ffdd6430900) at /mnt/AUR/qt5-declarative-git/src/qt5-declarative/src/quick/items/qquickwindow.cpp:1416
      #9  0x00007f6fbb034b7e in doNotify (receiver=0x1fb4690, event=0x7ffdd6430900) at /mnt/Qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1077
      #10 0x00007f6fbb034cc9 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x1fb4690, event=event@entry=0x7ffdd6430900) at /mnt/Qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1002
      #11 0x00007f6fbb391f0d in QCoreApplication::sendSpontaneousEvent (event=0x7ffdd6430900, receiver=0x1fb4690) at ../../include/QtCore/../../../../../src/corelib/kernel/qcoreapplication.h:230
      #12 QGuiApplicationPrivate::processExposeEvent (e=0x22d41a0) at /mnt/Qt/qtbase/src/gui/kernel/qguiapplication.cpp:2708
      #13 0x00007f6fbb392b65 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x22d41a0) at /mnt/Qt/qtbase/src/gui/kernel/qguiapplication.cpp:1709
      #14 0x00007f6fbb3718d2 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /mnt/Qt/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:636
      #15 0x00007f6fb1b05400 in userEventSourceDispatch (source=<optimized out>) at /mnt/Qt/qtbase/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:70
      #16 0x00007f6fb69b3dc7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
      #17 0x00007f6fb69b4020 in ?? () from /usr/lib/libglib-2.0.so.0
      #18 0x00007f6fb69b40cc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
      #19 0x00007f6fbb089477 in QEventDispatcherGlib::processEvents (this=0x1fa3680, flags=...) at /mnt/Qt/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:417
      #20 0x00007f6fbb033032 in QEventLoop::exec (this=this@entry=0x7ffdd6430be0, flags=..., flags@entry=...) at /mnt/Qt/qtbase/src/corelib/kernel/qeventloop.cpp:204
      #21 0x00007f6fbb03bdc4 in QCoreApplication::exec () at /mnt/Qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1272
      #22 0x000000000044060a in main (argc=5, argv=0x7ffdd6430e28) at /mnt/GitHub/sddm/src/greeter/GreeterApp.cpp:232
      

      I think this is Qt issue because other applications such as Firefox, Chromium and even some Qt applications does work fine. glxgears works too and I've attached glxinfo output.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              lagocs Laszlo Agocs
              Reporter:
              davispuh Dāvis Mosāns
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes