Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-140

QImage constructor never frees his memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1.2, 1.2.2, dev
    • Fix Version/s: 5.11.3
    • Component/s: PySide
    • Labels:
    • Environment:
    • Commits:
      b8201a3ad2e778ed58cb285369055dc4d0d450bd

      Description

      QImage(data,size1,size2,format) contructor seem to occupy memory, but put in combination wil PIL.Image.tostring() this memory is never freed.

      I put the constructor in a loop and found the following:
      if data is always the same, there is no increase in memory, if data != data(t+1), then it increases really fast.

      Please take a look at the code in attachement, containing these situations, and all the code needed to reproduce the bug (reproduced on 2 different computers).

      ps: I posted the issue on stackoverflow, here: http://stackoverflow.com/questions/14716850/pil-to-qimage-conversion-qimage-constructor-does-not-free-memory

        Attachments

        For Gerrit Dashboard: PYSIDE-140
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            lokinou Loic bot
            Votes:
            8 Vote for this issue
            Watchers:
            14 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes