Streaming Slowdown after a few hours on D415/D555
Set up:
2m shielded USB-C
D415 camera
The application streams depth, IR, color sensors and does minimal processing to detect anomalies in frames. Stream slows down after a few hours for seemingly no reason. Application restarts software pipeline every 12 hours but did not resolve the issue. Unit temperature is in normal operating range. What else could be making the stream choppy?
-
Hi Disha Rathod If a stream starts slowing down after a predictable amount of time has passed then I would first recommend checking whether the application has a memory leak, where available computer memory is progressively consumed over time until the program becomes unstable.
You can monitor available memory over time to see if it is reducing by using a system monitoring tool such as htop on Ubuntu or Task Manager on Windows.
-
Application does have a memory leak climbing RAM usage in Task Manager; even after ensuring passing each intermittent frame to FrameReleaser and Disposing releaser at the end of every iteration did not resolve the issue. There seems to be no other local memory leaks. I have read reports of Temporal filters and pointcloud extractions creating memory leaks. SDK version is 2.45.0 from a nuget package on VS 2022 which is old. Are there workarounds for this? Has this been fixed in recent SDKs? Camera is D555.
-
If you are generating a pointcloud with your application then I recommend checking that the pointcloud object is not being created within a loop, as this can cause a memory leak. Advice about this can be found at the link below.
https://github.com/realsenseai/librealsense/issues/2860#issuecomment-445539797
If your application makes use of the SDK's post-processing filters, a memory leak in the filters was fixed in SDK 2.54.1.
https://github.com/realsenseai/librealsense/pull/11095
Further memory leak fixes were in SDK 2.50.0.
-
Hi Disha Rathod Do you require further assistance with this case, please? Thanks!
-
There are not any known issues of a leak in the C# wrapper and we have not had leak reports from other RealSense C# users. We also have had no user reports other than yours regarding use of D555 with the C# wrapper, unfortunately.
Does the leak occur if you test the SDK's official C# example programs, such as the Processing post-processing and alignment example?
https://github.com/realsenseai/librealsense/tree/master/wrappers/csharp/tutorial
Please sign in to leave a comment.
Comments
6 comments