════════════════════════════════════════════════════════════ DEVICE ════════════════════════════════════════════════════════════
INFO 20:16:38.943 │ DEVICE
INFO 20:16:38.944 │ [IS_ON_PHONE_CLOUD] False
INFO 20:16:38.945 │ [AdbBinary] D:\Program Files\AzurLaneAutoScript\toolkit\Lib\site-packages\adbutils\binaries\adb.exe
INFO 20:16:38.946 │ [AdbClient] AdbClient(127.0.0.1, 5037)
INFO 20:16:38.947 │ <<< DETECT DEVICE >>>
INFO 20:16:38.948 │ Here are the available devices, copy to Alas.Emulator.Serial to use it or set
Alas.Emulator.Serial="auto"
ERROR 20:16:38.950 │ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
╭───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────╮
│ │
│ D:\Program Files\AzurLaneAutoScript\module\device\connection.py:43 in retry_wrapper │
│ │
│ 41 │ │ │ │ │ time.sleep(retry_sleep(_)) │
│ 42 │ │ │ │ │ init() │
│ ❱ 43 │ │ │ │ return func(self, *args, **kwargs) │
│ 44 │ │ │ # Can't handle │
│ 45 │ │ │ except RequestHumanTakeover: │
│ │
│ ╭─────────────────────────────────────── locals ────────────────────────────────────────╮ │
│ │ _ = 0 │ │
│ │ args = () │ │
│ │ e = UnicodeDecodeError('utf-8', b'\xff\x00\x00\x00', 0, 1, 'invalid start byte') │ │
│ │ func = <function Connection.list_device at 0x0000019E2B776288> │ │
│ │ init = None │ │
│ │ kwargs = {} │ │
│ │ self = <module.device.device.Device object at 0x0000019E6D1D4348> │ │
│ ╰───────────────────────────────────────────────────────────────────────────────────────╯ │
│ D:\Program Files\AzurLaneAutoScript\module\device\connection.py:1016 in list_device │
│ │
│ 1014 │ │ │ with self.adb_client._connect() as c: │
│ 1015 │ │ │ │ c.send_command("host:devices") │
│ ❱ 1016 │ │ │ │ c.check_okay() │
│ 1017 │ │ │ │ output = c.read_string_block() │
│ 1018 │ │ │ │ for line in output.splitlines(): │
│ │
│ ╭──────────────────────────────── locals ────────────────────────────────╮ │
│ │ c = <adbutils._AdbStreamConnection object at 0x0000019E2B881088> │ │
│ │ devices = [] │ │
│ │ self = <module.device.device.Device object at 0x0000019E6D1D4348> │ │
│ ╰────────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\Program Files\AzurLaneAutoScript\toolkit\lib\site-packages\adbutils\__init__.py:166 in check_okay │
│ │
│ 164 │ │
│ 165 │ def check_okay(self): │
│ ❱ 166 │ │ data = self.read_string(4) │
│ 167 │ │ if data == _FAIL: │
│ 168 │ │ │ raise AdbError(self.read_string_block()) │
│ │
│ ╭────────────────────────────── locals ───────────────────────────────╮ │
│ │ self = <adbutils._AdbStreamConnection object at 0x0000019E2B881088> │ │
│ ╰─────────────────────────────────────────────────────────────────────╯ │
│ │
│ D:\Program Files\AzurLaneAutoScript\toolkit\lib\site-packages\adbutils\__init__.py:142 in read_string │
│ │
│ 140 │ │
│ 141 │ def read_string(self, n: int) -> str: │
│ ❱ 142 │ │ data = self.read(n).decode() │
│ 143 │ │ return data │
│ 144 │
│ │
│ ╭────────────────────────────── locals ───────────────────────────────╮ │
│ │ n = 4 │ │
│ │ self = <adbutils._AdbStreamConnection object at 0x0000019E2B881088> │ │
│ ╰─────────────────────────────────────────────────────────────────────╯ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
在提问之前...
描述你的问题
之前均正常使用,今天启动时突然报错UnicodeDecodeError,重装后仍报错。
如何复现
预期行为
No response
相关 Logs
截图
还有别的吗?
No response