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

QQmlDebugServer::instance() crashes if qApp is 0

    XMLWordPrintable

Details

    Description

      When running the following test app

      https://github.com/pyinstaller/pyinstaller/blob/develop/tests/interactive/test_pyqt5_qml.py

      I get a crash (stack trace attached) when the app is frozen using PyInstaller, but not when running it directly.

      The issue appears to be that in QQmlDebugServer::instance() the call to qApp (which seems to be a macro for QCoreApplication::instance(), line 273 qqmldebugserver.cpp) returns 0 and this is not checked.

      A possible fix is to check this return value and return 0 for QQmlDebugServer::instance() if it is 0.

      Attachments

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

        Activity

          People

            glennr Glenn Ramsey
            glennr Glenn Ramsey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes