Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
CR-G opened this issue May 9, 2024 · 1 comment
Closed
2 tasks done

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

CR-G opened this issue May 9, 2024 · 1 comment

Comments

@CR-G
Copy link

CR-G commented May 9, 2024

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • 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 CR-G added the bug_report label May 9, 2024
@CR-G
Copy link
Author

CR-G commented May 28, 2024

Fixed in ZED_SDK 4.1.2

@CR-G CR-G closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant