Niutonian / ComfyUi-NoodleWebcam

Noodle webcam is a node that records frames and send them to your favourite node
Apache License 2.0
31 stars 5 forks source link

IndexError: index 0 is out of bounds for dimension 0 with size 0 #1

Closed boricuapab closed 10 months ago

boricuapab commented 10 months ago

After updating to latest comfyui commit e020ab61f97fd8bccc31e7eebd23acd5dd9e2ecd

the webcam noodle node gives this error


[ WARN:0@20.492] global cap_msmf.cpp:1759 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -2147483638
ERROR:root:!!! Exception during processing !!!
ERROR:root:Traceback (most recent call last):
  File "C:\sdComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\sdComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\sdComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\sdComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1345, in save_images
    full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])
                                                                                                                                           ~~~~~~^^^
IndexError: index 0 is out of bounds for dimension 0 with size 0

Prompt executed in 11.65 seconds
boricuapab commented 10 months ago

Works after fresh install.