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

Crash on exit in QOpenGLVertexArrayObject

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.1, 5.15.2
    • 5.12.2
    • GUI: OpenGL
    • None
    • Linux/X11, Windows
    • 763752ded1cbd7a64c623434de666fca6619541b (qt/qtbase/dev) 2eba5cb403b2f2812bca5563183f42a3211c9d07 (qt/qtbase/5.15)

    Description

      After porting an application from Qt 5.6 to Qt 5.12 we found a crash when exiting our application. 

      We were able to track down the issue back to commit 1b9af84c1b (QTBUG-70148). This commit added the following check in qtbase/src/gui/opengl/qopenglvertexarrayobject.cpp (line 212):

      if (QThread::currentThread() != qGuiApp->thread()) {
        ctx = 0;
      } else {
      

      The crash happens because qGuiApp is already set to nullptr before this code is reached.

      The problem described in QTBUG-73824 also seems to have the same issue.

       

      Attachments

        Issue Links

          Activity

            People

              lagocs Laszlo Agocs
              hilefoks Stefan Böhmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: