am-freescan/docs/scanner-idle-stop-fix-20261026.json
lixiaolong 6f8a40644c feat(scanner): 完善补扫、执行监控及资源释放
完善扫描流式预览、成果归档与PLY/STL查看、补扫历史、执行步骤及日志展示,支持局域网访问和改名节点的原始组件识别。修复试运行终止后的占用释放及未采集时重复暂停SDK的问题,增加终止中交互与回归验证。

验证:后端1114项通过、18项既有跳过;前端109项通过,类型检查及构建通过;Python脚本54项通过;模拟扫描设备7组试运行/终止接口回归通过。
2026-10-26 11:04:07 +08:00

58 lines
2.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"date": "2026-10-26",
"fixed": true,
"deployed": true,
"incident": {
"instanceId": "d0a6786b523cc4d5f423cdbfb70fabe6",
"taskStatus": "STOPPED",
"failedNode": "prepareStop / SCANNER_STOP",
"supplierError": "sdk_timeout: Sn3DPauseScanSync, 0x0000000B",
"rootCause": "工程前的停止节点在尚无工程且未采集时仍调用厂家暂停SDK,任务超时后终止无法确认停止,因此保留STOP_PENDING占用。此次并非已获停止成功回执却遗漏释放。"
},
"recovery": {
"usedExistingClearOccupationApi": true,
"confirmedNoOtherRunningTasks": true,
"confirmedScannerIdleAndStateCertain": true,
"releasedExactOwner": "NATIVE:d0a6786b523cc4d5f423cdbfb70fabe6",
"releasedLeaseCount": 2,
"userHistoryPreserved": true
},
"changes": [
"SCAN_STOP在扫描服务明确返回scanning、busy、stateUncertain、restartRequired全部为布尔false时,记录本地停止确认,不调用厂家暂停SDK",
"本地确认保留命令幂等与审计记录,不伪造厂家taskId或statusUrl",
"已受理或结果未知命令、工程/会话校验和设备健康检查仍在本地确认之前执行",
"正在采集时仍调用真实停止接口并等待厂家成功回执;失败不得释放资源",
"状态字段缺失、null或字符串不作为明确停稳证据",
"前端终止中状态、按钮互斥及错误提示已完成,刷新页面可加载"
],
"tests": {
"backend": {"tests": 1132, "passed": 1114, "skipped": 18, "failures": 0, "errors": 0, "suites": 170},
"newBackendTests": 5,
"pythonPassed": 54,
"frontendPreviouslyVerifiedWithoutFurtherChanges": {"passed": 104, "typecheck": "passed", "build": "passed"},
"apiRegressionPassed": 7,
"apiScenarios": [
"未采集且未创建工程时,本地确认停止,随后工程与采集正常启动",
"采集中终止确认停采后释放,重复终止不重新占用",
"SDK停止失败返回错误、保留STOP_PENDING、阻止再次试运行",
"明确确认停止后仅释放原失败试运行占用",
"释放后可再次试运行并正常终止释放",
"工程创建途中暂停并恢复,不重复创建工程,终止后释放",
"工程创建途中暂停后直接终止,不执行后续采集并释放"
],
"physicalScannerControlRequestsDuringRegression": 0,
"verificationPrefix": "E2E-TRIAL-1026104018-57eb",
"verificationDataRemaining": {}
},
"postconditions": {
"realScannerConfigurationRestored": true,
"scannerState": {"scanning": false, "busy": false, "stateUncertain": false, "restartRequired": false},
"remainingOccupations": [],
"originalUserTrialRetained": true,
"lanPageStatus": 200
},
"limitation": "未自动运行真实设备。本次修复避免未采集时多余调用暂停SDK;实际采集中若厂家停止仍超时,系统继续保留停止待确认占用。",
"committed": false,
"pushed": false
}