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

Memory utilization constantly grows when displaying video from the camera

    XMLWordPrintable

Details

    • macOS

    Description

      Displaying camera output with either Camera+VideoOutput component or with WebEngineView (GetUserMedia) leads to a high virtual memory consumption within ~15-30 minutes:

      • Virtual memory 10Gb
      • Persistent memory 2.5Gb
        See high-vm-usage.png

      Attached a small app to reproduce the issue: camera-test.zip 

      1. Start the camera-test app
      2. Start Instruments -> Leaks MacOS tool
      3. Check the constant growth of the allocations chart and virtual memory (in the Activity Monitor)

      Tested on 4 different computers with MacOS Mojave and Catalina

      Expected: Displaying camera stream should use fixed memory size 

      Attachments

        1. 5.14-mem.png
          355 kB
          Andrey Bocharnikov
        2. Allocations.png
          723 kB
          Andrey Bocharnikov
        3. camera-test.zip
          12 kB
          Andrey Bocharnikov
        4. high-vm-usage.png
          1.12 MB
          Andrey Bocharnikov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            ricko Andrey Bocharnikov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes