AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: ./webui.sh line 304: 10524 Segmentation fault #16485

Open gjdunga opened 5 days ago

gjdunga commented 5 days ago

Checklist

What happened?

While using: Windows 10 WSL Ubuntu 20.24 WSL version: 2.3.17.0 Kernel version: 5.15.153.1-2 WSLg version: 1.0.64 MSRDC version: 1.2.5326 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.22635.4145 PRETTY_NAME="Ubuntu 22.04.5 LTS" Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2

webui.sh preformed a segment fault on line 304 @ 10524

Steps to reproduce the problem

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui ./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 gjdunga user ################################################################

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

################################################################ Create and activate python venv ################################################################

################################################################ Launching launch.py... ################################################################ glibc version is 2.35 Check TCMalloc: libtcmalloc_minimal.so.4 ./webui.sh: line 258: bc: command not found ./webui.sh: line 258: [: -eq: unary operator expected libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 Python 3.11.0rc1 (main, Apr 21 2024, 22:33:16) [GCC 11.4.0] Version: v1.10.1 Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2 Launching Web UI with arguments: ./webui.sh: line 304: 10524 Segmentation fault (core dumped) "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"

What should have happened?

It should not have seg faulted?

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

System will not spit out a debug or sysinfo file. it segfaults before this.

Console logs

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

################################################################
Running on gjdunga user
################################################################

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

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
glibc version is 2.35
Check TCMalloc: libtcmalloc_minimal.so.4
./webui.sh: line 258: bc: command not found
./webui.sh: line 258: [: -eq: unary operator expected
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4
Python 3.11.0rc1 (main, Apr 21 2024, 22:33:16) [GCC 11.4.0]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Launching Web UI with arguments:
./webui.sh: line 304: 10524 Segmentation fault      (core dumped) "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
gjdunga@Splash:~/stable-diffusion-webui$

Additional information

No other information I can report at this moment. Ask for info I will report.

samvv commented 1 day ago

I have the same bug on Arch Linux running stable-diffusion-webui 1.10.0, TCMalloc enabled, Torch with ROCm version 5.6 installed and the recommended Python 3.10.6.

samvv commented 1 day ago

Never mind, I managed to fix it by letting webui.sh install the dependencies for me. Seems like the wiki is a bit out of date.