AIGODLIKE / ComfyUI-BlenderAI-node

Used for AI model generation, next-generation Blender rendering engine, texture enhancement&generation (based on ComfyUI)
GNU General Public License v3.0
741 stars 42 forks source link

Blender Nodes Diseappear when launching server (Blender 4.1) #81

Closed gioxyer closed 4 months ago

gioxyer commented 4 months ago

Version used: ComfyUI Blender 1.4.9 System info: Windows 11 Home CPU : Ryzen 5 5500U with Radeon Vega 7 Graphics Card ComfyUI : CPU mode

Blender Nodes Diseappear when launching server (Blender 4.1):

Video about the error: https://github.com/AIGODLIKE/ComfyUI-BlenderAI-node/assets/161426313/7a90fbe4-25de-4eba-a359-6a1cfd497b96

Link of Blender file: https://we.tl/t-LP85nWpYML

mcrimson974 commented 4 months ago

Same problem here. This is the MOST important thing to fix. Otherwise the whole addon becomes pointless. I might as well just use Comfy UI instead. (Using blender 4.0)

gioxyer commented 4 months ago

Thanks for suggestion, which version do you use in Blender 4.0 for ComfyUI?

mcrimson974 commented 4 months ago

Thanks for suggestion, which version do you use in Blender 4.0 for ComfyUI?

My version of ComfyUI is master@30abc32

gioxyer commented 4 months ago

And for this AddOn which version do you have?

mcrimson974 commented 4 months ago

And for this AddOn which version do you have?

I have the latest, 1.4.9. I also tried on 1.4.8 but same thing.

