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

shutter client gets stuck in loop #237

Open
cromes opened this issue Jun 14, 2018 · 8 comments
Open

shutter client gets stuck in loop #237

cromes opened this issue Jun 14, 2018 · 8 comments
Labels

Comments

@cromes
Copy link
Contributor

cromes commented Jun 14, 2018

shutter client switches shutter on and off repeatedly when it should just be open #225

@fanmingyu212
Copy link
Contributor

Is this problem associated with #225? Is the shutter client/server working properly if you pull from https://github.com/CampbellGroup/common/tree/mf/pre_225_shutter_change branch?

@aransfor
Copy link
Contributor

@fanmingyu212 this is caused by #225 when you use signals and slots its easy to get loops going where the client updates thene the server replys and continues, this is actually becoming a big problem for us since our oven and loading beams us the switch

@aransfor aransfor added the bug label Jun 18, 2018
@fanmingyu212
Copy link
Contributor

@aransfor @cromes do you get a specific error message or the shutter just enters a on/off loop? Does this happen on all of your shutters or some of them? Do you use inverted in the shutter client configuration? If you have more detailed information it could help.

@aransfor
Copy link
Contributor

This happens with at least two channels (we have two channels in use) both are inverted however I dont think this matters, I have seen this happen before with the wavemeter and what can happen is that the server will notify all listeners of a change including the listener that made the change, if you click the button too quickly then you get stuck in this loop see the following commit I made to fix this on the wavemeter to see if it helps

9728d36

@fanmingyu212
Copy link
Contributor

@fanmingyu212
Copy link
Contributor

@aransfor I could not reproduce this bug on our computer. I tried to click as fast as I can but the shutter behaves normally. Is this issue also hard to reproduce on your side?

@fanmingyu212
Copy link
Contributor

@aransfor @cromes could you try the code in https://github.com/CampbellGroup/common/tree/mf/shutter_switch_fix branch and see if it fixed the issue for you?

@aransfor
Copy link
Contributor

I can at some point in the not so near future, it's not a big deal right now as we're working around it

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

No branches or pull requests

3 participants