-
Notifications
You must be signed in to change notification settings - Fork 5
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 leak when destructing #5
Comments
Hmm another interesting issue occured, I think it's new (but maybe related to previous issue #1 ). For some reason after a lot of recordings the executable crashed and tried to restart, but its stuck. Although it looks that it's not a GPU memory issue. I have to reboot the Pi to make it work again. Memory consumption at the moment of locking. The system is locked here: Though the system is more reliable then before, it gets locked after a lot of recordings happend. More interesting would be to recover the library without the need to have a hard reboot. Any ideas? Regards |
I will take a look at the leak on destruction. |
Thanks for looking into. For the second point, I did some stress tests and it looks when the system is under pressure (100% a couple of minutes) the lock occurs. I know we have been talking about it and added the high priority thread, but apparently this is still not enough. Not sure if this is something we can do about at all. Cédric |
Fixed the second point by making sure the CPU doesn't run at 100% a long time. (sleeps here and there) |
hrmpf, that's a tricky fix Still nothing for the memory leak, I'm starting to think that it's a firmware bug.. |
Well not in the preview thread, I'm running FFMPEG in the background to convert h264 inside a MP4 container. This thread is checking a directory of .h264 files and converts them one by one. However if there are a lot of h264 files in this directory, FFMPEG will consume 100% CPU for a long time. This is where I've added a sleep function, so that it doesn't continuously converts. |
Hey @dridri,
I've been profiling your library with this library https://github.com/MilhouseVH/bcmstat.
And it looks that when I destruct and construct the components I got a gpu leak. Any ideas?
Thanks @dridri
The text was updated successfully, but these errors were encountered: