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
280 stars 202 forks source link

Changing resolutions on the Aruco pipeline causes PhotonVision to crash. #1338

Open cb144p opened 5 months ago

cb144p commented 5 months ago

The issue When changing the resolution of the camera to 1600x1200 in the Aruco pipeline PhotonVision crashes. Some resolution changes were completed, but not always. The UI is unable to contact the coprocessor and trying to reconnect to PhotonVision on another device also fails. The non response does not persist through power cycles.

To Reproduce Steps to reproduce the behavior:

  1. Flash the micro sd card with orange pi image version 2024.3.1
  2. Connect the camera to the device.
  3. Connect power to Orange Pi.
  4. Select the camera from the dropdown.
  5. Change the pipeline to Aruco.
  6. Change the resolution to 1600x1200@50fps.
  7. Watch it hang.

Logs Log before reflash. Log after clean image.

Platform:

Additional context PhotonVision would also crash when trying to calibrate the camera. It wasn't an instant crash triggered by something immediate like the resolution change in the Aruco pipeline, PhotonVision would just hang randomly throughout the process. The calibration process was also generally stuttery, with the program being non responsive temporarily and then running smoothly for a few seconds. We were using auto exposure because the camera wasn't responding to the manual exposure adjustments properly. PhotonVision seemed to just be generally unstable with changes related to the camera. The changes that were successful often had long delays between the action requested and the action completing.

Juniormunk commented 1 month ago

We need someone to test and see if this bug was fixed I some of the latest updates