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

The "leak" is mainly a timing issue on slow CPUs #16

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

aviogit
Copy link
Contributor

@aviogit aviogit commented Apr 11, 2018

The leak in reality is a 1000 slot queue slowly filling up because consumer is slower than producer on low-end CPUs like Raspberry Pi and Odroid. For the moment, a warning and a smaller queue size is the best solution I've been able to come up with.

Maybe I could also add a framesQueue.pull() if memory usage is > some threshold and queue size is > than a couple of seconds worth of video?

Andrea Ranieri and others added 2 commits April 10, 2018 12:27
…onsumer is slower than producer on low-end CPUs like Raspberry Pi and Odroid. For the moment, a warning and a smaller queue size is the best solution I've been able to come up with...
@awesomebytes
Copy link
Member

Hmm I'm not too fond on merging this. We can change the default queue size for the video launch file from 1000 to something lower if you insist. It's just an option, I set 1000 based on... nothing, really.

4ndr3aR added 23 commits July 6, 2018 15:47
…cause /use_sim_time has been set to true by Gazebo and rate.sleep() never exited :(
…ithout first going through OpenCV capture that produces uncompressed images using a lot of CPU and RAM
@furushchev
Copy link
Collaborator

@aviogit It looks this PR contains some features that is not related to the title.
Could you separate them into multiple PRs to discuss which is actually effective to each issue?

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

Successfully merging this pull request may close these issues.

4 participants