Comfy-Org/ComfyUI_frontend

Identify the node causing errors directly in error traceback

Aberta

#6.447 aberto em 30 de out. de 2025

 (7 comentários) (0 reação) (0 responsável)TypeScript (610 forks)github user discovery
Featurearea:uigood first issue

Métricas do repositório

Stars
 (1.838 estrelas)
Métricas de merge de PR
 (Mesclagem média 4d 21h) (881 fundiu PRs em 30d)

Description

Hey everyone first off thank you all so very much for the project you have created and the way you have included the community along the way, I truely believe ComfyUI will be right there in 100 years from now! Just like the computers like amstrad commodore and spectrum that got some of us interested in the 80 starting out!

I work with some Mega-flows.. (cant even fit on 2 screens!)

These flows have many varied elements or custom nodes and i wanted to ask a question really and then thought actually, this would be a great native feature even if it is already there in some way or form or menu or part of some node or such.

Feature: During the error pop up, the node that has instigated the error should be displayed in the error handling. image

result would be similar to the way in which we can see the number of the nodes in the UI: please forgive my crude art...

image

then when working in a flow with for example 2600 separate nodes it could be a lot more streamlined that trying to scroll around looking for the red box :-)

if this feature is in existence in some form please help me to find the functionality as i have searched bot the code as much as i can and the ComfyUI to no avail.

if it is not a feature then perhaps you think the idea is of sufficient value to be considered as a feature of ComfyUI as opposed to a custom node!

thanks again team!


This issue is transferred from: https://github.com/comfyanonymous/ComfyUI/issues/3743

Original issue was created by @macguyversmusic at 2024-06-16T15:11:03.000Z

Original Comments:

@BrechtCorbeel: Or a button that opens the code or the file.

@chrisgoringe: Is the node number really useful? How about an entry in the right-click menu "Show last error node" which would move the view to place the red box in the center of the view?

@Debojyoti-Bhattacharyya: I am very new to the project. Can anyone please help me to understand where does the error get generated when any node fails? Thank you

@ltdrdata: > I am very new to the project. Can anyone please help me to understand where does the error get generated when any node fails? Thank you

Error message is generated from here. https://github.com/comfyanonymous/ComfyUI/blob/de17a9755ecb8419cb167fe8504791df5b07246f/execution.py#L301

And it is passed to front by send_sync method. https://github.com/comfyanonymous/ComfyUI/blob/de17a9755ecb8419cb167fe8504791df5b07246f/execution.py#L299

front handles that message. https://github.com/comfyanonymous/ComfyUI/blob/de17a9755ecb8419cb167fe8504791df5b07246f/web/scripts/api.js#L142

@Msquan168: File "E:\ComfyUI\execution.py", line 323, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

File "E:\ComfyUI\execution.py", line 198, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

File "E:\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i)

File "E:\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs))

@lkgs: 怎么解决

@Barry-del: PixPin_2025-01-01_21-04-47 z 实在没办法了,谁帮我加爵一下

┆Issue is synchronized with this Notion page by Unito

Guia do colaborador