Black images generated on a Mac Studio with M3 Ultra 256GB RAM
- 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
Generate a wide-angle version from a given image.
### Actual Behavior
Generate only black images on a Mac Studio with M3 Ultra and 256GB RAM but work normally on a MacBook Pro with M3 Max and 128 GB RAM with the same workflow and Comfyui settings.
### Steps to Reproduce
Just run the workflow with default settings. It works on a MBP with M3 Max and 128Gb RAM properly but not on Mac Studio with M3 Ultra and 256GB RAM.
[多角度.json](https://github.com/user-attachments/files/23427883/default.json)
### Debug Logs
```powershell
Adding extra search path custom_nodes /Users/ccl/Documents/ComfyUI/custom_nodes
Adding extra search path download_model_base /Users/ccl/Documents/ComfyUI/models
Adding extra search path custom_nodes /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes
Setting output directory to: /Users/ccl/Documents/ComfyUI/output
Setting input directory to: /Users/ccl/Documents/ComfyUI/input
Setting user directory to: /Users/ccl/Documents/ComfyUI/user
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-11-07 17:09:17.758
** Platform: Darwin
** Python version: 3.12.9 (main, Feb 12 2025, 15:09:19) [Clang 19.1.6 ]
** Python executable: /Users/ccl/Documents/ComfyUI/.venv/bin/python
** ComfyUI Path: /Applications/ComfyUI.app/Contents/Resources/ComfyUI
** ComfyUI Base Folder Path: /Applications/ComfyUI.app/Contents/Resources/ComfyUI
** User directory: /Users/ccl/Documents/ComfyUI/user
** ComfyUI-Manager config path: /Users/ccl/Documents/ComfyUI/user/default/ComfyUI-Manager/config.ini
** Log path: /Users/ccl/Documents/ComfyUI/user/comfyui.log
[ComfyUI-Manager] Skipped fixing the 'comfyui-frontend-package' dependency because the ComfyUI is outdated.
Prestartup times for custom nodes:
1.0 seconds: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager
Checkpoint files will always be loaded safely.
Total VRAM 262144 MB, total RAM 262144 MB
pytorch version: 2.10.0.dev20251106
Mac Version (26, 1)
Forcing FP32, if this improves things please report it.
Set vram state to: SHARED
Device: mps
Using sub quadratic optimization for attention, if you have memory or speed issues try using: --use-split-cross-attention
Python version: 3.12.9 (main, Feb 12 2025, 15:09:19) [Clang 19.1.6 ]
ComfyUI version: 0.3.67
[Prompt Server] web root: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/web_custom_versions/desktop_app
Traceback (most recent call last):
File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2131, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI-GGUF/__init__.py", line 7, in
from .nodes import NODE_CLASS_MAPPINGS
File "/Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI-GGUF/nodes.py", line 15, in
from .ops import GGMLOps, move_patch_to_device
File "/Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI-GGUF/ops.py", line 2, in
import gguf
ModuleNotFoundError: No module named 'gguf'
Cannot import /Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI-GGUF module for custom nodes: No module named 'gguf'
[rgthree-comfy] Loaded 48 magnificent nodes. 🎉
Module 'diffusers' load failed. If you don't have it installed, do it:
pip install diffusers
[ComfyUI-Easy-Use] server: v1.3.4 Loaded
[ComfyUI-Easy-Use] web root: /Users/ccl/Documents/ComfyUI/custom_nodes/comfyui-easy-use/web_version/v2 Loaded
[/Users/ccl/Documents/ComfyUI/custom_nodes/comfyui_controlnet_aux] | INFO -> Using ckpts path: /Users/ccl/Documents/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts
[/Users/ccl/Documents/ComfyUI/custom_nodes/comfyui_controlnet_aux] | INFO -> Using symlinks: False
[/Users/ccl/Documents/ComfyUI/custom_nodes/comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
DWPose: Onnxruntime with acceleration providers detected
Traceback (most recent call last):
File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2131, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/Users/ccl/Documents/ComfyUI/custom_nodes/comfyui-mlx/__init__.py", line 3, in
import mlx.core as mx
ModuleNotFoundError: No module named 'mlx'
Cannot import /Users/ccl/Documents/ComfyUI/custom_nodes/comfyui-mlx module for custom nodes: No module named 'mlx'
Traceback (most recent call last):
File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2131, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI_RH_DreamOmni2/__init__.py", line 1, in
from .rh_dreamomni2 import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "/Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI_RH_DreamOmni2/rh_dreamomni2.py", line 2, in
from optimum.quanto import freeze, qint8, quantize
ModuleNotFoundError: No module named 'optimum'
Cannot import /Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI_RH_DreamOmni2 module for custom nodes: No module named 'optimum'
[VideoHelperSuite] - WARNING - Failed to import imageio_ffmpeg
[VideoHelperSuite] - ERROR - No valid ffmpeg found.
### Loading: ComfyUI-Manager (V3.36)
[ComfyUI-Manager] network_mode: public
### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)
Import times for custom nodes:
0.0 seconds: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds (IMPORT FAILED): /Users/ccl/Documents/ComfyUI/custom_nodes/comfyui-mlx
0.0 seconds (IMPORT FAILED): /Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI_RH_DreamOmni2
0.0 seconds: /Users/ccl/Documents/ComfyUI/custom_nodes/qweneditutils
0.0 seconds: /Users/ccl/Documents/ComfyUI/custom_nodes/comfyui-inpaint-cropandstitch
0.0 seconds (IMPORT FAILED): /Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI-GGUF
0.0 seconds: /Users/ccl/Documents/ComfyUI/custom_nodes/ComfyUI-AutoCropFaces
0.0 seconds: /Users/ccl/Documents/ComfyUI/custom_nodes/comfyui-videohelpersuite
0.0 seconds: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager
0.0 seconds: /Users/ccl/Documents/ComfyUI/custom_nodes/rgthree-comfy
0.1 seconds: /Users/ccl/Documents/ComfyUI/custom_nodes/comfyui-kjnodes
0.1 seconds: /Users/ccl/Documents/ComfyUI/custom_nodes/gguf
0.2 seconds: /Users/ccl/Documents/ComfyUI/custom_nodes/comfyui_controlnet_aux
0.2 seconds: /Users/ccl/Documents/ComfyUI/custom_nodes/comfyui-easy-use
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
Failed to initialize database. Please ensure you have installed the latest requirements. If the error persists, please report this as in future the database will be required: (sqlite3.OperationalError) unable to open database file
(Background on this error at: https://sqlalche.me/e/20/e3q8)
Starting server
To see the GUI go to: http://127.0.0.1:8000
comfyui-frontend-package not found in requirements.txt
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/buttonGroup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/button.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/popup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/widgetInputs.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
comfyui-frontend-package not found in requirements.txt
FETCH ComfyRegistry Data: 5/104
FETCH ComfyRegistry Data: 10/104
FETCH ComfyRegistry Data: 15/104
FETCH ComfyRegistry Data: 20/104
FETCH ComfyRegistry Data: 25/104
FETCH ComfyRegistry Data: 30/104
FETCH ComfyRegistry Data: 35/104
FETCH ComfyRegistry Data: 40/104
FETCH ComfyRegistry Data: 45/104
FETCH ComfyRegistry Data: 50/104
FETCH ComfyRegistry Data: 55/104
got prompt
Using split attention in VAE
Using split attention in VAE
VAE load device: mps, offload device: cpu, dtype: torch.float32
Requested to load WanVAE
loaded completely 9.5367431640625e+25 484.05659103393555 True
Requested to load QwenImageTEModel_
loaded completely 9.5367431640625e+25 14776.552734375 True
CLIP/text encoder model load device: cpu, offload device: cpu, current: cpu, dtype: torch.float32
FETCH ComfyRegistry Data: 60/104
FETCH ComfyRegistry Data: 65/104
FETCH ComfyRegistry Data: 70/104
FETCH ComfyRegistry Data: 75/104
FETCH ComfyRegistry Data: 80/104
model weight dtype torch.float32, manual cast: None
model_type FLUX
FETCH ComfyRegistry Data: 85/104
FETCH ComfyRegistry Data: 90/104
FETCH ComfyRegistry Data: 95/104
FETCH ComfyRegistry Data: 100/104
FETCH ComfyRegistry Data [DONE]
[ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
[ComfyUI-Manager] All startup tasks have been completed.
Requested to load QwenImage
loaded completely 9.5367431640625e+25 77935.79516601562 True
100%|██████████| 8/8 [01:45<00:00, 13.16s/it]
/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py:1594: RuntimeWarning: invalid value encountered in cast
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
Prompt executed in 151.59 seconds
```
### Other
The Sogni app (https://www.sogni.ai/) encounters the same issue of generating black images as Comfyui on the Mac Studio with M3 Ultra and 256 GB RAM, while it works properly on MBP with M3 Max and 128GB RAM. I wonder if this is a compatibility issue with only the Mac Studio with M3 Ultra and 256GB RAM.
Contributor guide
Assessment
This issue has not been assessed yet.