artiq_coremgmt log
hangs if we set the log level to lower than INFO
. For example,
artiq_coremgmt log clear
artiq_coremgmt log set_level DEBUG
artiq_coremgmt log # log works at this point.
# run a simple experiment
artiq_coremgmt log # the terminal hangs forever
The simple experiment we used to test the above code is
from artiq.experiment import *
class Test(EnvExperiment):
def build(self):
self.setattr_device("core")
@kernel
def run(self):
self.core.reset()
If we set the log level to INFO
, both artiq_coremgmt log
commands finish as intended. The second command produces the following outputs:
[ 614.377945s] INFO(runtime::mgmt): new connection from 192.168.1.83:53149
[ 614.385615s] INFO(runtime::mgmt): changing log level to INFO
[ 618.761149s] INFO(runtime::mgmt): new connection from 192.168.1.83:53150
[ 626.513949s] INFO(runtime::session): new connection from 192.168.1.83:53154
[ 626.559975s] INFO(runtime::kern_hwreq): resetting RTIO
[ 626.595632s] INFO(runtime::session): no connection, starting idle kernel
[ 626.601490s] INFO(runtime::session): no idle kernel found
[ 629.808044s] INFO(runtime::mgmt): new connection from 192.168.1.83:53155
If we don't run the above experiment, both artiq_coremgmt log
commands finish as well.
This is tested on the ucsb2
variant (Kasli 2.0), with Windows 10, artiq latest master (3f812c4c), and the same version for the firmware and gateware.