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

Check for qApp existence before moving thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.4.2, 5.5.0
    • 5.4.1
    • GUI: OpenGL
    • None
    • edd555425a08f9e074f0a4d9333862636ccaae8d

    Description

      A check is needed as follows:

      qtbasesrcopenglqgl.cpp:162
      
      Q_GLOBAL_STATIC(QGLSignalProxy, theSignalProxy)
      QGLSignalProxy *QGLSignalProxy::instance()
      {
          QGLSignalProxy *proxy = theSignalProxy();
          if (proxy && qApp && proxy->thread() != qApp->thread()) {
              if (proxy->thread() == QThread::currentThread())
                  proxy->moveToThread(qApp->thread());
          }
      

      Please note the extra "&& qApp". Without this, we see a crash on exiting the app. This has been fixed in 5.5.0.

      Attachments

        Issue Links

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

          Activity

            People

              peppe Giuseppe D'Angelo
              michael.howard@am.sony.com Michael Howard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes