Stable diffusion automatic 1111 suddenly stopped working

I have an error that I’ve been dragging around with me for a few days…
I can generate some images then I suddenly get this error, especially with DPM2.

Sometimes I get a blue screen right away:
the error always looks like this:

Arguments: ('a little gray cat AND a Fox with a volcano in the background, highly detailed, digital painting, artstation, concept art, matte, sharp focus, illustration,  artstation trending,  centered, fog, dust, by Frank Frazetta', 'blury', 'None', 'None', 20, 4, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 0, 0, 0, False, False, False, '', 1, '', 0, '', True, False, False) {}
Traceback (most recent call last):
  File "C:\Users\Frieder\stable-diffusion-webui\modules\ui.py", line 185, in f
    res = list(func(*args, **kwargs))
  File "C:\Users\Frieder\stable-diffusion-webui\webui.py", line 57, in f
    res = func(*args, **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\modules\txt2img.py", line 49, in txt2img
    processed = process_images(p)
  File "C:\Users\Frieder\stable-diffusion-webui\modules\processing.py", line 430, in process_images
    res = process_images_inner(p)
  File "C:\Users\Frieder\stable-diffusion-webui\modules\processing.py", line 531, in process_images_inner
    samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength, prompts=prompts)
  File "C:\Users\Frieder\stable-diffusion-webui\modules\processing.py", line 664, in sample
    samples = self.sampler.sample(self, x, conditioning, unconditional_conditioning, image_conditioning=self.txt2img_image_conditioning(x))
  File "C:\Users\Frieder\stable-diffusion-webui\modules\sd_samplers.py", line 483, in sample
    samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args={
  File "C:\Users\Frieder\stable-diffusion-webui\modules\sd_samplers.py", line 385, in launch_sampling
    return func()
  File "C:\Users\Frieder\stable-diffusion-webui\modules\sd_samplers.py", line 483, in <lambda>
    samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args={
  File "C:\Users\Frieder\stable-diffusion-webui\venv\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\k-diffusion\k_diffusion\sampling.py", line 146, in sample_dpm_2
    denoised_2 = model(x_2, sigma_mid * s_in, **extra_args)
  File "C:\Users\Frieder\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\modules\sd_samplers.py", line 305, in forward
    x_out = self.inner_model(x_in, sigma_in, cond={"c_crossattn": [cond_in], "c_concat": [image_cond_in]})
  File "C:\Users\Frieder\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\k-diffusion\k_diffusion\external.py", line 112, in forward
    eps = self.get_eps(input * c_in, self.sigma_to_t(sigma), **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\k-diffusion\k_diffusion\external.py", line 138, in get_eps
    return self.inner_model.apply_model(*args, **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 987, in apply_model
    x_recon = self.model(x_noisy, t, **cond)
  File "C:\Users\Frieder\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 1410, in forward
    out = self.diffusion_model(x, t, context=cc)
  File "C:\Users\Frieder\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\diffusionmodules\openaimodel.py", line 732, in forward
    h = module(h, emb, context)
  File "C:\Users\Frieder\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\diffusionmodules\openaimodel.py", line 83, in forward
    x = layer(x, emb)
  File "C:\Users\Frieder\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\diffusionmodules\openaimodel.py", line 250, in forward
    return checkpoint(
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\diffusionmodules\util.py", line 114, in checkpoint
    return CheckpointFunction.apply(func, len(inputs), *args)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\diffusionmodules\util.py", line 127, in forward
    output_tensors = ctx.run_function(*ctx.input_tensors)
  File "C:\Users\Frieder\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\diffusionmodules\openaimodel.py", line 264, in _forward
    emb_out = self.emb_layers(emb).type(h.dtype)
SystemError: <function Module._call_impl at 0x000002B3BB5370A0> returned NULL without setting an exception

then everthing stops and i cant generarte new images, only after restart …

The whole thing runs on an Intel I7-7820x / 32GB RAM and Nvidia Gforce GTX 1070 (8Gb Vram)
one day it worked and then suddenly it didn’t work the other day
maybe it’s the model I’m using?
Can you help me ?

edit sometimes it just stops like this: No error at all just stop…
and “please press any key” -.-

I did a complete reinstallation including Pyton 10.6, but the result is the same
Bluescrens and stopping generating without errors…

I have now tried the studio and the game version of the GTX 1070 Tiber without success.

Can it maybe be due to the Cuda version?
or maybe an old WebUi somehow !?

maybe my deinstallation was wrong…so i just deleted all files

an upgrade of the chipset driver and mainbord driver brought … nothing

i copied it to C: … also no success

1 Like