Memory leak in Search Agent Plug-in?

Hello team,

I’d like to share my finding on a customer site, which would be related to a memory leak. The reproduction steps are as follows:

  1. Search by a motion filter
  2. After completing the search, search by multiple custom filters which are using any or and criterion search
  3. While searching, invoke a new search by milestone alarm filter which is intended to find no result at all

Even after completing the alarm search with no search results, the memory keeps increasing up to 20GB and the memory was not cleared until closing the smart client.

I could record this issue. If you want to view this video, could you provide a way to share the video as I can’t upload video in this thread.

Hi Seongho,

Milestone Development will start an investigation.

Hi Seongho,

We are looking into this. I will get back to you about getting the video.

Hi Seongho,

If you cannot upload the video with the attach file functionality can you please consider using some kind of free file share service or similar? Let me know if this acceptable, otherwise we can create a Milestone upload area just for you.

Please use below URL for downloading the video file.

https://downloads.hanwhavision.eu:5004/sharing/pi4AO80FX

Hi Seongho,

Which version of SmartClient are you using ?

Hello, we test it on site with client versions 2023R2, R3, and 2024R1.

@Pascal Higelin (Milestone Systems)​ is aware of the issue and he should have all necessary details.

Hi, all

Is there any update about this?​

Hi,

We have asked support for more information.

Hi, Sorry for the delay. They are using XProtect Expert 2023R2. For the video share, could you create the Milestone upload area if you still need it?

Some investigation has been on going but ii has been put to my attention that Milestone Support don’t have the necessary information to really investigate.

Two things are requested.

  1. Make a memory dump of the Smart Client when the search has used the memory.
  2. Let us see central snippets of source code, how you create the search agent.

Note this information might not be suitable for upload on this public forum, I have created a support case for you (MSC2099328).