
ValueError: too many values to unpack (expected 5)
快速结论:该报错通常出现在 ComfyUI VideoHelperSuite 使用 Meta Batch Manager 进行视频分割处理后,在最后的 Video Combine 节点触发。优先排查 ComfyUI 版本是否 ≥ v0.3.68 或特定 commit,降级到 v0.3.67 可临时解决。
问题场景
用户在使用 ComfyUI 的 VideoHelperSuite 自定义节点时,通过 Meta Batch Manager 将视频分割为多个批次处理,最终在 Video Combine 节点合并时触发报错。问题出现在 ComfyUI 较新版本(如 v0.3.68 及以上),且与操作系统无关(Windows 10/11、Fedora 42/43、Docker 环境均有报告)。
报错原文
!!! Exception during processing !!! too many values to unpack (expected 5)
Traceback (most recent call last):
File "execution.py", line 510, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(...)
File "execution.py", line 324, in get_output_data
return_values = await _async_map_node_over_list(...)
File "execution.py", line 298, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "execution.py", line 286, in process_inputs
result = f(**inputs)
File "videohelpersuite\nodes.py", line 541, in combine_video
requeue_workflow((meta_batch.unique_id, not meta_batch.has_closed_inputs))
File "videohelpersuite\utils.py", line 190, in requeue_workflow
(run_number, _, prompt, _, _) = next(iter(prompt_queue.currently_running.values()))
ValueError: too many values to unpack (expected 5)
原因分析
可能原因是 ComfyUI 核心在较新版本中修改了 prompt_queue.currently_running 的数据结构,导致 utils.py 中解包时预期只有 5 个元素,但实际返回了更多值。这与 ComfyUI 的 execution.py 模块逻辑变更直接相关——回退到 commit f2bb3230b796f6a486894fc3b597db2c0b9538c9 或 v0.3.67 可复现正常。
环境排查
- ComfyUI 版本:确认当前版本 ≥ v0.3.68?
- VideoHelperSuite 版本:是否为最新 commit(如 8923bd836bdab8b7bbdf4ed104b7d045e70c66e2)?
- Python 版本:Issue 中涉及 3.10.11 和 3.13 venv
- PyTorch 版本:2.9.0+cu130、2.10.0a0+rocm7.10.0a20251015 等均受影响
- 操作系统:Windows 10/11、Fedora 42/43、Docker 均有报告
- 显卡:Nvidia 4070 Ti、RTX 5070 Ti、Radeon 9060xt 等均出现
解决步骤
- 临时降级方案(可优先尝试):将 ComfyUI 回退到 v0.3.67 或对应 commit
f2bb3230b796f6a486894fc3b597db2c0b9538c9。多位用户确认此版本下问题消失。 - 修复补丁方案:如果必须使用新版 ComfyUI,可以替换修复后的
utils.py文件。下载 Issue 评论中提供的utils.py(来自 claude 生成的修复版本),覆盖ComfyUI/custom_nodes/comfyui-videohelpersuite/videohelpersuite/utils.py。 - 官方修复:截至 Issue 关闭,VideoHelperSuite 已通过 commit
4f804bb23f3292609b6b42527cb1f015e52ef83e修复该问题。更新 VideoHelperSuite 到包含此修复的最新版本即可。
验证方法
执行原来的工作流,使用 Meta Batch Manager 分割并合并视频,观察 Video Combine 节点是否报错。成功合并无异常即表示修复有效。



