Kosinkadink / ComfyUI-VideoHelperSuite

Nodes related to video workflows
GNU General Public License v3.0
410 stars 73 forks source link

Report an error of VHS_LoadVideo nodes #240

Open 0filler opened 5 days ago

0filler commented 5 days ago

Load Video (path&upload) node 3 different Errors:

this old merge works fine https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite/commit/acbf789291e5400f590378aac75909f28b8e7afb

from this merge https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite/commit/1ab2027165478b5608627682d3144ea2c2f9c0e9

Error occurred when executing VHS_LoadVideo:

PdhAddEnglishCounterW failed. Performance counters may be disabled.

File "D:\SD\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\SD\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\SD\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "D:\SD\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_video_nodes.py", line 230, in load_video return load_video_cv(kwargs) File "D:\SD\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_video_nodes.py", line 144, in load_video_cv memory_limit = (psutil.virtual_memory().available + psutil.swap_memory().free) - 2 ** 27 File "D:\SD\ComfyUI-aki-v1.3\python\lib\site-packages\psutil__init__.py", line 1992, in swap_memory return _psplatform.swap_memory() File "D:\SD\ComfyUI-aki-v1.3\python\lib\site-packages\psutil_pswindows.py", line 257, in swap_memory percentswap = cext.swap_percent()

then https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite/commit/218658b83faee3ff2afb8110991f615a812e8641

Error occurred when executing VHS_LoadVideo:

local variable 'original_gen' referenced before assignment

File "D:\SD\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\SD\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\SD\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "D:\SD\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_video_nodes.py", line 235, in load_video return load_video_cv(kwargs) File "D:\SD\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_video_nodes.py", line 164, in load_video_cv next(original_gen)

and this merge works fine again https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite/commit/1f46b5c3ae9b4e30f721bee83d9cb7b9f270d8cd

but from this one error again https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite/commit/1c9b635b19fdab818974a3c8f46056c2178824b8

Error occurred when executing VHS_LoadVideo:

unsupported operand type(s) for //: 'NoneType' and 'float'

File "D:\SD\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\SD\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\SD\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "D:\SD\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_video_nodes.py", line 255, in load_video return load_video_cv(kwargs) File "D:\SD\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_video_nodes.py", line 156, in load_video_cv max_loadable_frames = int(memory_limit//(widthheight3*(.1)))

to the newest, same error https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite/commit/7649d515053602808416790dfbc234f4ab2c24f3

Disabled all other custom nodes no help. But works fine on my another PC. So I can still use this custom nodes fine. Just wondering if this can help you troubleshooting. Thanks for your hard work.

AustinMroz commented 5 days ago

Thanks for the report. It should be fixed once more.