stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: :0:rocdevice.cpp :2673: 1263352162 us: 21870: [tid:0x7f64e3eff640] Device::callbackQueue aborting with error : HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION: The agent attempted to access memory beyond the largest legal address. code: 0x29

Open Boom-Hacker opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

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

What happened?

i use rx 5500xt and override to gfx1030. but it throw it:

:0:rocdevice.cpp :2673: 1263352162 us: 21870: [tid:0x7f64e3eff640] Device::callbackQueue aborting with error : HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION: The agent attempted to access memory beyond the largest legal address. code: 0x29

i use the pytorch 2.0.0

Steps to reproduce the problem

(need a rx 5500xt card) Please analyze it from a theoretical perspective

What should have happened?

generate failed

Commit where the problem happens

22bcc7be428c94e9408f589966c2040187245d81

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

no

List of extensions

no

Console logs

(venv) darksun0031@darksun-server:~/stable-diffusion-webui$ ./webui.sh 

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

################################################################
Running on darksun0031 user
################################################################

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

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

################################################################
Launching launch.py...
################################################################
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Installing requirements for Web UI
Launching Web UI with arguments: 
No module 'xformers'. Proceeding without it.
/home/darksun0031/stable-diffusion-webui/venv/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
  warnings.warn(
Loading weights [89d59c3dde] from /home/darksun0031/stable-diffusion-webui/models/Stable-diffusion/novelaifinal-pruned.ckpt
Creating model from config: /home/darksun0031/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0): 
Model loaded in 5.3s (load weights from disk: 2.8s, create model: 0.3s, apply weights to model: 0.6s, apply half(): 0.4s, load VAE: 0.3s, move model to device: 0.7s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 9.3s (import torch: 0.9s, import gradio: 0.8s, import ldm: 0.8s, other imports: 0.6s, load scripts: 0.3s, load SD checkpoint: 5.4s, create ui: 0.4s, gradio launch: 0.1s).
:0:rocdevice.cpp            :2673: 1263352162 us: 21870: [tid:0x7f64e3eff640] Device::callbackQueue aborting with error : HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION: The agent attempted to access memory beyond the largest legal address. code: 0x29

Additional information

No response

Boom-Hacker avatar Apr 02 '23 01:04 Boom-Hacker

torch 1.13.1 is normal

Boom-Hacker avatar Apr 02 '23 01:04 Boom-Hacker

Same error on 5700xt using ubuntu docker image with pytorch 2.0

bebanowski avatar Apr 13 '23 20:04 bebanowski

Please try updating your installation to the current master (1.3.0), and if this keeps happening, open a new issue.

akx avatar May 28 '23 19:05 akx