librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Continuos handle increassing in realsense2.dll

Open amatabuena opened this issue 7 years ago • 9 comments

Required Info
Camera Model D435
Firmware Version 05.10.06
Operating System & Version Windows 10
Kernel Version (Linux Only) ----
Platform PC x86
SDK Version 2.17.0
Language C#
Segment PC

When running C# application using D435 camera, memory and handles increase continuosly. Checking it with Windows Performance Analyzer handles increasing occurs in mfcore.dll.

captura

This handle increassing is causing application crash when running long time.

amatabuena avatar Feb 27 '19 14:02 amatabuena

Do you see this in one of the provided examples?

dorodnic avatar Feb 28 '19 07:02 dorodnic


@amatabuena Any update? Do you see the same issue with the examples?

Hi,

Sorry for not answering before, I am short on time.

I have tested memory with 'cs-tutorial-3-processing' and I couldn't reproduce the issue. As my context is very different to provided examples I can`t validate it without changed a lot of code or coding a new example. I will try when I have time.

Thanks.

amatabuena avatar Mar 07 '19 15:03 amatabuena


@amatabuena Did you get chance to try? Any update? Thanks!


@amatabuena Any update? Thanks!

Hi,

After doing several tests I have found that handle increassing occurs when setting some properties to the depth or color sensor ( sensor.Options[Option.XXXXX].Value).

I coundn't find the exact property that is causing the issue, because it looks like some of them are affecting.

When I have more time I will try to isolate those that cause the problem.

Regards,

amatabuena avatar Mar 15 '19 13:03 amatabuena

Hi,

I have found that the handle increassing problem is when activating error pooling on depth sensor (Option.ErrorPollingEnabled). Any suggestion about how to resolve it?

amatabuena avatar Mar 18 '19 12:03 amatabuena


@dorodnic Do you have more ideas/suggestion about the issue?

Hi @dorodnic

Using depth sensor with option ErrorPollingEnabled = false the issue dissapear. Currently I have no time to find out where the problem is when ErrorPolling is active.

Regards,

amatabuena avatar Mar 22 '19 07:03 amatabuena