CI: test_nxw_timescan often fails at stopping the scan
https://gitlab.esrf.fr/bliss/bliss/-/jobs/932969
Traceback (most recent call last):
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/common/cleanup.py", line 266, in capture
yield
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/scan.py", line 390, in _run
self._gwait(stop_tasks, masked_kill_nb=1)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/scan.py", line 309, in _gwait
gevent.joinall(greenlets, raise_error=True)
File "src/gevent/greenlet.py", line 1065, in gevent._gevent_cgreenlet.joinall
File "src/gevent/greenlet.py", line 1081, in gevent._gevent_cgreenlet.joinall
File "src/gevent/greenlet.py", line 373, in gevent._gevent_cgreenlet.Greenlet._raise_exception
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/gevent/_compat.py", line 49, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/chain.py", line 996, in stop
preset_tasks.append(gevent.spawn(i.stop))
File "/opt/conda/envs/default_env/lib/python3.9/contextlib.py", line 126, in __exit__
next(self.gen)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/common/cleanup.py", line 290, in capture_exceptions
raise value
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/common/cleanup.py", line 266, in capture
yield
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/chain.py", line 985, in stop
self.wait_all_devices()
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/chain.py", line 948, in wait_all_devices
acq_obj_iter.wait_slaves()
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/chain.py", line 653, in wait_slaves
slave_tasks.extend(task for _, task in self.__triggers)
File "/opt/conda/envs/default_env/lib/python3.9/contextlib.py", line 126, in __exit__
next(self.gen)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/chain.py", line 71, in join_tasks
gevent.joinall(greenlets, raise_error=True)
File "src/gevent/greenlet.py", line 1065, in gevent._gevent_cgreenlet.joinall
File "src/gevent/greenlet.py", line 1081, in gevent._gevent_cgreenlet.joinall
File "src/gevent/greenlet.py", line 373, in gevent._gevent_cgreenlet.Greenlet._raise_exception
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/gevent/_compat.py", line 49, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/chain.py", line 623, in acq_trigger
return self.trigger()
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/acquisition/lima.py", line 501, in trigger
self.device.startAcq()
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/controllers/lima/lima_base.py", line 927, in startAcq
self._proxy.startAcq()
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/common/tango.py", line 150, in logging_call
ret = tango_func(*args)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/tango/device_proxy.py", line 279, in f
return dp.command_inout(name, *args, **kwds)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/tango/green.py", line 195, in greener
return executor.run(fn, args, kwargs, wait=wait, timeout=timeout)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/tango/green.py", line 114, in run
return self.access(accessor, timeout=timeout)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/tango/gevent_executor.py", line 155, in access
return accessor.get(timeout=timeout)
File "src/gevent/event.py", line 329, in gevent._gevent_cevent.AsyncResult.get
File "src/gevent/event.py", line 359, in gevent._gevent_cevent.AsyncResult.get
File "src/gevent/event.py", line 347, in gevent._gevent_cevent.AsyncResult.get
File "src/gevent/event.py", line 327, in gevent._gevent_cevent.AsyncResult._raise_exception
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/gevent/_compat.py", line 49, in reraise
raise value.with_traceback(tb)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/tango/gevent_executor.py", line 68, in wrapper
return func(*args, **kwargs)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/tango/connection.py", line 108, in __Connection__command_inout
r = Connection.command_inout_raw(self, name, *args, **kwds)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/tango/connection.py", line 137, in __Connection__command_inout_raw
return self.__command_inout(cmd_name, param)
PyTango.DevFailed: DevFailed[
DevError[
desc = limacore.Exception: Control: startAcq(/opt/conda/conda-bld/lima-core_1698935558687/work/control/src/CtControl.cpp, 638): Error: Try to restart before detector is ready. HW status is <acq=AcqRunning, det=Readout>
origin = Traceback (most recent call last):
File "/opt/conda/envs/bliss_lima_simulator/lib/python3.9/site-packages/Lima/Core/Debug.py", line 64, in real_fn
return new_fn(*arg, **kw)
File "/opt/conda/envs/bliss_lima_simulator/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 1862, in startAcq
self.__control.startAcq()
limacore.Exception: Control: startAcq(/opt/conda/conda-bld/lima-core_1698935558687/work/control/src/CtControl.cpp, 638): Error: Try to restart before detector is ready. HW status is <acq=AcqRunning, det=Readout>
reason = PyDs_PythonError
severity = ERR]
DevError[
desc = Failed to execute command_inout on device id00/limaccds/simulator1, command startAcq
origin = Connection::command_inout()
reason = API_CommandFailed
severity = ERR]
]
Edited by Wout De Nolf