Comfy-Org / Comfy-Org/ComfyUI

Segmentation fault (core dumped)

Open
#2,458 4 comments 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

This is not identical to the other post with the same title.

I get this error when running any stable diffusion XL model, and a similar (but shorter) error when I run any 1.0 model. It throws the error directly after loading the model.

Error I get for all XL models:
Very long, uploaded to [pastebin](https://pastebin.com/eTFs3dxJ).

Error I get for all 1.5/1.0 models:
```
missing {'cond_stage_model.clip_l.text_projection', 'cond_stage_model.clip_l.logit_scale'}
left over keys: dict_keys(['cond_stage_model.clip_l.transformer.text_model.embeddings.position_ids'])
```

PC Specs:
OS: RedHat Enterprise Linux 9.2
Python Version: 3.9.18
CPU: Ryzen 5 3600
GPU: RX6600XT
ROCm Version: 6.0

Installed Libraries:
```
aiohttp 3.9.1
aiosignal 1.3.1
argcomplete 1.12.0
async-timeout 4.0.3
attrs 23.2.0
Brlapi 0.8.2
chardet 4.0.0
cockpit 300.3
cupshelpers 1.0
dasbus 1.4
dbus-python 1.2.18
distro 1.5.0
einops 0.7.0
file-magic 0.4.0
filelock 3.9.0
frozenlist 1.4.1
fsspec 2023.12.2
gpg 1.15.1
huggingface-hub 0.20.1
idna 2.10
Jinja2 3.1.2
libcomps 0.1.18
lxml 4.6.5
MarkupSafe 2.1.3
mpmath 1.3.0
multidict 6.0.4
networkx 3.0
nftables 0.1
numpy 1.24.1
packaging 23.2
perf 0.1
pexpect 4.8.0
Pillow 9.3.0
pip 21.2.3
psutil 5.8.0
ptyprocess 0.6.0
pycairo 1.20.1
pycups 2.0.1
pycurl 7.43.0.6
pyenchant 3.2.0
PyGObject 3.40.1
pyparsing 2.4.7
PySocks 1.7.1
python-dateutil 2.8.1
python-linux-procfs 0.7.0
pytorch-triton-rocm 2.1.0
pyudev 0.22.0
pyxdg 0.27
PyYAML 5.4.1
regex 2023.12.25
requests 2.25.1
rpm 4.16.1.3
safetensors 0.4.1
scipy 1.11.4
selinux 3.5
sepolicy 3.5
setools 4.4.3
setroubleshoot 3.3.32
setuptools 53.0.0
six 1.15.0
sos 4.6.0
sympy 1.12
systemd-python 234
tokenizers 0.15.0
torch 2.1.2+rocm5.6
torchaudio 2.1.2+rocm5.6
torchsde 0.2.6
torchvision 0.16.2+rocm5.6
tqdm 4.66.1
trampoline 0.1.2
transformers 4.36.2
triton 2.1.0
typing_extensions 4.4.0
urllib3 1.26.5
xformers 0.0.23.post1
yarl 1.9.4
```

Steps to reproduce:
1. Install ComfyUI following the manual installation guide.
2. Add any stable diffusion model and it's vae
3. Start ComfyUI and attempt to generate any image through the UI

Full log (excluding above errors):
```
Total VRAM 8176 MB, total RAM 31748 MB
WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.1.2+cu121 with CUDA 1201 (you have 2.1.2+rocm5.6)
Python 3.9.18 (you have 3.9.18)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
Set XFORMERS_MORE_DETAILS=1 for more details
xformers version: 0.0.23.post1
Set vram state to: NORMAL_VRAM
Device: cuda:0 AMD Radeon RX 6600 XT : native
VAE dtype: torch.float32
Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --use-split-cross-attention
Starting server

To see the GUI go to: http://127.0.0.1:8188
got prompt
model_type EPS
adm 0
Using split attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using split attention in VAE
[Long error]
Requested to load SD1ClipModel
Loading 1 new model
Segmentation fault (core dumped)
```

I've tried all of the relevant fixes in issue #1142 but none of them proved helpful.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.