ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

ComfyUI started but the page crashes the browser

Open kurophali opened this issue 1 year ago • 2 comments

Expected Behavior

start ui normally

Actual Behavior

I started it via vscode and got the log Starting server To see the GUI go to: http://127.0.0.1:8188

I tried with chrome and only the menu flashed for 1 frame then the browser said the page crashed with STATUS_BREAKPOINT. I also tried edge and it did not work.

I'm wondering if it's my workflow that caused this. Is there anyway I can replace the startup workflow in comfyUI to try if it works out?

Steps to Reproduce

I did not find the cause

Debug Logs



### Other

_No response_

kurophali avatar Aug 28 '24 12:08 kurophali

FYI - this started happening to me yesterday WITHOUT updating anything. After updating, sometimes it works, sometimes it doesn't.

I don't think its the start-up workflow, as I have tried different browsers (which have there own ComfyUI cache).

Tried in:

  • Chrome
  • Edge
  • Opera GX

They all either take ages to spin up or present this error:

image

If I spam "Refresh" enough times, it eventually works.

This appears in the Console:

[ERROR] An error occurred while retrieving information for the 'ClipTextFromTemplateEncode' node.
Traceback (most recent call last):
  File "D:\apps\SD-WebUI\ComfyUI\server.py", line 468, in get_object_info
    out[x] = node_info(x)
  File "D:\apps\SD-WebUI\ComfyUI\server.py", line 436, in node_info
    info['input'] = obj_class.INPUT_TYPES()
  File "D:\apps\SD-WebUI\ComfyUI\custom_nodes\CLIPTextFromTemplateEncode.py", line 36, in INPUT_TYPES
    cls.styles = [row for row in reader if len(row) == 3 and row[1] != "prompt" and row[0] != "None"]
  File "D:\apps\SD-WebUI\ComfyUI\custom_nodes\CLIPTextFromTemplateEncode.py", line 36, in <listcomp>
    cls.styles = [row for row in reader if len(row) == 3 and row[1] != "prompt" and row[0] != "None"]
  File "D:\apps\Python\Python310\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 61: character maps to <undefined>

lord-lethris avatar Aug 28 '24 12:08 lord-lethris

p

For me I just found that it was the custom nodes in Jovimetrix that caused the problem, even if I didn't use it in the workflow. Refreshing did not work and there's no additional error logs either. BTW I tried fast clicking on the load button before the page crashes but it didn't work lols. Try to move your custom nodes in one by one to identify which one causes the problem.

kurophali avatar Aug 28 '24 13:08 kurophali

p

For me I just found that it was the custom nodes in Jovimetrix that caused the problem, even if I didn't use it in the workflow. Refreshing did not work and there's no additional error logs either. BTW I tried fast clicking on the load button before the page crashes but it didn't work lols. Try to move your custom nodes in one by one to identify which one causes the problem.

Thank you for posting. I just woke up to this issue ("Status Breakpoint" immediate Chrome browser window crash) and moving the Jovimetrix node folder out custom_nodes seems to have resolved it for now.

Saved me a lot of time - thanks!

CCpt5 avatar Aug 28 '24 14:08 CCpt5

Issue transferred.

huchenlei avatar Aug 28 '24 15:08 huchenlei

[ERROR] An error occurred while retrieving information for the 'ClipTextFromTemplateEncode' node. Traceback (most recent call last): File "D:\apps\SD-WebUI\ComfyUI\server.py", line 468, in get_object_info out[x] = node_info(x) File "D:\apps\SD-WebUI\ComfyUI\server.py", line 436, in node_info info['input'] = obj_class.INPUT_TYPES() File "D:\apps\SD-WebUI\ComfyUI\custom_nodes\CLIPTextFromTemplateEncode.py", line 36, in INPUT_TYPES cls.styles = [row for row in reader if len(row) == 3 and row[1] != "prompt" and row[0] != "None"] File "D:\apps\SD-WebUI\ComfyUI\custom_nodes\CLIPTextFromTemplateEncode.py", line 36, in cls.styles = [row for row in reader if len(row) == 3 and row[1] != "prompt" and row[0] != "None"] File "D:\apps\Python\Python310\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 61: character maps to

That isnt a Jovimetrix problem, that is a problem in ClipText not being able to decode unicode*.

File "D:\apps\Python\Python310\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0]

should be the hint it is using old windows code page to decode, which is great if this was 1998.

ClipText should be updated to encode for UNICODE not just for WINDOWS CP1252.

Amorano avatar Aug 28 '24 16:08 Amorano

CLIPTextFromTemplateEncode

Can you tell us where you even got this node? The error implies is a raw CLIPTextFromTemplateEncode.py file in your custom node directory which is either something you made or is not within the Manager repository of registered nodes.

The problem that node is having, not my pack, is the use of old encoding methods. Update the encoding to Unicode not just the older Windows Codepage 1252.

Amorano avatar Aug 28 '24 16:08 Amorano

I'm still able to repo the tab process crash on head without Jovimetrix enabled. https://github.com/Comfy-Org/ComfyUI_frontend/issues/641

without-ordinary avatar Sep 02 '24 04:09 without-ordinary

I'm still able to repo the tab process crash on head without Jovimetrix enabled. Comfy-Org/ComfyUI_frontend#641

These are not the same error.

huchenlei avatar Sep 02 '24 13:09 huchenlei

CLIPTextFromTemplateEncode

Can you tell us where you even got this node? The error implies is a raw CLIPTextFromTemplateEncode.py file in your custom node directory which is either something you made or is not within the Manager repository of registered nodes.

The problem that node is having, not my pack, is the use of old encoding methods. Update the encoding to Unicode not just the older Windows Codepage 1252.

That node can be found here: https://civitai.com/models/28238/simple-text-style-template-node-for-comfyui

christian-byrne avatar Sep 03 '24 00:09 christian-byrne