-
Notifications
You must be signed in to change notification settings - Fork 11k
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.
Description
Custom Node Testing
- I have tried disabling custom nodes and the issue persists (see how to disable custom nodes if you need help)
Expected Behavior
For Loops work in --cache-none mode
Actual Behavior
Traceback (most recent call last):
File "/home/.../ComfyUI/execution.py", line 548, in execute
subcache = await cache.ensure_subcache_for(unique_id, new_node_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/.../ComfyUI/comfy_execution/caching.py", line 423, in ensure_subcache_for
self.ancestors[child_id].add(node_id)
~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: '4.0.0.1'```
I tried to replace it on `setdefault`, but got index out of range error in other place
### Steps to Reproduce
Use any custom nodes which implement For Loops, for example from here, using this workflow (embedded): https://github.com/BadCafeCode/execution-inversion-demo-comfyui/blob/main/examples/SimpleForLoop.png
### Debug Logs
```powershell
!!! Exception during processing !!!
Other
using comfyui commit 4ffea0e
Metadata
Metadata
Assignees
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.