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

Stage controller misbehaves when it fails to open a device #301

Open
kangz12345 opened this issue Apr 29, 2024 · 0 comments
Open

Stage controller misbehaves when it fails to open a device #301

kangz12345 opened this issue Apr 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kangz12345
Copy link
Member

Describe the bug

When I click "Open" button and the server failed to open the device, then:

  1. The button becomes checked, while the text is still "Open"
  2. 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:

  1. The button becomes disabled, while the text is still "Open"
  2. 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:

  1. Open a server which raises an error when trying to open a target
  2. Open iquip and click Open button of the stage controller
@kangz12345 kangz12345 added the bug Something isn't working label Apr 29, 2024
@kangz12345 kangz12345 self-assigned this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant