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

Invalid Memory Access due to asynchronous loading in QQuickImage.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.0.0 Beta 1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      MSVC 2010

      Description

      In the QQuickImage object when a new image is loaded asynchronously (via http) it is possible for the old image to be released from memory but still remain referenced in the renderer. If the render thread runs between the time the old image was released and before the new image is loaded there will be an invalid memory access when trying to render the released texture.

      I have attached a patch that appears to 'fix' the problem but I can not vouch for the validity of the fix.

      The attached qml file will reproduce the problem. I did not attach the image files I was using in the test. The image files were located on a separate machine for the test.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              dedietri Gabriel de Dietrich (drgvond)
              Reporter:
              robertd Robert Daniels
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes