• Hardware Platform (Jetson / GPU) Jetson • DeepStream Version v5.0 GA • JetPack Version (valid for Jetson only) v4.4 • TensorRT Version v7.1.3.0 • Issue Type( questions, new requirements, bugs) BUG
Using the attached config file smart_record_file_desciptor_leak.txt (6.0 KB) for 8 rtsp sources with smart-record enabled on interval for each source (to reproduce faster), causes file descriptor leaks on the Jetson Nano using the sample deepstream-app.
After only a few minutes the application crashes, with different errors. Some logs for different runs attached as examples
Note, from my investigation it seems to be leaking 2 file descriptors of type type=STREAM per recording (as can be seen from the command below). This occurs even with a single RTSP stream.
This is critical to me as my application crashes after a certain amount of recordings.
To reproduce, install lsof to check the file descriptors:
sudo apt-get update
sudo apt-get install lsof
After running the deepstream-app using the attached config file:
Get the process ID using ps aux | grep deepstream-app
Export above process ID as PID, for example export PID=1234
Run the following command to watch the file descriptors leaking: watch -n 5 "date '+%F %T' && lsof -p $PID | wc -l && lsof -p $PID | grep type=STREAM | wc -l"
I haven’t noticed this. My applications are not continually starting and stopping so the issue may be there without me knowing.
I will test using lsof as you suggest and create a lot of detections (which is what triggers smart record for my apps). Will report back next week as I’m on holidays at the moment. ;-)
Thanks @jasonpgf2a, in my applications this is also triggered from detections. Just created a sample config for Nvidia to reproduce using one of their samples.
By “next release”, do you mean Deepstream 6 or will there be a minor/patch release? Could you provide a timeline on when this will be provided as this is critical to my applications. The only roadmap I could find is Jetson Roadmap | NVIDIA Developer which only mentions Jetpack.