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

glGetString crashes in QGLXContext::queryDummyContext

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.7
    • GUI: OpenGL, QPA: X11/XCB
    • None
    • 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 compiled qtbase from dev branch with debug info and when I start sddm it crashes with glGetString call

      #0  0x0000000000000000 in ?? ()
      #1  0x00007f855592da47 in QGLXContext::queryDummyContext () at /mnt/Qt/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp:670
      #2  0x00007f855592dbd1 in QGLXContext::supportsThreading () at /mnt/Qt/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp:696
      #3  0x00007f855506982b in QSGRenderLoop::instance() () from /usr/lib/libQt5Quick.so.5
      #4  0x00007f855509aadd in QQuickWindowPrivate::init(QQuickWindow*, QQuickRenderControl*) () from /usr/lib/libQt5Quick.so.5
      #5  0x00007f855514337d in QQuickView::QQuickView(QWindow*) () from /usr/lib/libQt5Quick.so.5
      #6  0x000000000043fb6d in SDDM::GreeterApp::addViewForScreen (this=0x7ffdd94a42c0, screen=0x18c6d90) at /mnt/GitHub/sddm/src/greeter/GreeterApp.cpp:142
      #7  0x000000000043f2ed in SDDM::GreeterApp::GreeterApp (this=0x7ffdd94a42c0, argc=@0x7ffdd94a426c: 5, argv=0x7ffdd94a4448) at /mnt/GitHub/sddm/src/greeter/GreeterApp.cpp:134
      #8  0x0000000000440605 in main (argc=5, argv=0x7ffdd94a4448) at /mnt/GitHub/sddm/src/greeter/GreeterApp.cpp:230
      
      qglxintegration.cpp:670
      if (const char *renderer = (const char *) glGetString(GL_RENDERER)) {
      

      note that glGetString points to a valid memory address.

      oh, I just realized I forgot to recompile qtdeclarative. Isn't there some way for Qt to tell that it's ABI related issue and need to recompile?

      So now after recompiling qtdeclarative I get this

      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)
      

      I'll submit new issue for that

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes