我刚配了一个新的 Conda 环境,从头开始装了全套东西,看起来一开始工作流程能跑通第一阶段,但后面突然崩了,报错是:“VHS_SelectFilename 列表索引超出范围”。我这边没动过你工作流程里的任何设置。 ComfyUI 报错信息
错误详情
节点ID: 132:70:58
出问题的节点类型: VHS_SelectFilename
错误类型: IndexError
错误信息: 列表索引超出范围 堆栈跟踪(Stack Trace)```
文件 "/zstor/ai/wan/ComfyUI/execution.py",第496行,在 execute 中
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)文件 "/zstor/ai/wan/ComfyUI/execution.py",第315行,在 get_output_data 中
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)文件 "/zstor/ai/wan/ComfyUI/execution.py",第289行,在 _async_map_node_over_list 中
await process_inputs(input_dict, i)文件 "/zstor/ai/wan/ComfyUI/execution.py",第277行,在 process_inputs 中
result = f(inputs)文件 "/zstor/ai/wan/ComfyUI/custom_nodes/comfyuivideohelpersuite/nodes.py",第981行,在 select_filename 函数中
return (filenames[1][index],)
```这个问题大概率是想访问的列表不存在或者为空,导致索引超出了范围。建议检查一下这个节点的输入数据是否正确,特别是文件名列表有没有传进去,或者是不是空的。也可以加个判断逻辑,比如在取索引前先检查一下列表长度。你有啥想法没?或者你那边能怎么调试? |