-
Notifications
You must be signed in to change notification settings - Fork 44
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
Infinite increase of memory during decoding hls-stream (memleak?) #25
Comments
Hi @Yusupov28, |
I checked with RTSP. Seems like it also has a leak. When I run the memory was 162160 kB. After ~27000 frames it was 162424 kB. And after ~50000 frames - 162688 kB. With local video the memory increased by 264kb only in the beginning. But after that there was no leak. Video was 32000 frames |
Is it peak value and memory goes up/down constantly or you see that memory only grows? I mean it can be some OS memory management/internal FFmpeg buffer's management and not actually memory leak. |
In my cases it only grows. For example I tried to decode hls-stream >24 hours and also the memory only grows. |
Which branch do you use? If master could you please try dev one? |
Tried dev branch. The same situation. |
In such case please provide some additional information which can help to investigate the issue: OS, HW (CPU/GPU), versions of used libraries (pytorch/ffmpeg/any others), HLS (if possible) |
Ubuntu 16.04, Intel Core i5-4440/NVIDIA GeForce GTX 1060 6GB, Pytorch 1.9.1, ffmpeg 4.2, CUDA 10.1 |
I also tried to restart reader several times and the memory(RAM and VRAM) also grows. I changed Sample.cpp a bit.
|
Hello. I tried to decode hls-stream and saw that memory increases infinitely by 264kb.
Could you explain why it happens?
For reproducing:
I ran Sample.cpp(made the infinite loop). Added this string for hls support after:
https://github.com/osai-ai/tensor-stream/blob/master/src/Parser.cpp#L309
And I used python for recording new ts to playlist.
Initial test_playlist.m3u8:
And I also tried not to call getFrame from WrapperPython.ccp(I ran tensor-stream from python), processingLoop was working and the memory also increased.
The text was updated successfully, but these errors were encountered: