ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

After update ( git pull): Failed to execute 'structuredClone' on 'Window': [object Array] could not be cloned.

Open botnang opened this issue 1 year ago • 50 comments

Expected Behavior

5070ti, Ubuntu 22.04, Python 3.11, torch2.7 + cu12.8, without xformers, Flux Example Workflow.

After git pull update comfyui to latest version get follow errors:

Failed to execute 'structuredClone' on 'Window': [object Array] could not be cloned.

pip install -r requirements.txt Image

Image

Image

Actual Behavior

git pulll pip install -r requirements.txt

Steps to Reproduce

load example Flux workflow

Debug Logs

Import times for custom nodes:
   0.0 seconds: /home/comfy/comfyui/custom_nodes/websocket_image_save.py
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ICEF
   0.0 seconds: /home/comfy/comfyui/custom_nodes/sd-dynamic-thresholding
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-in-context-lora-utils
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-inpaint-cropandstitch
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI_AdvancedRefluxControl
   0.0 seconds: /home/comfy/comfyui/custom_nodes/qq-nodes-comfyui
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI_InstantID
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui_zenid
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-GGUF
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-model-dynamic-loader
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-QualityOfLifeSuit_Omar92
   0.0 seconds: /home/comfy/comfyui/custom_nodes/images-grid-comfy-plugin
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI_ADV_CLIP_emb
   0.0 seconds: /home/comfy/comfyui/custom_nodes/Comfy-WaveSpeed
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-custom-scripts
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-RMBG
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI_JPS-Nodes
   0.0 seconds: /home/comfy/comfyui/custom_nodes/derfuu_comfyui_moddednodes
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-LTXTricks
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-frame-interpolation
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-HyperLoRA
   0.0 seconds: /home/comfy/comfyui/custom_nodes/rgthree-comfy
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI_Janus_Wrapper
   0.0 seconds: /home/comfy/comfyui/custom_nodes/Comfyui_leffa
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui_essentials
   0.0 seconds: /home/comfy/comfyui/custom_nodes/FitDiT-ComfyUI
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-safety-checker
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI_LayerStyle_Advance
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui_controlnet_aux
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-impact-pack
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-reactor-node
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfy-mtb
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-kjnodes
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-TeaCache
   0.0 seconds: /home/comfy/comfyui/custom_nodes/flux-lightning
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-sam2
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui_segment_anything
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-crystools
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui_layerstyle
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-art-venture
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-Manager
   0.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-videohelpersuite
   0.0 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-tbox
   0.1 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-LTXVideo
   0.1 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-nunchaku
   0.1 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI_Comfyroll_CustomNodes
   0.1 seconds: /home/comfy/comfyui/custom_nodes/comfyui-easy-use
   0.1 seconds: /home/comfy/comfyui/custom_nodes/comfyui-ollama
   0.2 seconds: /home/comfy/comfyui/custom_nodes/Bjornulf_custom_nodes
   0.3 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-GPENO
   0.3 seconds: /home/comfy/comfyui/custom_nodes/Comfyui_segformer_b2_clothes
   0.3 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-DeepSeek-VL
   0.4 seconds: /home/comfy/comfyui/custom_nodes/pr-was-node-suite-comfyui-47064894
   0.6 seconds: /home/comfy/comfyui/custom_nodes/comfyui_fill-nodes
   1.3 seconds: /home/comfy/comfyui/custom_nodes/ComfyUI-PuLID-Flux-Enhanced
   2.0 seconds: /home/comfy/comfyui/custom_nodes/comfyui-impact-subpack

Starting server

