BCDA-APS / queueUI

PyQt5 User Interface for Bluesky Queueserver
Other
2 stars 0 forks source link

Application crashed when open environment button is pressed whilst environment is already present #15

Closed olliviergassant closed 2 months ago

olliviergassant commented 3 months ago

The queueUI crashes and aborts core when the the "open environment" button is pressed while the 'worker_environment_exists': True.

The queueUI crashes and aborts core when the the "close environment" button is pressed while the 'worker_environment_exists': False.


Settings are saved in: /home/beams/BCDA1/.config/BCDA-APS/queueUI.ini
Application started ...
Traceback (most recent call last):
  File "/home/beams0/BCDA1/queueUI/queueUI/mainwindow.py", line 44, in openRunEngine
    self.RM.environment_open()
  File "/home/beams/BCDA1/.conda/envs/queueUI/lib/python3.12/site-packages/bluesky_queueserver_api/api_threads.py", line 411, in environment_open
    return self.send_request(method="environment_open", params=request_params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beams/BCDA1/.conda/envs/queueUI/lib/python3.12/site-packages/bluesky_queueserver_api/comm_threads.py", line 52, in send_request
    self._check_response(request={"method": method, "params": params}, response=response)
  File "/home/beams/BCDA1/.conda/envs/queueUI/lib/python3.12/site-packages/bluesky_queueserver_api/comm_base.py", line 173, in _check_response
    raise self.RequestFailedError(request, response)
bluesky_queueserver_api.comm_base.RequestFailedError: Request failed: RE Worker environment already exists.
Aborted (core dumped)
rodolakis commented 3 months ago

To quote a big chunck of code, use triple "```". You can even specify the language, e.g. bash, python..., like this:

image