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

When open/close usb camera, there has Mega byte memory leak each time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.12.3
    • Multimedia
    • None
    • Linux/Yocto

    Description

      1.

      When I open/close camera in one process several time( create camera object and destroy camera object), I can see the used memory is increasing rapidly by "free" command.

       

      2.

      I checked qtmultimedia camerabinsession.cpp as follows:

      https://code.qt.io/cgit/qt/qtmultimedia.git/tree/src/plugins/gstreamer/camerabin/camerabinsession.cpp?h=5.12

      I found the constructor "news" several object, but there's no place to delete them.

      I guess this is some how the root cause memory leak issue(blame me if I am wrong).

        
       m_busHelper = new QGstreamerBusHelper(m_bus, this);    
      m_busHelper->installMessageFilter(this);    
      m_cameraControl = new CameraBinControl(this);    
      m_audioEncodeControl = new CameraBinAudioEncoder(this);    
      m_videoEncodeControl = new CameraBinVideoEncoder(this);    
      m_imageEncodeControl = new CameraBinImageEncoder(this);    
      m_recorderControl = new CameraBinRecorder(this);    
      m_mediaContainerControl = new CameraBinContainer(this);    
      m_cameraZoomControl = new CameraBinZoom(this);   
       m_imageProcessingControl = new CameraBinImageProcessing(this);   
       m_captureDestinationControl = new CameraBinCaptureDestination(this);    
      m_captureBufferFormatControl = new CameraBinCaptureBufferFormat(this);

       

      3. If this is the reason of memory leak, will it be resolved?

      Thank you very much!!!

       

      Attachments

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

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            xing Xing Biao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes