Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Stable diffusion doesnt launches #10628

Closed
1 task done
Freeman9875 opened this issue May 22, 2023 · 4 comments
Closed
1 task done

[Bug]: Stable diffusion doesnt launches #10628

Freeman9875 opened this issue May 22, 2023 · 4 comments
Labels
question Further information is requested

Comments

@Freeman9875
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

when i run webui.sh in the terminal the terminal appears with an error message and disappears shortly after
i use linux mint 21.1

Steps to reproduce the problem

open webui.sh

What should have happened?

Stable diffusion opens

Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

--lowvram --disable-nan-check --autolaunch --no-half --opt-sub-quad-attention --precision full --no-half

List of extensions

none

Console logs

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on jeff user
################################################################

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

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

################################################################
Launching launch.py...
################################################################
Cannot locate TCMalloc (improves CPU memory usage)
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
Version: v1.2.1
Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045

Additional information

No response

@Freeman9875 Freeman9875 added the bug-report Report of a bug, yet to be confirmed label May 22, 2023
@Sakura-Luna Sakura-Luna added the question Further information is requested label May 22, 2023
@Sakura-Luna
Copy link
Collaborator

The logs does not contain any error messages, supplement description.

@Freeman9875
Copy link
Author

this what happens the terminal opens displays that then crashes

@Sakura-Luna Sakura-Luna added the cannot-reproduce I can't reproduce this, so I can't fix it. Add steps for reproduction and remove this tag. label May 22, 2023
@Freeman9875
Copy link
Author

i reinstalled it using bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)
then i get this
`################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on jeff user
################################################################

################################################################
Clone stable-diffusion-webui
################################################################
Cloning into 'stable-diffusion-webui'...
remote: Enumerating objects: 21199, done.
remote: Counting objects: 100% (748/748), done.
remote: Compressing objects: 100% (389/389), done.
remote: Total 21199 (delta 458), reused 557 (delta 349), pack-reused 20451
Receiving objects: 100% (21199/21199), 29.90 MiB | 21.98 MiB/s, done.
Resolving deltas: 100% (14817/14817), done.

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

################################################################
Launching launch.py...
################################################################
Cannot locate TCMalloc (improves CPU memory usage)
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
Version: v1.2.1
Commit hash: 89f9faa
Installing torch and torchvision
Looking in indexes: https://download.pytorch.org/whl/rocm5.2
Collecting torch==1.13.1+rocm5.2
Using cached https://download.pytorch.org/whl/rocm5.2/torch-1.13.1%2Brocm5.2-cp310-cp310-linux_x86_64.whl (1342.9 MB)
Collecting torchvision==0.14.1+rocm5.2
Using cached https://download.pytorch.org/whl/rocm5.2/torchvision-0.14.1%2Brocm5.2-cp310-cp310-linux_x86_64.whl (70.8 MB)
Collecting typing-extensions
Using cached https://download.pytorch.org/whl/typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting pillow!=8.3.*,>=5.3.0
Using cached https://download.pytorch.org/whl/Pillow-9.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)
Collecting requests
Using cached https://download.pytorch.org/whl/requests-2.28.1-py3-none-any.whl (62 kB)
Collecting numpy
Using cached https://download.pytorch.org/whl/numpy-1.24.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Collecting charset-normalizer<3,>=2
Using cached https://download.pytorch.org/whl/charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting certifi>=2017.4.17
Using cached https://download.pytorch.org/whl/certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached https://download.pytorch.org/whl/urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
Collecting idna<4,>=2.5
Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB)
Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision
Successfully installed certifi-2022.12.7 charset-normalizer-2.1.1 idna-3.4 numpy-1.24.1 pillow-9.3.0 requests-2.28.1 torch-1.13.1+rocm5.2 torchvision-0.14.1+rocm5.2 typing-extensions-4.4.0 urllib3-1.26.13
Traceback (most recent call last):
File "/home/jeff/Desktop/stable-diffusion/stable-diffusion-webui/launch.py", line 369, in
prepare_environment()
File "/home/jeff/Desktop/stable-diffusion/stable-diffusion-webui/launch.py", line 274, in prepare_environment
run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
File "/home/jeff/Desktop/stable-diffusion/stable-diffusion-webui/launch.py", line 135, in run_python
return run(f'"{python}" -c "{code}"', desc, errdesc)
File "/home/jeff/Desktop/stable-diffusion/stable-diffusion-webui/launch.py", line 111, in run
raise RuntimeError(message)
RuntimeError: Error running command.
Command: "/home/jeff/Desktop/stable-diffusion/stable-diffusion-webui/venv/bin/python3" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout:
stderr: /home/jeff/Desktop/stable-diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/cuda/init.py:88: UserWarning: HIP initialization: Unexpected error from hipGetDeviceCount(). Did you run some cuda functions before calling NumHipDevices() that might have already set an error? Error 101: hipErrorInvalidDevice (Triggered internally at ../c10/hip/HIPFunctions.cpp:110.)
return torch._C._cuda_getDeviceCount() > 0
Traceback (most recent call last):
File "", line 1, in
AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
`

@Sakura-Luna Sakura-Luna added duplicate and removed cannot-reproduce I can't reproduce this, so I can't fix it. Add steps for reproduction and remove this tag. labels May 22, 2023
@Sakura-Luna
Copy link
Collaborator

This is a question that is often raised and affected by many factors, see similar discussions.
#10309
#10444

@Sakura-Luna Sakura-Luna removed the bug-report Report of a bug, yet to be confirmed label May 22, 2023
@akx akx closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants