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

memory leakage when running the examples #43

Open
mfkenson opened this issue Sep 8, 2017 · 1 comment
Open

memory leakage when running the examples #43

mfkenson opened this issue Sep 8, 2017 · 1 comment

Comments

@mfkenson
Copy link

mfkenson commented Sep 8, 2017

Both examples multiframe_listener.py and selective_streams.py make my mac running out of memory after keep running 1-2 minutes. I have 16GB memory. It took only few seconds to increase 500MB memory usage. The libfreenect2's example "Protonect" has no problem. The memory usage is only about 110MB.

@r9y9
Copy link
Owner

r9y9 commented Sep 8, 2017

listener.release(frames)
This line is required to release memory for depth/color frames allocated by libfreenect2.

Did you run both examples with no modifications? If so, could you please debug which line causes memory leak? I don't have Kinect v2 right now so I cannot debug examples, sorry. It might be worth trying different packet pipelines (OpenGLPacketPipeline, CpuPacketPipeline, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants