prepareAcq fails with "ImageStatusCallback still active after 2 sec"
I am afraid this is a follow-up of #106 (closed).
See bliss/bliss#2835 (closed) for the preliminary discussion.
It's basically a race condition that happens when running a basic acquisition in a loop", thanks to @denolf for the reduced repro:
for i in range(32):
cam.proxy.prepareAcq()
cam.proxy.startAcq()
gevent.sleep(expo)
with gevent.Timeout(2.0):
while (
cam.proxy.acq_status.lower() != "ready"
or cam.proxy.last_image_ready == -1
):
gevent.sleep(0.001)
Reproduced on bcu-ci
within Docker, but not locally nor on lid00limace
within Docker. So tricky to reproduce.