v4l2codecs: issues after some days of continuous playback
Hello Devs! I have been testing sunxi cedrus integration in gstreamer playbin3 in the last weeks and discovered some issues. All in all pretty brilliant that this finally works! Thank you for working on it. With some simple code i let the video run in a loop and seek the file to the beginning upon EOS.
This was first tested on Kernel 5.14 and the older gstreamer repos. @ndufresne was kind enough to offer his help a while ago. It just took Marek and me a bit long to update all and test again.
Hope someone can help to make this more stable. I am happy to support however I can.
Expected Behavior
Video should loop endlessly
Observed Behavior
Seeking to the first frame after EOS fails after 1000000 frames i get an error (https://pastebin.com/SxWs7B9v). I am circumventing this by catching the error message from gstreamer bus and reinit the pipeline. But i am probably not doing that right - eventually i am running out of cma memory on my hardware or I am getting too many open files (https://pastebin.com/FiK4yGXm). The system remains stable though and restarting the binary fixes it.
Setup
- Linux Yocto Kernel 5.16
- Allwinner A64 with 1366x768 LCD
- mono repo f0e6959b
Steps to reproduce the bug
compile the attached code (https://pastebin.com/e9jx5m69) and have it run on a system with gstreamer
How reproducible is the bug?
Happens every time the code runs. Also after the same amount of time.