AI 功能手册 · Chapter 15
故障排除
| 消息 / 症状 | 原因 | 处理方法 |
|---|---|---|
| AI features are available only in studio mode. | 不在 Studio 模式(设备运转画面等) | 回到 Studio 画面后重试 |
| AI features cannot be used while the machine is running. | 序列、手动动作、初始化、点胶或对位正在运行 | 停止整台设备后重试 |
| AI features cannot be used while scripts are being built. | 正在构建 | 构建结束后重试 |
| Stopped because the machine started, a build started or the studio mode ended. | 请求过程中条件发生了变化 | 在设备停止的状态下重新发送。该回答没有保留 |
| No AI feature license. (code 7) | RunTime 密钥没有代码 7、V1 加密狗、免费版 | 联系 ICT 添加代码 7(第 3 章) |
| No Claude API key is saved. | 没有保存密钥 | 在 [Tool Options → AI] 中保存密钥 |
| Could not read the saved API key. | 由另一个 Windows 用户或在另一台 PC 上保存,或 Windows 密码被重置 | 重新输入并保存密钥 |
| The API key was rejected (wrong, expired or disabled). | 401 认证错误 | 在 Console 中确认密钥或更换密钥(API 密钥手册第 10 章) |
| This API key cannot use the model (…) | 密钥权限或工作区限制 | 选择其他模型,或在 Console 中确认权限 |
| A spend limit or the credit balance was reached. | Console 的支出限额、额度不足 | 在 Console 中确认额度和限额 |
| Too many requests. / The AI server is busy or failing. | 429 速率限制、服务器过载、服务器错误(5xx) | 稍后重试(QMS 会自动重试几次) |
| Cannot reach the AI server. | 互联网、代理或防火墙 | 允许到 api.anthropic.com 的出站 HTTPS。代理遵循 Windows 系统设置 |
| The request was not sent because it could exceed this month's AI limit (this PC). | 本月 + 此请求的最大费用 > 月度限额 | 提高月度限额或等到下个月 |
| The request was not sent because today's usage … plus its maximum estimated cost … exceeds the daily limit …. | 当天(UTC) + 此请求的最大费用 > 每日限额 | 提高每日限额,或等到日期变更(00:00 UTC) |
| The AI usage record was changed or deleted, so the usage limits on this PC cannot be trusted. / 面板标题"Check the usage record" | 账本行被编辑或删除;账本文件被删除或替换为旧副本;封存文件被删除;封存文件被锁定,在超过 2 分钟内 3 次以上无法读取(杀毒软件、备份软件) | 在 [Tool Options → AI] 的使用记录检查中确认后按 [RESEAL] (第 13 章)。如果封存文件被锁定,请关闭占用它的程序或添加例外,然后按 [CHECK AGAIN] |
| The AI usage record cannot be checked. | 另一个 Windows 用户或 PC 的记录;Windows 密码被重置或配置文件被恢复 | 与上面相同,按 [RESEAL] |
| The usage record could not be resealed. | 记录文件夹无法写入 | 确认 %APPDATA%\QMachineStudio\AI 的写入权限 |
| The request was not sent because the task's maximum estimated cost … exceeds the task limit …. | 附件大、对话长、模型大 | 删除附件或开始 [NEW],选择较小的模型,或提高作业限额 |
| The request was not sent because the plan question's maximum estimated cost … exceeds the plan limit …. | Plan 模式 — 附件大、计划对话长、模型大 | 开始 [NEW]、删除附件或选择较小的计划模型,或提高计划限额 |
| The AI server did not answer in time. / The connection dropped while the answer was arriving. | 超时、网络中断 | 重新发送。已收到的部分没有保留在对话中 |
| The request was rejected: … | 请求格式或大小问题(400) | 删除附件,或在 [NEW] 对话中重试。如果仍然出现,请附上日志联系 ICT |
| The AI did not answer this question. | 模型拒绝回答 | 修改问题后重新发送 |
| (接近作业限额,AI 没有再使用工具就回答了) | 接近作业限额 | 剩下的工作写在回答中。必要时提高作业限额后再次请求 |
| The request was not sent because the AI usage file could not be opened … | usage.db 被其他程序锁定,或文件夹无法写入 | 关闭占用它的程序,并确认 %APPDATA%\QMachineStudio\AI 的写入权限 |
| The question and its attachments are too large. / This conversation is long. | 上下文上限(约 150,000 令牌) | 删除大的附件或开始 [NEW] |
| One question can have up to 8 attachments, of which up to 5 images. / One conversation can carry up to 20 images … | 附件上限 | 减少附件或开始 [NEW] |
| The large log '…' is still being indexed (n%). Send when it is done. | 在索引完成之前发送 | 等芯片显示大小和行数后再发送 |
| The large log '…' could not be indexed (…). Remove it or attach it again. | 无法读取文件,或索引被停止 | 删除芯片后重新附加文件 |
| '…' could not be attached. (…) | 括号中的原因 — 受保护的文件(protected file)、被 .qmsaiignore 排除(excluded)、大日志过多(8 个),或之前的索引仍在停止中 | 不要附加受保护或被排除的文件。达到上限时开始 [NEW];索引仍在停止中时,请稍后重试 |
| Stopped — the AI kept calling tools past the limit for one question. | AI 查阅的内容过多 | 缩小问题范围(写出模块或函数名称)后重新发送 |
| 回答被截断 / 达到输出上限 | 输出上限 | 降低思考强度或拆分问题 |
| Stopped after 3 fix attempts with … error(s) left. | AI 无法修正错误 | 在比较画面中查看错误并自行修正,或用更大的模型在 [NEW] 对话中重试 |
| All … selected change(s) were edited after the AI proposed them. | 提案之后有人编辑了相同的单元(冲突)。对于参数值:提案之后值发生了变化、复制源发生了变化、作业文件被关闭或打开了其他作业文件、该组被 .qmsaiignore 或作为受保护文件排除,或参数已不存在 | 让 AI 根据当前代码重新提案 |
| Some changes touch safety logic … tick the confirmation box below, then apply. | 没有勾选安全确认框 | 在比较画面中确认变更后勾选 |
| … parameter value(s) failed the type or range check, so nothing was applied. | 值超出范围(例如提案之后范围发生了变化) | 查看表中的检查栏,然后取消选择这些值或让 AI 重新提案 |
| no job file is open, so JF values cannot be changed - open a job file first | 没有打开作业文件(显示在比较画面的检查栏和 AI 回答中) | 打开作业文件后再次请求 |
| not applied: the parameter file could not be saved | 参数文件为只读或被锁定 | 确认文件属性和锁定后重新应用(该值在内存中也已恢复) |
| There is no undo record for this change set … | 已撤销,或项目被重新打开 | 从备份文件夹恢复(第 8 章) |
| Automatic run: The budget is not enough for the next request … | 执行预算已用完 | [RAISE BUDGET] 或 [FINISH HERE] |
| This automatic run belongs to another project (…) and cannot be resumed here. | 打开的是其他项目 | 打开那个项目后重试 |
| 担心图片中的文字 | 图片中的文字无法遮蔽 | 发送前确认图片,或以文本形式附加日志 |
| AI 使用了项目中没有的函数或 IO 名称 | 生成式 AI 的错误 | 用 QMS 检查和构建(F6)确认。在现场指南 QMS_AI.md 中写下命名规则 |
| The new parameter definitions were saved, but the scripts were not built. | 有未保存的 AI 新模块 — 构建可能会在您确认之前运行它们 | 确认新模块后保存(Ctrl+S)即可构建(第 8 章) |
| … change(s) cannot be applied, so nothing was applied. | 新参数或模块定义违反规则(名称已存在、结构已锁定等),或值超出范围 | 查看检查结果,然后取消选择这些变更或让 AI 重新提案 |
| The manual is not made while the machine is running or a build is in progress. | 用户手册自动生成 — 绘制画面时窗口会暂停片刻 | 停止设备后重试(第 12 章) |
| HTML mockups need the WebView2 Runtime | 这台 PC 上没有 Microsoft Edge WebView2 Runtime(主要是 Windows 10 或离线 PC) | 从消息中的 Microsoft 官方 WebView2 页面另行下载并安装运行时(QMS 安装包中不包含),然后重试。QMS 的其他功能照常可用(第 8 章) |
| The HTML mockup could not be drawn (…) | 括号中的原因 — 超时(30 秒)、无法载入页面、测量失败 | 简化原型(500 个元素以下、缩小图片),或确认 HTML 只使用原型文件夹中的文件 |
| This HTML file is excluded from AI by the project's .qmsaiignore (or protection rules) | 项目中的原型符合排除规则 | 把原型移到项目外,或修改 .qmsaiignore |
更多详细信息请查看 QMS 日志(以 AiPanel 或 XAi… 开头的行)以及 [OPEN FOLDER] 中的审计日志。QMS 日志和审计日志中不包含密钥和问题原文。