MaaAssistantArknights / maa-cli

MAA命令行工具 | A simple CLI for MAA.
GNU Affero General Public License v3.0
40 stars 8 forks source link

运行`maa startup Official`时出现Schema error #288

Closed Nemowang2003 closed 4 months ago

Nemowang2003 commented 4 months ago

在使用maa-cli运行命令maa startup Official时出现了大量Schema error的报错,但从模拟器的显示界面来看,startup任务应该是顺利完成了。

我仅有一个配置文件如下:

# .config/maa/profiles/default.toml
[connection]
address = "localhost:5555"

[instance_options]
touch_mode = "MAATouch"

求助该如何修复问题,或者还需要什么更多信息。

我的版本:

maa-cli v0.4.7
MaaCore v5.4.0
我使用`maa startup -vvv Official`后stderr的输出如下(删减版): ``` [2024-07-11 05:56:29 DEBUG] Found resource directory: /home/nemo/.local/share/maa/resource [2024-07-11 05:56:29 DEBUG] Found hot update resource directory: /home/nemo/.local/share/maa/MaaResource [2024-07-11 05:56:29 DEBUG] Detected client type: Official [2024-07-11 05:56:29 DEBUG] Loading MaaCore from: /home/nemo/.local/share/maa/lib [2024-07-11 05:56:29 DEBUG] Setting user directory: /home/nemo/.local/state/maa [2024-07-11 05:56:29 DEBUG] Loading resource from /home/nemo/.local/share/maa/resource [2024-07-11 05:56:30 DEBUG] Loading resource from /home/nemo/.local/share/maa/MaaResource/resource [2024-07-11 05:56:30 DEBUG] Loading resource from /home/nemo/.local/share/maa/MaaResource/cache/resource [2024-07-11 05:56:30 DEBUG] Setting touch mode to maatouch [2024-07-11 05:56:30 DEBUG] Adding task [StartUp] with params: { "client_type": "Official", "start_game_enabled": true } [2024-07-11 05:56:30 DEBUG] Connecting to localhost:5555 with config CompatPOSIXShell via adb [2024-07-11 05:56:30 DEBUG] Got UUID: f8bde0cc0b81257 [2024-07-11 05:56:30 DEBUG] Got Resolution: 1280 × 720 [2024-07-11 05:56:30 INFO ] Connected [2024-07-11 05:56:38 INFO ] FastestWayToScreencap RawWithGzip 332 [2024-07-11 05:56:38 INFO ] StartUp Start [2024-07-11 05:56:39 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "DoNothing", "algorithm": "JustReturn", "exec_times": 1, "max_times": 2147483647, "result": null, "task": "StartUpBegin" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:56:40 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "ClickSelf", "algorithm": "MatchTemplate", "exec_times": 1, "max_times": 2147483647, "result": { "score": 0.977228 }, "task": "GameStart" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUpBegin", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } Schema error: Trying to register schema with name Abs (domain: version: 1) from file /home/runner/work/MaaDeps/MaaDeps/vcpkg/buildtrees/onnx/src/v1.16.0-55accfed2d.clean/onnx/defs/math/old.cc line 1747, but it is already registered from file /home/runner/work/MaaDeps/MaaDeps/vcpkg/buildtrees/onnx/src/v1.16.0-55accfed2d.clean/onnx/defs/math/old.cc line 1747 【类似信息又出现了500多行,分别为Add And Argmax Argmin等】 [2024-07-11 05:56:50 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "ClickSelf", "algorithm": "MatchTemplate", "exec_times": 1, "max_times": 2147483647, "result": { "score": 0.999619 }, "task": "StartToWakeUp" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@GameStart", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:56:57 DEBUG] ScreencapCost 305 (141 ~ 393) [2024-07-11 05:57:15 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "DoNothing", "algorithm": "MatchTemplate", "exec_times": 1, "max_times": 2147483647, "result": { "score": 0.99999 }, "task": "LoadingIcon" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@StartToWakeUp", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:16 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "DoNothing", "algorithm": "MatchTemplate", "exec_times": 2, "max_times": 2147483647, "result": { "score": 0.99999 }, "task": "LoadingIcon" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@StartToWakeUp@LoadingIcon", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:18 DEBUG] ScreencapCost 292 (141 ~ 466) [2024-07-11 05:57:18 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "DoNothing", "algorithm": "MatchTemplate", "exec_times": 3, "max_times": 2147483647, "result": { "score": 0.99999 }, "task": "LoadingIcon" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@StartToWakeUp@LoadingIcon", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:19 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "DoNothing", "algorithm": "MatchTemplate", "exec_times": 4, "max_times": 2147483647, "result": { "score": 0.99999 }, "task": "LoadingIcon" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@StartToWakeUp@LoadingIcon", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:21 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "DoNothing", "algorithm": "MatchTemplate", "exec_times": 1, "max_times": 3, "result": { "score": 0.994627 }, "task": "StartUp" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@StartToWakeUp@LoadingIcon", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:24 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "ClickSelf", "algorithm": "MatchTemplate", "exec_times": 1, "max_times": 2147483647, "result": { "score": 0.979317 }, "task": "CloseAnno" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:25 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "ClickRect", "algorithm": "OcrDetect", "exec_times": 1, "max_times": 2147483647, "result": { "score": 0.99974, "text": "今日配给" }, "task": "TodaysSupplies" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@CloseAnno", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:27 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "ClickSelf", "algorithm": "MatchTemplate", "exec_times": 2, "max_times": 2147483647, "result": { "score": 0.979317 }, "task": "CloseAnno" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@TodaysSupplies", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:28 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "DoNothing", "algorithm": "MatchTemplate", "exec_times": 2, "max_times": 3, "result": { "score": 0.994633 }, "task": "StartUp" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@CloseAnno", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:31 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "ClickSelf", "algorithm": "MatchTemplate", "exec_times": 3, "max_times": 2147483647, "result": { "score": 0.984205 }, "task": "CloseAnno" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:32 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "DoNothing", "algorithm": "MatchTemplate", "exec_times": 3, "max_times": 3, "result": { "score": 0.994633 }, "task": "StartUp" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@CloseAnno", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:37 DEBUG] ScreencapCost 331 (141 ~ 636) [2024-07-11 05:57:39 TRACE] UnknownSubTaskStart: { "class": "asst::ProcessTask", "details": { "action": "ClickSelf", "algorithm": "MatchTemplate", "exec_times": 4, "max_times": 2147483647, "result": { "score": 0.94131 }, "task": "CloseAnno" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257" } [2024-07-11 05:57:40 TRACE] UnknownSubTaskExtraInfo: { "class": "asst::ProcessTask", "details": { "exec_times": 3, "limit_type": "pre", "max_times": 3, "task": "StartUp" }, "first": [ "StartAtHome", "StartWithSanity", "StartUpBegin" ], "pre_task": "StartUp@CloseAnno", "subtask": "ProcessTask", "taskchain": "StartUp", "taskid": 1, "uuid": "f8bde0cc0b81257", "what": "ExceededLimit" } [2024-07-11 05:57:41 INFO ] StartUp Completed [2024-07-11 05:57:41 INFO ] AllTasksCompleted [2024-07-11 05:57:42 DEBUG] FailedToProcessMessage, code: 5, message: {} ```
wangl-cc commented 4 months ago

~这些 TRACE 一般只是开发用的,因为 MaaCore 发送了非常多的消息,这些消息对用户没有什么意义,所以没有解析。通常使用的时候不需要多个 v 来提高日志等级到 TRACE。日常使用,不带 v 或者单个使用就足够了。多个 v 通常只有在 debug 配置和开发的时候会用到。~

Schema error 是指 https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/9618 这样的吗?

Nemowang2003 commented 4 months ago

Schema error 是指 MaaAssistantArknights/MaaAssistantArknights#9618 这样的吗?

是的,很抱歉duplicate了😢