Azure-Kinect-Sensor-SDK icon indicating copy to clipboard operation
Azure-Kinect-Sensor-SDK copied to clipboard

memory leaks in k4a.dll?

Open scotthsu98052 opened this issue 7 years ago • 0 comments

We notice our SensorApp.exe/CameraSample.exe are gradually using more memory when capturing video. For example, after 1 hour, 32MB memory was increased. After debugging, we suspect the increased memory is related to the Azure Kinect SDK. We observed similar symptoms in K4aViewer.exe (a camera tool bundled with the SDK). So, we need the SDK team to confirm if this is a memory leak issue or by design.

This is the snapshot taken after CameraSample.exe has stopped capturing video (after 1-hour capturing). You can see there were ~90K allocations not freed. • Before the capturing was stopped, this number kept increasing (never dropped). • After the capturing was stopped and waiting for half hour, the number still had no change. I’m not sure if the SDK has the garbage collection design to recycle the memory or not. image

And these memory blocks are all allocated by k4a.dll!depth_engine_thread. image

This is the snapshot taken after K4aViewer.exe has stopped capturing video and closed the device. image

And these are also all allocated by k4a.dll!depth_engine_thread. image

Thanks, Scott

scotthsu98052 avatar Mar 22 '19 00:03 scotthsu98052