When I click "Open" button and the server failed to open the device, then:
The button becomes checked, while the text is still "Open"
The log shows that it continuously trying to call a client method (probably the periodic position read) and it fails, reporting e.g.:
2024-04-29 12:15:26: [iquip.apps.stage] Failed to get client H_X.
2024-04-29 12:15:26: [iquip.apps.stage] Stage H_X reported an error.
KeyError: 'There is no client H_X'
Then, if I click the button again, then:
The button becomes disabled, while the text is still "Open"
The log shows that it tries to close the target, which was never open:
2024-04-29 12:15:27: [iquip.apps.stage] Failed to close target: RPC client H_X does not exist.
Expected behavior
If it fails to open a target, it should log the error and the button should not be checked.
Also, no method call should be followed (e.g., the periodic position read).
To Reproduce
Steps to reproduce the behavior:
Open a server which raises an error when trying to open a target
Open iquip and click Open button of the stage controller
Describe the bug
When I click "Open" button and the server failed to open the device, then:
Then, if I click the button again, then:
Expected behavior
If it fails to open a target, it should log the error and the button should not be checked. Also, no method call should be followed (e.g., the periodic position read).
To Reproduce
Steps to reproduce the behavior: