View my account

Object detection ending after 4h with this failure...

Comments

3 comments

  • MartyG

    Given that the log says that there is a MemoryError and the problem occurs after 4 hours of successful running, the first possibility I would recommend checking is whether your program has a memory leak.  This is where memory is not being properly released for re-use, so the available memory gets consumed over time until it runs out.  This can cause stability problems or even a freeze / exiting of the program.

    How long a memory leak takes to stop a program depends on what the application is doing.  For example in RealSense, a program that is running multiple streams at high resolution or FPS speed will fail sooner than a program that has a single stream and a modest resolution / FPS speed and so is consuming memory resources at a slower rate.

    The easiest way to check for the possibility of a memory leak is to monitor your computer's memory usage and observe whether it is continuously reducing over time.

    0
    Comment actions Permalink
  • Martin Studer

    Hello Marty
    I followed your tip and monitored the program with htop, resp. looked at what's happening there.
    In fact, the memory requirement in RAM is continuously increasing.
    The Raspi also loads the file 23x into RAM.
    As soon as the RAM has exceeded the 2.2GB limit, the software crashes.
    I thought about whether I should monitor the RAM with a watchdog and end the program when a certain limit was exceeded and then start it again ...
    is probably not the optimal solution, is it?
    May I send you the code? Maybe you see what it could be?

    Greeting
    Martin

    0
    Comment actions Permalink
  • MartyG

    Hi Martin, I went over your case very carefully.  Are you using the RealSense SDK software please or are you using the D435 as a camera with the Piface (i.e your Python program is a Piface program and not a RealSense SDK one) ?

    0
    Comment actions Permalink

Please sign in to leave a comment.