zed-sdk icon indicating copy to clipboard operation
zed-sdk copied to clipboard

sl::Camera::close() doesn't free up memory (ZED_SDK 4.1)

Open CR-G opened this issue 1 year ago • 0 comments

Preliminary Checks

  • [X] This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • [X] This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

Hello, I am having a problem while working with svo (and svo2) files.

I have a program written in C++ that opens an SVO file and retrieves an image. The issue is that after calling sl::Mat.free() and sl::Camera::close() the memory is not freed and the used memory continues to add up with subsecuent calls to sl::Camera::open()

The solutions proposed in #534 did not work.

Steps to Reproduce

  1. Open an SVO file.
  2. Grab images.
  3. Close the SVO file.

Expected Result

After calling sl::Camera::close() the memory should be freed.

Actual Result

The memory usage is never reduced.

ZED Camera model

ZED

Environment

OS: Linux (stereolabs/zed:4.1-devel-cuda12.1-ubuntu22.04 docker)
CPU: 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
GPU: NVIDIA GeForce RTX 3080
MEMORY: 15GiB

Anything else?

The SVOs were recorded with zed X and zed X mini cameras in an Nvidia JETSON AGX ORIN developer kit using ZED_SDK 4.1.0

Output of ZED_SVO_Editor -info

SVO Infos : SVO v 2 Image Size : [ 1920 x 1080 ] Framerate : 30 Number of Frames : 4266 ZED Serial Number : 56702501 Compression mode : " H265 Lossy (GPU) compression" Product : ZED-XM Sensors Fw version : 1000 Camera Fw version : 2001

CR-G avatar May 09 '24 10:05 CR-G