Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vision Application Configuration - Application Set To Custom - Does Not Persist On Reboot #91

Open
Sn3akyP3t3 opened this issue Feb 5, 2019 · 6 comments
Labels
webdash Web dashboard

Comments

@Sn3akyP3t3
Copy link

image
After saving and rebooting I found I wasn't able to start my application from terminal because the camera was already in use. After a bit of troubleshooting I found another process was running and it was the last uploaded Python application via the Vision Application Configuration screen. The setting had been undesirably reverted after reboot.

I failed to allocate time to try to recreate this a 2nd time, but I'll be sure to do so tonight.

@PeterJohnson
Copy link
Member

I think this may have been fixed in 2019.2.1. Please try that version if you haven’t yet.

@Sn3akyP3t3
Copy link
Author

That is the version I'm currently on. I'll try again soon to confirm the behavior.

@PeterJohnson
Copy link
Member

PeterJohnson commented Feb 6, 2019

Oh. I reproduced it. The problem is that you can't really "set" custom. Custom is if the runCamera script has been edited remotely to remove the "TYPE" line. I'm not sure how to better document this. The initial state of that display in the webdash is based on reading the file, and the whole point of "custom" is to not write the file, because it's user-edited. Maybe I could change it to edit if it's being changed from a standard one.

@PeterJohnson PeterJohnson added the webdash Web dashboard label Feb 6, 2019
@Sn3akyP3t3
Copy link
Author

What would be the advised intermediate solution if someone did this and needs to recover?

I was thinking that upload an empty file and then make sure not to upload anything afterwards should nullify the problem until a fix can arrive.

I know my team will need this to persist. Our process has classes and multiple files so we can't use the uploader since it works only with single files. We will have to leverage cron to kick off the process on boot.

@PeterJohnson
Copy link
Member

PeterJohnson commented Feb 6, 2019

The webdash just shows what's in the TYPE comment of the runCamera script. If you edit the runCamera script, just remove the TYPE line, and the webdash will show that as "custom" and never edit the file (unless the type is changed on that screen from custom to something else)

@Sn3akyP3t3
Copy link
Author

K, that did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webdash Web dashboard
Projects
None yet
Development

No branches or pull requests

2 participants