mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2381] Image generation on Windows: sd-cli exits 0xC0000135 — lib_dirs points at <CUDA>\bin, the runtime DLLs live in bin\x64 #961
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#961
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hogtinbao on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2381
Summary
On Windows the image build records
lib_dirsas<CUDA_ROOT>\bin, but CUDA 12/13 ship the runtime libraries in<CUDA_ROOT>\bin\x64.sd-cli.exeis therefore started with aPATHthat does not containcublas64_13.dll, and every image request fails. Image generation is unusable on Windows unless the config is edited by hand.Environment
mainwinget install -e --source winget --id Nvidia.CUDA --version 13.0.venv\Scripts\python.exe tools\image\install.py --config strata-iq3_xxs.jsonbuildssd-cli(CUDA) and downloads + SHA-256-verifies all three files (Q6_K6.27 GB, text encoder 5.1 GB, VAE 0.68 GB)Steps to reproduce
tools/image/install.pyfor an existing config.GET /healthreports"image_generation": true, so the feature is on.POST /v1/images/generationswith{"prompt": "a cat", "size": "512x512"}.Actual result
3221225781is0xC0000135=STATUS_DLL_NOT_FOUND— the loader could not resolve an import ofsd-cli.exe. Started from a shell with<CUDA_ROOT>\binonPATH,sd-cli.exenames the file it wants:cublas64_13.dll.Root cause
setup.py:3154, inbuild_image_engine:tools/image/install.pywrites that list into the run config'simages.lib_dirs, andserve/server.py:2799/serve/images.py:135prepend it to the child'sPATH. On a CUDA 13.0.2 install:binholds the tools (nvcc.exe,ptxas.exe,nvlink.exe, ...) — the runtime libraries moved tobin\x64in CUDA 12. The Linux branch (lib64) is correct, so this is Windows-only.Suggested fix
List both, the
x64subdirectory first, which covers every CUDA layout:Workaround
Add
<CUDA_ROOT>\bin\x64toimages.lib_dirsin the run config and restart the server (theimagessection is copied into the running service at startup). After that the same GPU renders 512×512 in ~21 s and 1024×1024 in ~26 s atQ6_K, so nothing else is wrong here.Side note
The "the end of its log:" tail is empty in this case, so the user is left with a bare exit code. When a child exits with
0xC0000135, one line saying that a library could not be found would turn this into a one-glance diagnosis.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.