To see the GUI go to: http://0.0.0.0:8888
FETCH ComfyRegistry Data: 5/85
QualityOfLifeSuit_Omar92::NSP ready
FETCH ComfyRegistry Data: 10/85
FETCH ComfyRegistry Data: 15/85
FETCH ComfyRegistry Data: 20/85
FETCH ComfyRegistry Data: 25/85
FETCH ComfyRegistry Data: 30/85
FETCH ComfyRegistry Data: 35/85
FETCH ComfyRegistry Data: 40/85
FETCH ComfyRegistry Data: 45/85
FETCH ComfyRegistry Data: 50/85
FETCH ComfyRegistry Data: 55/85
FETCH ComfyRegistry Data: 60/85
FETCH ComfyRegistry Data: 65/85
FETCH ComfyRegistry Data: 70/85
FETCH ComfyRegistry Data: 75/85
FETCH ComfyRegistry Data: 80/85
FETCH ComfyRegistry Data: 85/85
FETCH ComfyRegistry Data [DONE]
[ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
[ComfyUI-Manager] All startup tasks have been completed.

Other

No response

botnang avatar May 13 '25 02:05 botnang

Fresh installed a blank comfyui in latest version, the example workflow works. hmmmm........

botnang avatar May 13 '25 03:05 botnang

the same to you

Image

chdldy avatar May 13 '25 03:05 chdldy

Fresh installed a blank comfyui in latest version, the example workflow works. hmmmm........

try to run pip install -r requirements.txt to install the lastest comfyui-frontend-package==1.18.10

Xiuzhenpeng avatar May 13 '25 03:05 Xiuzhenpeng

the same to you

Image

try to run pip install -r requirements.txt to install the lastest comfyui-frontend-package==1.18.10

Xiuzhenpeng avatar May 13 '25 03:05 Xiuzhenpeng

the same to you

try to run pip install -r requirements.txt to install the lastest comfyui-frontend-package==1.18.10

Thanks,It does work, but the latest comfyui-frontend-package==1.19.9

chdldy avatar May 13 '25 05:05 chdldy

the same to you Image

try to run pip install -r requirements.txt to install the lastest comfyui-frontend-package==1.18.10

Sorry, it doesn't work, still 'Failed to execute 'structuredClone' on 'Window': [object Array] could not be cloned.'

And233 avatar May 13 '25 12:05 And233

the same to you Image

try to run pip install -r requirements.txt to install the lastest comfyui-frontend-package==1.18.10

Sorry, it doesn't work, still 'Failed to execute 'structuredClone' on 'Window': [object Array] could not be cloned.'

It will work fine if i back to 0.3.33

And233 avatar May 13 '25 12:05 And233

I tried both options 1.18.10 and 1.19.9 but no luck.

Any other way to do so as I am stuck between a major work I am testing comfyui for.

RazaAbbasNaqvi avatar May 13 '25 21:05 RazaAbbasNaqvi

I tried both options 1.18.10 and 1.19.9 but no luck.

Any other way to do so as I am stuck between a major work I am testing comfyui for.

try comfyui-frontend-package==1.18.9 comfyui-workflow-templates==0.1.11 they are the version in 0.3.33

And233 avatar May 13 '25 22:05 And233

@And233 can you share the txt file?

RazaAbbasNaqvi avatar May 14 '25 01:05 RazaAbbasNaqvi

@And233 can you share the txt file?

you can just download the Source code of v0.3.33 in Releases

And233 avatar May 14 '25 03:05 And233

@And233 how to do so as am bit new to it

RazaAbbasNaqvi avatar May 14 '25 03:05 RazaAbbasNaqvi

For me, solve the problem by upgrading cg-use-everywhere

wolf95985 avatar May 14 '25 03:05 wolf95985

For me, solve the problem by upgrading cg-use-everywhere

Upgrading that package, and then all other custom nodes did not solve this issue for me

cloudkoala avatar May 14 '25 04:05 cloudkoala

After the last update, I also ran into the same mistake. It's strange that they have not yet been corrected

goldenalexeysky avatar May 14 '25 05:05 goldenalexeysky

@wolf95985 how to do that? Can you please share the process. Thanks

RazaAbbasNaqvi avatar May 14 '25 05:05 RazaAbbasNaqvi

I made a rollback of versions to: comfyui-frontend-package==1.18.9 comfyui-workflow-templates==0.1.11

And after that everything worked, the error disappeared, the generation works

goldenalexeysky avatar May 14 '25 05:05 goldenalexeysky

@goldenalexeysky how to do. So as I am bit new to comfyui environment

RazaAbbasNaqvi avatar May 14 '25 05:05 RazaAbbasNaqvi

@RazaAbbasNaqvi Run the command line (cmd) on behalf of the administrator, and take away the team: pip install --force-reinstall comfyui-frontend-package==1.18.9 pip install --force-reinstall comfyui-workflow-templates==0.1.11

goldenalexeysky avatar May 14 '25 05:05 goldenalexeysky

@RazaAbbasNaqvi Run the command line (cmd) on behalf of the administrator, and take away the team: pip install --force-reinstall comfyui-frontend-package==1.18.9 pip install --force-reinstall comfyui-workflow-templates==0.1.11

If you are in the Desktop GUI version you'll have to add these to your requirements.txt as well or else they will just auto-revert on startup

cloudkoala avatar May 14 '25 05:05 cloudkoala