What happened / 发生了什么
使用自部署 astrbot-t2i-service 时,bot 发出的图片完全空白。尝试排查后发现 AstrBot 还会在文转图时完全卡死,所有消息停止处理。
Reproduce / 如何复现?
- Windows 部署 AstrBot + 自部署 astrbot-t2i-service
- 启用文转图功能
- astrbot/core/utils/t2i/template/shiki_runtime.iife.js 存在(约 1.2MB)
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
astrbot v4.24.2 win
OS
Windows
Logs / 报错日志
日志
t2i-service 日志(图片空白时)
2026-05-05 13:05:21.319 | INFO | src.render:html2pic:236 - Rendered D:\astrbot-t2i-service\data\rendered_1777957512_dade7061.html to data\rendered_1777957512_f0e349f3.jpeg
INFO: - "POST /text2img/generate HTTP/1.0" 200 OK
INFO:- "GET /text2img/data/rendered_1777957512_f0e349f3.jpeg HTTP/1.0" 200 OK
请求均返回 200,服务端流程正常,但图片内容为空白。
AstrBot 日志(卡死时)
[13:04:49.447] [Core] [DBUG] ready to request llm provider
[13:05:12.085] [Core] [DBUG] Agent state transition: RUNNING -> DONE
[13:05:21.340] [Core] [WARN] 文本转图片耗时超过了 3 秒
[13:05:21.340] [Core] [INFO] Prepare to send - 凌: [图片]
[13:05:22.371] [Core] [DBUG] pipeline 执行完毕
t2i-service 日志(wait_for_selector 超时,file:// 协议阻断 CDN)
2026-05-05 13:19:06.074 | DEBUG | src.render:html2pic:234 - html2pic: wait_for_selector skipped:
Page.wait_for_selector: Timeout 10000ms exceeded.
Call log:
- waiting for locator("#content:not(:empty)") to be visible
2026-05-05 13:19:06.135 | INFO | src.render:html2pic:249 - Rendered ... to data\rendered_1777958333_f11f21d3.jpeg
INFO: "POST /text2img/generate HTTP/1.0" 200 OK
INFO: "GET /text2img/data/rendered_1777958333_f11f21d3.jpeg HTTP/1.0" 200 OK
#content 始终为空,确认 marked.js 未能加载。
HTML 文件末尾(截断确认)
ul li:before {
content: "•";
margin-right: 4px;
color: #3eaf7c;
}
@media (max-width: 720px) {
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
}
</style>
文件在 </style> 处截断,<body> 及之后内容完全丢失,确认为请求体超出 uvicorn 默认大小限制导致数据截断。
Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct
What happened / 发生了什么
使用自部署 astrbot-t2i-service 时,bot 发出的图片完全空白。尝试排查后发现 AstrBot 还会在文转图时完全卡死,所有消息停止处理。
Reproduce / 如何复现?
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
astrbot v4.24.2 win
OS
Windows
Logs / 报错日志
日志
t2i-service 日志(图片空白时)
请求均返回 200,服务端流程正常,但图片内容为空白。
AstrBot 日志(卡死时)
t2i-service 日志(wait_for_selector 超时,file:// 协议阻断 CDN)
#content始终为空,确认marked.js未能加载。HTML 文件末尾(截断确认)
文件在
</style>处截断,<body>及之后内容完全丢失,确认为请求体超出 uvicorn 默认大小限制导致数据截断。Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct