AttributeError: 'ModelMMAP' object has no attribute 'get_file_handle' since update 0.23
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [ ] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
The VAE should load and execute normally.
### Actual Behavior
Execution fails with:
'ModelMMAP' object has no attribute 'get_file_handle'
### Steps to Reproduce
Start ComfyUI.
Load a workflow containing a VAE node.
Execute the workflow.
The workflow fails when the VAE is accessed.
### Debug Logs
```powershell
## Debug Logs
[INFO] [ComfyUI-Manager] All startup tasks have been completed.
[MINIMAL] [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js
[MINIMAL] [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/widgetInputs.js
[MINIMAL] [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/clipspace.js
[MINIMAL] [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js
[INFO] got prompt
[ERROR] !!! Exception during processing !!!
'ModelMMAP' object has no attribute 'get_file_handle'
Traceback (most recent call last):
File "/workspace/runpod-slim/ComfyUI/execution.py", line 536, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(...)
File "/workspace/runpod-slim/ComfyUI/execution.py", line 336, in get_output_data
Additional error observed previously:
/workspace/runpod-slim/ComfyUI/.venv-cu128/lib/python3.12/site-packages/comfy_aimdo/aimdo.so:
undefined symbol: model_mmap_get_file_handle
```
### Other
Description
After updating ComfyUI, loading a VAE causes an exception during workflow execution.
The error appears to originate from VAE loading and seems related to the ModelMMAP interface. A component is attempting to call get_file_handle(), but the current ModelMMAP object no longer exposes this method.
Error
[ERROR] !!! Exception during processing !!!
'ModelMMAP' object has no attribute 'get_file_handle'
Traceback (most recent call last):
File "/workspace/runpod-slim/ComfyUI/execution.py", line 536, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(...)
File "/workspace/runpod-slim/ComfyUI/execution.py", line 336, in get_output_data
I also previously observed:
undefined symbol: model_mmap_get_file_handle
which may be related.
Environment
ComfyUI: latest Git version at the time of reporting
Python: 3.12
CUDA environment (.venv-cu128)
Linux (RunPod)
Installed package:
comfy-aimdo 0.4.7
Additional Notes
The issue appears to be caused by code expecting the older ModelMMAP.get_file_handle() API. It may be an incompatibility between recent ComfyUI changes and a component interacting with memory-mapped model files (possibly AIMDO or related loading/offloading code).
Contributor guide
Assessment
This issue has not been assessed yet.