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

Crash at Qt3d teardown with ANGLE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.8.0
    • 5.8.0 Beta
    • Qt3D
    • Windows 7. Visual Studio 2015. Remote desktop connection (ANGLE).
    •  8730660d83dfa5c4d83a5b86b1892029bda14216

    Description

      My Qt3d applications started crashing at teardown after QTBUG-57496 introduced https://codereview.qt-project.org/179252 . The proposed https://codereview.qt-project.org/179636 did not fix the crash.

      Steps to reproduce:

      • Build tests\manual\scene3d-loader with VS2015 in debug.
      • Run application over remote desktop or set QT_OPENGL=angle to trigger ANGLE back-end.
      • Close window.
      • Observe "Exception thrown: read access violation. d was 0xFFFFFFFFFFFFFF5F." crash in Qt3DCore::QAspectThread. Call stack and debugger screenshot after applying patch #179636 attached.

      The crash is caused by the QOpenGLContext::d_ptr pointer having the value 0xdddddddddddddddd. This is an indication of use-after-free (http://stackoverflow.com/questions/370195/when-and-why-will-an-os-initialise-memory-to-0xcd-0xdd-etc-on-malloc-free-new).

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            forderud Fredrik Orderud
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes