View my account

out of memory

Comments

7 comments

  • MartyG

    If you are using the point cloud processing block, there is a known memory leak in it.  The link below provides advice about dealing with it.

    https://github.com/IntelRealSense/librealsense/issues/2860 

     

    0
    Comment actions Permalink
  • 819765928

    Hi Marty, thanks for the reply!

    I keep creating RS2:: context in the code, but I add static, and the memory is still increasing.

    There are other places that are increasing, but I can only see them with tools realsense2.dll.

    0
    Comment actions Permalink
  • MartyG

    Are you using C++, C# or Pyrealsense2 to program in, please?

    0
    Comment actions Permalink
  • 819765928

    I'm sorry to get back to you so late.C + + Programming I used.After two days, I obviously saw the increased memory in my project.

    static rs2::context ctx;

    return ctx.query_devices().size();

    I keep using this code,find rs2::context::query_devices is taking up more and more memory.

    0
    Comment actions Permalink
  • MartyG

    Are you using syncer in your project. please?  There was a confirmed memory leak bug with that, and also in the frame-validator pb, that were fixed in SDK version 2.35.0.

    https://github.com/IntelRealSense/librealsense/issues/6337 

    0
    Comment actions Permalink
  • 819765928

    NO, not use syncer.

    0
    Comment actions Permalink
  • MartyG

    Would it be possible to try updating to the latest 2.36.0 Windows SDK to see whether there has been a change since 2.34.0 (which was launched at the end of March 2020) that corrects your problem, please?

    https://github.com/IntelRealSense/librealsense/releases/tag/v2.36.0 

    0
    Comment actions Permalink

Please sign in to leave a comment.