Closed crschardt closed 2 months ago
Why installing v4l-utils fixes things is beyond befuddling to me. Would be good to get someone else to reproduce or find the root cause, but it's easy to install for us yeah
I'm starting to question that conclusion. I'm doing more testing.
Is it possible that there the streams sometimes don't get released properly when photonvision shuts down?
I think possible. Perhaps a longer shutdown delay in systemd is needed?
It's turning out to be very intermittent. I can sometimes get it to happen a couple times in a row, but then I'm not able to reproduce it. I'll keep monitoring it to see if I can find some consistent way to reproduce.
This hasn't come up recently, so closing.
Describe the bug After doing an offline update for photonvision, the system restarts, but camera streams fail to load. The log shows repeating errors like
CS: ERROR: ioctl VIDIOC_S_FMT failed at UsbCameraImpl.cpp:976: Device or resource busy (UsbUtil.cpp:156)
. Neither hard refreshing the browser window nor restarting the photonvision service fix the problem. The only way to recover is by restarting the entire device.Platform:
Additional context ~During debugging, I installed v4l-utils and the problem went away. I removed v4l-utils and it came back. I think we should add v4l-utils to the install script for Ubuntu installs.~ <- this was a red herring.