Musst UnicodeDecodeError
On ID10, after a Ctrl+C, the Musst controller throws a UnicodeDecodeError
.
Neither calling musst_eh2.RESET
or power cycling the musst did fix the issue. But restarting the session did.
2023-07-07 15:17:03,269 eh2_exp exceptions ERROR : 07/07/2023 15:17:03
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/blissadm/local/bliss.git/bliss/controllers/musst.py", line 45, in exec_cmd
return self.putget(command_name)
@command_name: '?DBINFO *'
@self: <id10.id10musst.accumulation_musst object at 0x7f34c9100a60>
File "/home/blissadm/local/bliss.git/bliss/common/greenlet_utils/killmask.py", line 139, in wrapper
return method(*args, **kwargs)
@args: (<id10.id10musst.accumulation_musst object at 0x7f34c9100a60>, '?DBINFO *')
@kwargs: {}
@method: <function Musst.putget at 0x7f34c90c1c10>
File "/home/blissadm/local/bliss.git/bliss/controllers/musst.py", line 575, in putget
return answer.decode()
@ack: False
@answer: b'\x853\x88'
@msg: '?DBINFO *'
@self: <id10.id10musst.accumulation_musst object at 0x7f34c9100a60>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 0: invalid start byte
Apparently, it was independent of the musst command (?DBINFO *
, ?TMRCFG
).
2023-07-07 15:09:33,133 eh2_exp user_input INFO : xpcs_dscan(ys,-0.6,0.6,30,30000,35e-6)
2023-07-07 15:09:36,971 eh2_exp exceptions ERROR : 07/07/2023 15:09:36
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/visitor/ihsc1789/id10/20230707/SCRIPTS/ihsc1789_scripts.py", line 43, in xpcs_dscan
takedata(exp_time,nframes)
@atn: 0
@exp_time: 3.5e-05
@intervals1: 30
@motor1: <bliss.common.axis.Axis object at 0x7f34c9303dc0>
@motor1_pos: array([-1.76, -1.72, -1.68, -1.64, -1.6 , -1.56, -1.52, -1.48, -1.44,
-1.4 , -1.36, -1.32, -1.28, -1.24, -1.2 , -1.16, -1.12, -1.08,
-1.04, -1. , -0.96, -0.92, -0.88, -0.84, -0.8 , -0.76, -0.72,
-0.68, -0.64, -0.6 , -0.56])
@motor1_pos0: -1.16
@nframes: 30000
@start1: -0.6
@stop1: 0.6
@zp: -1.7599999999999998
File "/data/visitor/ihsc1789/id10/20230707/SCRIPTS/ihsc1789_scripts.py", line 27, in takedata
ftimescan(exp_t,npoints)
@exp_t: 3.5e-05
@npoints: 30000
File "/home/blissadm/local/fscan.git/fscan/ftimescan.py", line 275, in __call__
self.run_with_pars(pars)
@acq_time: 3.5e-05
@kwargs: {}
@npoints: 30000
@pars: {'acq_time': 3.5e-05, 'npoints': 30000, 'period': 0}
@period: 0
@self: <fscan.ftimescan.FTimeScanCustomRunner object at 0x7f34852e47c0>
File "/home/blissadm/local/fscan.git/fscan/fscanrunner.py", line 77, in run_with_pars
self.run(scan_info)
@pars: {'acq_time': 3.5e-05, 'npoints': 30000, 'period': 0}
@scan_info: None
@self: <fscan.ftimescan.FTimeScanCustomRunner object at 0x7f34852e47c0>
@user_pars: {'acq_time': 3.5e-05, 'npoints': 30000, 'period': 0}
File "/home/blissadm/local/fscan.git/fscan/fscanrunner.py", line 69, in run
self.prepare(scan_info)
@scan_info: None
@self: <fscan.ftimescan.FTimeScanCustomRunner object at 0x7f34852e47c0>
File "/home/blissadm/local/fscan.git/fscan/fscanrunner.py", line 61, in prepare
self._master.setup_acq_chain(self._chain)
@scan_info: None
@self: <fscan.ftimescan.FTimeScanCustomRunner object at 0x7f34852e47c0>
File "/home/blissadm/local/fscan.git/fscan/ftimescan.py", line 182, in setup_acq_chain
musstprog = MusstProgFTimeScan(self.musst)
@chain: <bliss.scanning.chain.AcquisitionChain object at 0x7f3416f7f5b0>
@pars: <fscan.fscantools.FScanParamStruct object at 0x7f3423bfab80>
@self: <fscan.ftimescan.FTimeScanMaster object at 0x7f34852e4460>
File "/home/blissadm/local/fscan.git/fscan/mussttools.py", line 451, in __init__
(self.__initial_clock, clock_factor) = self.musst.TMRCFG
@counters: None
@motors: None
@musst: <id10.id10musst.accumulation_musst object at 0x7f34c9100a60>
@self: <fscan.ftimescan.MusstProgFTimeScan object at 0x7f3423b8abe0>
File "/home/blissadm/local/bliss.git/bliss/controllers/musst.py", line 865, in TMRCFG
self.__frequency_conversion.get(self.putget("?TMRCFG"))
@self: <id10.id10musst.accumulation_musst object at 0x7f34c9100a60>
File "/home/blissadm/local/bliss.git/bliss/common/greenlet_utils/killmask.py", line 139, in wrapper
return method(*args, **kwargs)
@args: (<id10.id10musst.accumulation_musst object at 0x7f34c9100a60>, '?TMRCFG')
@kwargs: {}
@method: <function Musst.putget at 0x7f34c90c1c10>
File "/home/blissadm/local/bliss.git/bliss/controllers/musst.py", line 575, in putget
return answer.decode()
@ack: False
@answer: b'X3H1X3\xac1X3\xbcXX3 YX30\x80X3\x94\x80X3\xa4\xa7X3\x08\xa8X3\x18\xcfX3|\xcfX3\x8c\xf6X3\xf0\xf6X3\x00\x1eY3d\x1eY3tEY3\xd8EY3\xe8lY3LmY3\\\x94Y3\xc0\x94Y3\xd0\xbbY34\xbcY3D\xe3Y3\xa8\xe3Y3\xb8'
@msg: '?TMRCFG'
@self: <id10.id10musst.accumulation_musst object at 0x7f34c9100a60>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 6: invalid start byte
cc: @chushkin