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

QTimer::singleShot memory leak

    XMLWordPrintable

Details

    • Windows

    Description

      Repeatedly calling QTimer::singleShot from worker thread to trigger a slot in main thread seems to cause the application memory consumption to slowly climb. The only time when memory consumption would go down temporarily (although still trending up) is when the application window is activated. If the application window remains in the background the memory consumption will not go down.

      Steps to reproduce the problem:

      1. Run the attached example
      2. Keep the app window minimized or in the background

      Attachments

        1. clangsa.png
          43 kB
          Karsten Heimrich
        2. qtbug96277.zip
          2 kB
          Miika Pernu
        3. qtbug96277-1.zip
          2 kB
          Miika Pernu

        Activity

          People

            thiago Thiago Macieira
            miikapernu Miika Pernu
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: