Skip to content

Slow memory leak on ZED SDK #83

@anand97

Description

@anand97

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

There is a slow memory leak in the ZED gstreamer plugin. I did a simple test where I ran the following command:

gst-launch-1.0 zedsrc name=psrc camera-fps=15 camera-resolution=4 enable-imu-fusion=true enable-positional-tracking=true depth-minimum-distance=500 depth-mode=1 fill-mode=false camera-sn=43566715 stream-type=4 ! fakesink

with three such ZED X cameras, and I monitored the RAM usage over time. After about 1 hr and 15 mins, both RAM(16GB) and Swap space(8GB) on my Jetson Orin NX was filled up, with no other applications running. The baseline ram usage without these apps running was about 2GB.

Here with attached is a screenshot of the run, and my ZED Diagnostics output.

Image

ZED_Diagnostic_Results.json

ZED-gstreamer commit: 8924ddf

Please let me know if you need further information to diagnose the problem. Thank you!

Steps to Reproduce

  1. Run the command gst-launch-1.0 zedsrc name=psrc camera-fps=15 camera-resolution=4 enable-imu-fusion=true enable-positional-tracking=true depth-minimum-distance=500 depth-mode=1 fill-mode=false camera-sn=43566715 stream-type=4 ! fakesink
  2. Monitor RAM usage over time. Recommended to run this this command across multiple cameras.
    ...

Expected Result

RAM usage should stay stable and not consume all of the available memory even after running the plugin for hours on end.

Actual Result

No more available memory. System crashes.

ZED Camera model

ZED X

Environment

Jetson Orin NX 16GB. Please see diagnostics file for more info

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions