photonvision icon indicating copy to clipboard operation
photonvision copied to clipboard

Robustly remember previous pipeline, resolution, etc. between system shutdowns

Open mdurrani808 opened this issue 3 years ago • 11 comments

Based on #271 and reports on CD, pipeline and resolution could change between start up. More digging to be done

mdurrani808 avatar Oct 30 '22 04:10 mdurrani808

Tentative thoughts...

  1. Crank up the priority/frequency of the save-to-disk
  2. Add some form of a watchdog mechanism to check whether things are saved to disk, or at least flag when a save hasn't happened in a while?
  3. Add a UI thingy which tells the user how long its been since last save. This won't actually fix anything, but just make it easier for end users to make reproducible test cases where they change settings, but don't see a save occur.

gerth2 avatar Oct 31 '22 12:10 gerth2

One thing that might be nice, on initialization, explicitly log what resolution, pipeline, etc. are being loaded (and make sure these are forcefully loaded on the back end as well just to be sure. Right now I only see explicit setting of exposure.

mdurrani808 avatar Oct 31 '22 21:10 mdurrani808

@mcm001 is this resolved by SQL changes?

srimanachanta avatar Dec 01 '23 04:12 srimanachanta

We've been having this problem lately. On the latest version. No matter what we change, the settings always revert to the last state just before the problem started happening. It's just a few settings and it's manageable but it's annoying. ;)

clrozeboom avatar Apr 06 '24 00:04 clrozeboom

Do you have logs from a boot of Photon for which it happened?

mcm001 avatar Apr 06 '24 00:04 mcm001

I'll get some. Is there a way to easily reset the database? I'm fine with Linux commands if need be.

clrozeboom avatar Apr 06 '24 10:04 clrozeboom

This is the most surefire way as of rn:

sudo service photonvision stop
sudo rm -rf /opt/photonvision/photonvision_config
sudo service photonvision start```

mcm001 avatar Apr 06 '24 13:04 mcm001

photonvision-journalctl-4-5-24.txt Here's our log file from the last 2 days. Thanks

5010TigerDynasty avatar Apr 06 '24 14:04 5010TigerDynasty

FYI, we ended up putting in a spare server which is now working fine. Still have the old one.

clrozeboom avatar Apr 06 '24 19:04 clrozeboom

No matter what we change, the settings always revert to the last state just before the problem started happening.

Could you elaborate a bit more on what that means? I'm trying to figure out what I should be ctrl-f-ing for in the log you sent

mcm001 avatar Apr 06 '24 19:04 mcm001

Ok, for example the 'Top Camera' reverts from using 3-D to using 2-D. That's the most annoying thing that was happening because we wouldn't be able to get pose from it at the beginning of a match.

clrozeboom avatar Apr 06 '24 23:04 clrozeboom