AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
140.66k stars 26.61k forks source link

[Bug]: Segmentation fault when launching on Apple Silicon #15044

Open quantumgolem opened 7 months ago

quantumgolem commented 7 months ago

Checklist

What happened?

When I try to run webui.sh, I get a segmentation fault.

Steps to reproduce the problem

  1. Install stable-diffusion-webui
  2. Open webui.sh and add in the line python_cmd="python3"

What should have happened?

It should open

What browsers do you use to access the UI ?

No response

Sysinfo

Not applicable

Console logs

$ ./webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on admin user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
python venv already activate or run without venv: /Users/admin/Documents/AI/stable-diffusion-webui/stable-diffusion
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.9.18 | packaged by conda-forge | (main, Dec 23 2023, 16:36:46)
[Clang 16.0.6 ]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --skip-torch-cuda-test --no-half --use-cpu interrogate
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Style database not found: /Users/admin/Documents/AI/stable-diffusion-webui/styles.csv
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
./webui.sh: line 256: 17932 Segmentation fault: 11  "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"

Additional information

No response

tangzhebiedong commented 7 months ago

the same question

gruckion commented 5 months ago

Same, will try to remember to come back if I figure it out.