wavespeed-desktop icon indicating copy to clipboard operation
wavespeed-desktop copied to clipboard

Z-Image local generation crashes on Windows with bundled stable-diffusion.cpp commit 52e09ea, works with 3f8527a

Open SilverAmd opened this issue 2 months ago • 0 comments

Environment

  • WaveSpeed Desktop: 2.1.67
  • OS: Windows 11 Pro 26H2
  • GPU: NVIDIA GeForce RTX 5090 32 GB
  • Local generation backend: Vulkan
  • Z-Image models tested:
    • z_image_turbo-Q2_K.gguf
    • z_image_turbo-Q4_K.gguf
    • z_image_turbo-Q8_0.gguf

Problem

Local Z-Image generation consistently crashes with the backend currently downloaded by WaveSpeed Desktop.

WaveSpeed reports: Process exited with code 3221226505

Windows Event Viewer reports: Faulting application: sd.exe Faulting module: ucrtbase.dll Exception code: 0xc0000409

The backend downloaded by WaveSpeed is: stable-diffusion.cpp version unknown, commit 52e09ea

Steps to reproduce Install/update WaveSpeed Desktop 2.1.67. Open Z-Image → Run Z-Image locally for free. Use for example: Resolution: 1024 × 1024 Steps: 8 CFG: 1 Sampler: Euler Scheduler: Simple Generate an image.

Result: Process exited with code 3221226505

The same crash occurs with Q2_K, Q4_K and Q8_0.

Deleting the entire sd-bin directory and allowing WaveSpeed to download/extract it again does not solve the issue.

Backend comparison

I tested the exact same WaveSpeed Z-Image models manually with the official newer stable-diffusion.cpp Vulkan build: stable-diffusion.cpp version unknown, commit 3f8527a

Using the same model files: z_image_turbo-Q2_K.gguf Qwen3-4B-Instruct-2507-UD-Q4_K_XL.gguf ae.safetensors

The newer backend successfully generates images.

It also works with the same flags WaveSpeed uses: --offload-to-cpu --diffusion-fa

Tested successfully at: 1024x1024 8 steps CFG 1 Euler Simple scheduler

Workaround / confirmation I replaced the complete WaveSpeed sd-bin backend with the official stable-diffusion.cpp Vulkan build from commit 3f8527a.

I then copied: sd-cli.exe -> sd.exe

for WaveSpeed compatibility.

After that, Z-Image generation works normally directly from the WaveSpeed Desktop 2.1.67 UI. The successful test was subsequently performed directly within the WaveSpeed ​​2.1.67 GUI, not just via PowerShell.

WaveSpeed log: [SDGenerator] Spawning SD process: C:\Users\BOSS\AppData\Roaming\wavespeed-desktop\sd-bin\sd.exe

[SDGenerator] Generation successful

So the WaveSpeed UI, models, RTX 5090, Vulkan backend and model files appear to be working correctly.

The issue seems to be specifically related to the older bundled/downloaded stable-diffusion.cpp backend (52e09ea).

Expected behavior

WaveSpeed should download/use a newer stable-diffusion.cpp backend that supports Z-Image correctly on Windows/NVIDIA GPUs.

Actual behavior

The backend currently downloaded by WaveSpeed (52e09ea) crashes during Z-Image generation with: 0xc0000409

while newer stable-diffusion.cpp commit 3f8527a works correctly with the same WaveSpeed configuration and model files.

SilverAmd avatar Oct 06 '26 18:10 SilverAmd