BM16: mca stuck the scan
For information, at BM16, @naudet have noticed that the non-mosca MCA was able to stuck the scan.
In this case the CTRL-C is not working anymore.
py-spy was able to retirve useful information
# Install py-spy
ssh blissadm#id00ctrl
. blissenv
pip install py-spy
which py-spy
# /users/blissadm/conda/miniconda/envs/bliss_dev/bin/py-spy
# get the BLISS PID
ps aux | grep bliss | grep monocryo
# connect as yourself
# because py-spy need to have rights to read process memory
ssh me@id00ctrl
sudo /users/blissadm/conda/miniconda/envs/bliss_dev/bin/py-spy dump --nonblocking --pid 666
Here is what was the result
Python v3.9.18 (/opt/bliss/conda/miniconda/envs/bliss_dev/bin/python3.9)
Thread 0x7F62DE863740 (active+gil): "MainThread"
start_acquisition (bliss/controllers/mca/xglab_dante.py:694)
start (bliss/scanning/acquisition/mca.py:206)
acq_start (bliss/scanning/chain.py:759)
acq_start (bliss/scanning/chain.py:109)
Thread 0x7F6253700700 (active)
acquire_with_timeout (gevent/_threading.py:36)
wait (gevent/_threading.py:86)
get (gevent/_threading.py:207)
run (gevent/threadpool.py:195)
Thread 0x7F61ACD3B700 (idle): "asyncio_0"
wait (threading.py:312)
acquire (threading.py:450)
get (queue.py:294)
_worker (concurrent/futures/thread.py:81)
run (threading.py:917)
_bootstrap_inner (threading.py:980)
_bootstrap (threading.py:937)
Thread 0x7F6252EFF700 (idle): "Thread-2"
wait (threading.py:316)
wait (threading.py:581)
run (tqdm/_monitor.py:60)
_bootstrap_inner (threading.py:980)
_bootstrap (threading.py:937)
Thread 0x7F61AF53C700 (active)
acquire_with_timeout (gevent/_threading.py:36)
wait (gevent/_threading.py:86)
get (gevent/_threading.py:207)
run (gevent/threadpool.py:195)
Thread 0x7F61A91D9700 (active)
We can guess that BLISS is stuck inside xglab_dante
, which is a very useful information.
Edited by Valentin Valls