Giter VIP home page Giter VIP logo

Comments (4)

adujardin avatar adujardin commented on June 9, 2024 1

I think I found the issue.
I noticed removing the grab parameter declaration fix the (obvious) memory leak.
Basically replacing this :

    while i < 50:
        if zed.grab(zcam.PyRuntimeParameters()) == tp.PyERROR_CODE.PySUCCESS:

by this :

    grab_params = zcam.PyRuntimeParameters()
    while i < 50:
        if zed.grab(grab_params) == tp.PyERROR_CODE.PySUCCESS:

from zed-python-api.

adujardin avatar adujardin commented on June 9, 2024

Hi,
This is indeed an issue. Nothing should be allocated each grab(), only the first time, so there is no function to clear the memory.
Is this specific to the python wrapper or did you also notice this issue with the C++ SDK?
Which ZED SDK version are you using?
Are you on Tegra? (This shouldn't have any impact, it's just to help investigate the bug.)

from zed-python-api.

Jam-zed avatar Jam-zed commented on June 9, 2024

I have only tried the python wrapper.

And I'm using ZED SDK 2.3.0

Right now I'm testing on my laptop a Dell xps 15 9560 running ubuntu 16.04, but I have also tested it on Tegra (astro carrier jetson tx1) and I'm having the same issue.

from zed-python-api.

Jam-zed avatar Jam-zed commented on June 9, 2024

That definitely made it a lot more stable!

Thank you very much!

from zed-python-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.