Skip to content

运行脚本就卡死并且重启 #1433

Description

@ruixu020-hash

请确认您已完成以下几件事并勾选项目,未按要求勾选可能被认作无效反馈直接关闭

  • 正在使用最新的 OneDragon
  • 已搜索过 issue 中无人提出相似问题或无解决方案
  • 已为所有模型以及战斗脚本更新至最新版
  • 已经依照 官方文档常见问题排查 进行过问题自查
  • 运行时无任何帧率显示或其他覆盖层窗口遮盖游戏
  • 未认真阅读此处选项随意勾选
  • 未安装任何修改游戏UI和贴图的模组
  • 了解反馈时应携带日志和问题截图,且明白应该使用F11截图
  • 已经修改了此issue的标题为想要反馈的问题简述

代码版本

f28c956

问题类型

Bug

问题范围

一条龙日常

问题描述

运行脚本就立刻卡死并且重启系统。

游戏截图

没法截图。

运行日志

File "C:\jue\src\one_dragon\base\config\yaml_operator.py", line 63, in read_from_file
self.data = read_cache_or_load(self.file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\jue\src\one_dragon\base\config\yaml_operator.py", line 31, in read_cache_or_load
data = yaml.safe_load(file)
^^^^^^^^^^^^^^^^^^^^
File "C:\jue.venv\Lib\site-packages\yaml_init
.py", line 125, in safe_load
return load(stream, SafeLoader)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\jue.venv\Lib\site-packages\yaml_init
.py", line 79, in load
loader = Loader(stream)
^^^^^^^^^^^^^^
File "C:\jue.venv\Lib\site-packages\yaml\loader.py", line 34, in init
Reader.init(self, stream)
File "C:\jue.venv\Lib\site-packages\yaml\reader.py", line 85, in init
self.determine_encoding()
File "C:\jue.venv\Lib\site-packages\yaml\reader.py", line 135, in determine_encoding
self.update(1)
File "C:\jue.venv\Lib\site-packages\yaml\reader.py", line 169, in update
self.check_printable(data)
File "C:\jue.venv\Lib\site-packages\yaml\reader.py", line 143, in check_printable
raise ReaderError(self.name, position, ord(character),
yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed
in "C:\jue\config\01\one_dragon_app.yml", position 0
[21:00:35.558] [onnx_ocr_matcher.py 150] [INFO]: 正在加载OCR模型
[21:00:35.579] [git_service.py 91] [INFO]: .git 目录 C:\jue.git
[21:00:35.579] [cmd_utils.py 20] [INFO]: C:\jue.install\MinGit\cmd\git.exe config --global --get-all safe.directory
[21:00:35.606] [cmd_utils.py 51] [INFO]: C:/jue
[21:00:35.610] [git_service.py 176] [INFO]: 核对当前仓库
[21:00:35.610] [cmd_utils.py 20] [INFO]: C:\jue.install\MinGit\cmd\git.exe config --get remote.origin.url
[21:00:35.636] [cmd_utils.py 51] [INFO]: https://github.com/OneDragon-Anything/ZenlessZoneZero-OneDragon.git
[21:00:35.638] [git_service.py 187] [INFO]: 获取远程代码
[21:00:35.638] [git_service.py 159] [INFO]: 获取远程代码
[21:00:35.639] [cmd_utils.py 20] [INFO]: C:\jue.install\MinGit\cmd\git.exe remote set-branches origin *
[21:00:35.670] [cmd_utils.py 20] [INFO]: C:\jue.install\MinGit\cmd\git.exe fetch origin
[21:00:36.251] [git_service.py 159] [INFO]: 获取远程代码
[21:00:36.253] [cmd_utils.py 20] [INFO]: C:\jue.install\MinGit\cmd\git.exe remote set-branches origin *
[21:00:36.288] [cmd_utils.py 20] [INFO]: C:\jue.install\MinGit\cmd\git.exe fetch origin
[21:00:37.071] [onnx_ocr_matcher.py 182] [INFO]: 加载OCR模型完毕
[21:00:37.509] [git_service.py 296] [INFO]: 获取commit 第1页
[21:00:37.509] [cmd_utils.py 20] [INFO]: C:\jue.install\MinGit\cmd\git.exe log -1 --pretty=format:"%h #@# %an #@# %ai #@# %s" --date=short --skip=0
[21:00:37.545] [cmd_utils.py 51] [INFO]: f28c956 #@# DoctorReid #@# 2025-09-17 21:37:55 +0800 #@# fix: 随便观 - 饮茶仙 修复一条龙页面的单独运行 #1348
[21:00:37.602] [git_service.py 168] [INFO]: 获取远程代码成功
[21:00:37.603] [git_service.py 265] [INFO]: 检测当前代码是否最新
[21:00:37.603] [cmd_utils.py 20] [INFO]: C:\jue.install\MinGit\cmd\git.exe diff --name-only HEAD origin/main
[21:00:44.913] [ghproxy_service.py 52] [INFO]: 自动获取免费代理地址成功 https://ghfast.top
[21:00:48.276] [notice_card.py 127] [ERROR]: 加载banner图片失败: HTTPSConnectionPool(host='one-dragon.com', port=443): Read timed out. (read timeout=5)
[21:00:53.277] [notice_card.py 127] [ERROR]: 加载banner图片失败: HTTPSConnectionPool(host='one-dragon.com', port=443): Read timed out. (read timeout=5)

你的建议

不知道如何解决,想问问有没有解决方案

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions