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

Hover event delivery causes memory leak

    XMLWordPrintable

Details

    • Linux/X11
    • f43f6e493 (dev), 9fbc709a9 (6.9), b25be970e (6.8), bc1cc72b4 (tqtc/lts-6.5)

    Description

      Attached simple example crashes after a while and consumes lots of memory. This can be easily reproduced on Debian 11, On windows (I could not crash it ) but shows memory leak.

      Steps to reproduce:

      -Run  the application and bring the mouse on the application window

      -Leave it running for couple of hours and observe crash. ( I left it running overnight)

      Note: Very important, under no circumstance Mouse should move otherwise this will not crash.

      Following tiny script if you run will show memory usage:

      while true; do
      TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')
      MEMORY=$(cat /proc/$(pgrep -f "HoverHandlerTestApp")/status | grep -E 'VmRSS' | awk '{print $2, $3}')
      echo "$TIMESTAMP $MEMORY" | tee -a HoverHandler.txt --append
      sleep 5
      done 

       

      Attachments

        1. massif.png
          119 kB
          Shawn Rutledge
        2. qtbug135975.7z
          198 kB
          Irfan Omair
        For Gerrit Dashboard: QTBUG-135975
        # Subject Branch Project Status CR V

        Activity

          People

            srutledg Shawn Rutledge
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: