PhotonVision / photonvision

PhotonVision is the free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition.
https://photonvision.org
GNU General Public License v3.0
260 stars 169 forks source link

Run resize in CPU and more aggressively release rknn resources #1287

Closed mcm001 closed 4 months ago

mcm001 commented 4 months ago

With the latest dev opi image, i saw this stack trace when object detection stopped working (threads hanging forever on detect(). The stack pointed me to somewhere inside the RGA. Based on this i moved resize into CPU (as our native code already is lazy), and was not able to see more crashes

message.txt

Includes also a quick hack to add a shutdown hook that releases pipelines at exit.