Also, I've tried again since then, and I don't know why but I can't event add the input image node to the graph, even before launching the server. I get this error :


  File "C:\Users\max\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\BlenderAI_Node\ops.py", line 770, in execute
    bpy.ops.node.translate_attach("INVOKE_DEFAULT")
  File "D:\0_softwares\Blender4.1\4.1\scripts\modules\bpy\ops.py", line 107, in __call__
    ret = _op_call(self.idname_py(), kw, C_exec, C_undo)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Operator bpy.ops.node.translate_attach.poll() failed, context is incorrect```
gioxyer commented 4 months ago

Did you try also with Blender 3.6?

KarryCharon commented 4 months ago

@gioxyer

Version used: ComfyUI Blender 1.4.9 System info: Windows 11 Home CPU : Ryzen 5 5500U with Radeon Vega 7 Graphics Card ComfyUI : CPU mode

Blender Nodes Diseappear when launching server (Blender 4.1):

  • when server isn't loading Blender Nodes appear
  • when loading server Blender Nodes diseapper

Video about the error: https://github.com/AIGODLIKE/ComfyUI-BlenderAI-node/assets/161426313/7a90fbe4-25de-4eba-a359-6a1cfd497b96

Link of Blender file: https://we.tl/t-LP85nWpYML

Try the develop branch for testing. And some console log is needed. Thanks!

gioxyer commented 4 months ago

Do you mean version 1.5.0 from zip archive?

image

image

image

image

image

WARN (bpy.rna): C:\Users\blender\git\blender-v410\blender.git\source\blender\python\intern\bpy_rna.cc:1366 pyrna_enum_to_py: current value '0' matches no enum in 'CheckpointLoaderSimple', 'CheckpointLoaderSimple', 'ckpt_name'

KarryCharon commented 4 months ago

Do you mean version 1.5.0 from zip archive?

image

image

image

image

image

WARN (bpy.rna): C:\Users\blender\git\blender-v410\blender.git\source\blender\python\intern\bpy_rna.cc:1366 pyrna_enum_to_py: current value '0' matches no enum in 'CheckpointLoaderSimple', 'CheckpointLoaderSimple', 'ckpt_name' This warning info is caused by the CheckpointLoaderSimple model is not set.

gioxyer commented 4 months ago

I add a model, it doesn't show the error, but the problem still persist of Blender menu diseapper image

[SDN-INF]: Load MLT Words: 0.7354s [SDN-WRN]: Server Launched [SDN-INF]: Launch Time: 0.04s [SDN-INF]: UnregNode Time: 0.00s register_class(...): Warning: 'MLTWords_UL_UIList' doesn't have upper case alpha-numeric prefix register_class(...): Warning: 'MLTText_UL_UIList' doesn't have upper case alpha-numeric prefix [SDN-WRN]: Parsing Node Start [SDN-WRN]: Parsing Node Finished! [SDN-INF]: ParseNode Time: 0.06s [SDN-INF]: RegNode Time: 0.18s

gioxyer commented 4 months ago

Blender info log image

KarryCharon commented 4 months ago

@gioxyer Copy log from blender console instead of the info window.

KarryCharon commented 4 months ago

@gioxyer Header Menu [Window] -> Toggle System Console

gioxyer commented 4 months ago

Error: ('Invalid Node Type: Þ¥ôÕàÑÕø¥ÕâÅ',)

[SDN-ERR]: Traceback (most recent call last): File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 54, in wrapper res = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 233, in serialize self.validation() File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 248, in validation raise InvalidNodeType(_T("Invalid Node Type: {}").format(n.name)) ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5.SDNode.tree.InvalidNodeType: Invalid Node Type: 输入图像

[SDN-ERR]: Invalid Node Type: 输入图像 [SDN-ERR]: Traceback (most recent call last): File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 71, in wrapper res = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 397, in save_json_ex raise InvalidNodeType(_T("Invalid Node Type: {}").format(from_socket.node.name)) ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5.SDNode.tree.InvalidNodeType: Invalid Node Type: 输入图像

Error: ('Invalid Node Type: Þ¥ôÕàÑÕø¥ÕâÅ',)

[SDN-ERR]: Traceback (most recent call last): File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 54, in wrapper res = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 233, in serialize self.validation() File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 248, in validation raise InvalidNodeType(_T("Invalid Node Type: {}").format(n.name)) ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5.SDNode.tree.InvalidNodeType: Invalid Node Type: 输入图像

image

gioxyer commented 4 months ago

Full session: [SDN-INF]: Load MLT Words: 0.7354s [SDN-WRN]: Server Launched [SDN-INF]: Launch Time: 0.04s [SDN-INF]: UnregNode Time: 0.00s register_class(...): Warning: 'MLTWords_UL_UIList' doesn't have upper case alpha-numeric prefix register_class(...): Warning: 'MLTText_UL_UIList' doesn't have upper case alpha-numeric prefix [SDN-WRN]: Parsing Node Start [SDN-WRN]: Parsing Node Finished! [SDN-INF]: ParseNode Time: 0.06s [SDN-INF]: RegNode Time: 0.18s [SDN-ERR]: Traceback (most recent call last): File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 54, in wrapper res = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 233, in serialize self.validation() File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 248, in validation raise InvalidNodeType(_T("Invalid Node Type: {}").format(n.name)) ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5.SDNode.tree.InvalidNodeType: Invalid Node Type: 输入图像

[SDN-ERR]: Invalid Node Type: 输入图像 [SDN-ERR]: Traceback (most recent call last): File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 71, in wrapper res = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 397, in save_json_ex raise InvalidNodeType(_T("Invalid Node Type: {}").format(from_socket.node.name)) ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5.SDNode.tree.InvalidNodeType: Invalid Node Type: 输入图像

Error: ('Invalid Node Type: Þ¥ôÕàÑÕø¥ÕâÅ',)

[SDN-ERR]: Traceback (most recent call last): File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 54, in wrapper res = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 233, in serialize self.validation() File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 248, in validation raise InvalidNodeType(_T("Invalid Node Type: {}").format(n.name)) ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5.SDNode.tree.InvalidNodeType: Invalid Node Type: 输入图像

[SDN-ERR]: Invalid Node Type: 输入图像 [SDN-ERR]: Traceback (most recent call last): File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 71, in wrapper res = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 397, in save_json_ex raise InvalidNodeType(_T("Invalid Node Type: {}").format(from_socket.node.name)) ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5.SDNode.tree.InvalidNodeType: Invalid Node Type: 输入图像

Error: ('Invalid Node Type: Þ¥ôÕàÑÕø¥ÕâÅ',)

[SDN-ERR]: Traceback (most recent call last): File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 54, in wrapper res = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 233, in serialize self.validation() File "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5\SDNode\tree.py", line 248, in validation raise InvalidNodeType(_T("Invalid Node Type: {}").format(n.name)) ComfyUI-BlenderAI-node-919ae8a3e4c9c4dfd72e3ae0c77dc03db12811a5.SDNode.tree.InvalidNodeType: Invalid Node Type: 输入图像

KarryCharon commented 4 months ago

@gioxyer You can try select log from the start of Blender launching

gioxyer commented 4 months ago

Do you mean blender_debug_log?

KarryCharon commented 4 months ago

Do you mean blender_debug_log?

Yes if you know how

gioxyer commented 4 months ago

Yes, hope can help you blender_debug_output.txt blender_system_info.txt

KarryCharon commented 4 months ago

Yes, hope can help you blender_debug_output.txt blender_system_info.txt

Launch blender_debug_log.bat -> click launch ComfyUI btn -> rerun the workflow util error occurs -> close blender and upload log

gioxyer commented 4 months ago

Do you mean from cmd? I have only .cmd or should I create .bat from scratch? image

KarryCharon commented 4 months ago

Do you mean from cmd? I have only .cmd or should I create .bat from scratch? image

Yes it's .cmd not .bat, remember wrong

gioxyer commented 4 months ago

And which one do you need before I used debug_log, do you need debug_gpu?

KarryCharon commented 4 months ago

And which one do you need before I used debug_log, do you need debug_gpu?

blender_debug_log.cmd

gioxyer commented 4 months ago

blender_debug_output.txt blender_system_info.txt

gioxyer commented 4 months ago

Quit.blend file: https://we.tl/t-vRIZwiNWXM

KarryCharon commented 4 months ago

blender_debug_output.txt blender_system_info.txt

it's weird... There is no error find inside this log file.

KarryCharon commented 4 months ago

Quit.blend file: https://we.tl/t-vRIZwiNWXM

Are you used some software like toDesk or teamviewer?

gioxyer commented 4 months ago

Warning: 'MLTWords_UL_UIList' doesn't have upper case alpha-numeric prefix , this one is from ComfyUI?

KarryCharon commented 4 months ago

Warning: 'MLTWords_UL_UIList' doesn't have upper case alpha-numeric prefix , this one is from ComfyUI?

Just a warning. No influence about the title

gioxyer commented 4 months ago

I could record a clip to share what happen if you want

KarryCharon commented 4 months ago

I could record a clip to share what happen if you want

If it's convenient, I can help you debug it through remote desktop

gioxyer commented 4 months ago

Do you have an email where can I contact you?

KarryCharon commented 4 months ago

Do you have an email where can I contact you?

tangpeng124@gmail.com

gioxyer commented 4 months ago

@mcrimson974 we find a solution you need to install : https://github.com/AIGODLIKE/ComfyUI-CUP inside ComfyUI folder as unzip file

mcrimson974 commented 4 months ago

@mcrimson974 we find a solution you need to install : https://github.com/AIGODLIKE/ComfyUI-CUP inside ComfyUI folder as unzip file

@gioxyer This is not a solution actually, it was already installed in my ComfyUI/custom_nodes folder when I wrote my comment.

image

Can you please tell me guys what version of blender, and addon as well as ComfyUI-CUP you're running? Maybe make a small video tutorial for installing them and showing that it's all running fine would help a ton! Thank!

KarryCharon commented 4 months ago

@mcrimson974 we find a solution you need to install : https://github.com/AIGODLIKE/ComfyUI-CUP inside ComfyUI folder as unzip file

@gioxyer This is not a solution actually, it was already installed in my ComfyUI/custom_nodes folder when I wrote my comment.

image

Can you please tell me guys what version of blender, and addon as well as ComfyUI-CUP you're running? Maybe make a small video tutorial for installing them and showing that it's all running fine would help a ton! Thank!

git clone https://github.com/AIGODLIKE/ComfyUI-BlenderAI-node -b develop --recursive to download the lastest dev branch for testing

gioxyer commented 4 months ago

@mcrimson974 If I just tested also Control NET with open pose model is working, I use the correction version as beta 1.5.0, I didn't try the Blender version corrective 1.4.9, if you want I could try that version and make a tutorial

image

image

image

gioxyer commented 4 months ago

It works also with the last corrective version 1.4.9, make sure to set the path correctly on local server image