View my account

Frame didn't arrive within 5000 - with two camera | c#

Comments

13 comments

  • MartyG

    Hi Thomas Chenus33  Which processing block are you using please?

    If it is the point cloud processing block, a memory leak problem exists in that block that is a Known Issue.  The link below provides advice about how to structure your code to avoid it.

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

     

    0
    Comment actions Permalink
  • Thomas Chenus33

    This is my processingBlock :

    0
    Comment actions Permalink
  • MartyG

    Which RealSense SDK version are you currently using please?

    0
    Comment actions Permalink
  • Thomas Chenus33

    Intel RealSense Viewer v2.33.1

    0
    Comment actions Permalink
  • MartyG

    Are your frames being correctly disposed in C#, please?

    https://github.com/IntelRealSense/librealsense/issues/2845#issuecomment-444448923 

    0
    Comment actions Permalink
  • Thomas Chenus33

    I try to dispose the processingBlock but i dont now where. I tried few test but nothing work for now. I always have an error occured

    0
    Comment actions Permalink
  • MartyG

    C# is not my best language in terms of coding knowledge, so I appreciate your patience.

    My understanding through further research is that if a using block is used then you do not also have to use release() as the 'using' code should be sufficient to release the frames and help to avoid the pipeline jamming up with frames due to the garbage collector not collecting them.

    Taking a leap of logic, if using releases frames then I wonder whether it is necessary to create a FrameReleaser object and embed WaitForFrames() within that process.

    0
    Comment actions Permalink
  • Thomas Chenus33

    I dispose the frame into my processingBlock now and I still have the problem ! I do a .DisposeWith(frames) in the begining of the processingBlock and a .Dispose(); at the end of the processingBlock

    0
    Comment actions Permalink
  • MartyX Grover

    I would advise re-posting this question on the RealSense GitHub forum so that it can be brought to the attention of RealSense team members who have expertise in C# programming.  I do apologise that I could not be of more help in this particular case.

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

    0
    Comment actions Permalink
  • Thomas Chenus33

    Ok I try on the forum because I still don't found the problem ...

    0
    Comment actions Permalink
  • Thomas Chenus33

    I made a few tests and I create a new problem, maybe this is the reason of camera crashing. I loose the DepthFrame into my thread.

    This is weird because I use the DethFrame just above in the same thread and same iteration, but for another zone, and the DepthFrame work. I don't have this error every time, it's maybe cause by the debugging process of VisualStudio. Because I receive this error only in debug mode.

     

     

    0
    Comment actions Permalink
  • Thomas Chenus33

    The message translates in English into the exeption is : System.ObectDisposedException : "Impossible to access to a deleted object" Name of object: "DepthFrame"

    0
    Comment actions Permalink
  • MartyX Grover

    It remains a topic that is outside of my knowledge and best queried about on the GitHub.  I did locate some information though, in the link below:

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

    0
    Comment actions Permalink

Please sign in to leave a comment.