-
Notifications
You must be signed in to change notification settings - Fork 24
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
frontend/node-red-dashboard: When an invalid white balance value is set, the imager process crashes after reboot #166
Comments
Thanks for reporting this problem! ReproductionI have also encountered this problem in the past - the only way I could restore the PlanktoScope software to a working state was to repair or delete the hardware.json file. AnalysisI believe the root cause of this problem is that the software does not reject invalid white balance values, but instead writes them to the hardware.json file; then, after the next boot of the PlanktoScope, it tries to use those files to update the camera's white balance and then fails. ImpactI experienced this bug while running a PlanktoScope training workshop where I let participants play around with the Node-RED dashboard on their own; I didn't realize there was a problem until the subsequent day, when I found that the PlanktoScope had stopped working even though it had worked on the previous day. I was not able to troubleshoot the cause of this problem until after the workshop. I also received a report of the same problem from someone I gave a PlanktoScope to afterwards, even though I had previously told him about my experience with the white balance values. He was able to figure out the cause of the problem on his own - he reported that he might have accidentally set one of the white balance values to Based on the fact that three people have independently encountered the same problem in the past six months, I am assigning this issue to to high priority, so I will try to include a fix in the next software release (scheduled for September). Proposed FixI believe the way to fix this bug will be to add input validation to the Python backend to ensure that it rejects invalid white balance values, and to add input validation to the Node-RED dashboard to prevent the user from inputting invalid white balance values. |
On the frontend side, it looks like the Node-RED dashboard uses text input nodes in "number" mode for white balance values; such nodes don't have a way to set max & min limits. The alternatives are:
|
Describe the bug
When an invalid value in the white balance is set, the imager process is crashing. This prevents the Planktoscope to set up correctly during the boot process.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Not allowed to set invalid value + imager not crashing when invalid values are used (reset them to some defaults ?)
The text was updated successfully, but these errors were encountered: