mirror of
https://github.com/Comfy-Org/ComfyUI_Nvidia_VFX_Nodes.git
synced 2026-11-04 23:37:30 +00:00
[GH-ISSUE #20] Cant run inside wsl2 with 5060 ti 16gb is this only for w11? #17
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI_Nvidia_VFX_Nodes#17
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 @alludus on GitHub (Mar 17, 2026).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI_Nvidia_VFX_Nodes/issues/20
Here's a complete handoff summary:
NVIDIA RTX Video Super Resolution (nvvfx) on WSL2 — Debug Session Summary
Goal: Get the
comfyui_nvidia_rtx_nodesComfyUI custom node working on WSL2 Ubuntu with RTX 5060 Ti 16GB.Environment:
comfyui~/runcomfyui2.shThe Node:
https://github.com/Comfy-Org/Nvidia_RTX_Nodes_ComfyUInvvfx(notnvidia.vfx— the node is correct)nvvfx.VideoSuperReswithcomfy_api.latestasync extension systemsr.load()is calledWhat Was Ruled Out:
nvvfxnamespaceimport nvvfxworksVideoSuperRes()object creation works.sodependencies resolved onceLD_LIBRARY_PATHset to~/anaconda3/envs/comfyui/lib/python3.10/site-packages/nvvfx/libslibnvinfer.so.10etc.) are bundled inside the pip package itselflibnvidia-ngx.so) present in WSL2nvsvsr.dll,nvvitvsr.dll) present in WSL2 driver directory/dev/dxgopens successfully (WSL2 GPU path works)sr.load()silently callsexit_group(1)— no Python exception ever raisedRoot Cause (confirmed via
strace -f):The failure is a driver/pip package version mismatch:
sr.load()spawns an NGX worker process/usr/lib/wsl/drivers/nvmdsi.inf_amd64_d39f1ab212fcacea/nvcubins.bin(595.79 driver's NGX feature container, 73MB)exit_group(1)The bundled
libnvngxruntime.sowas built from:It cannot parse the r595-format
nvcubins.binfrom driver 595.79.Attempting to swap in the r595
libnvidia-ngx.so.1from the WSL driver directory loads successfully but thenlibnvVFXVideoSuperRes.sofails with:Meaning both
libnvngxruntime.soandlibnvVFXVideoSuperRes.soare r570-era and the entire VFX SDK in the pip package needs to be rebuilt against the r595 NGX API.WSL2-Specific Issues Found and Partially Worked Around:
nvidia-modprobestub required — the SDK spawns it with empty environment (0 vars), bypassing LD_PRELOAD. Real modprobe exits 1 on WSL2 (no kernel module). Fix: replace/usr/bin/nvidia-modprobewith a bash stub that exits 0. Note: gets overwritten on driver updates, must be recreated./usr/share/nvidia/ngxmust be created manually — doesn't exist on WSL2:/proc/driver/nvidia/capabilities/mig/monitor— doesn't exist on WSL2, appears non-fatal after modprobe stub is in placeLD_LIBRARY_PATHmust be set for the bundled.sofiles — added toruncomfyui2.sh:Current Status:
Blocked. The
nvidia-vfx 0.1.0.1pip package ships r570-era binaries incompatible with the r595 driver. No newer pip package version exists. Bug reported to NVIDIA Developer Support, case ID: 5986059.Waiting for: NVIDIA to release an updated
nvidia-vfxpackage built against the r595 NGX SDK.Next steps when a new package version appears:
pip install --upgrade nvidia-vfx --index-url https://pypi.nvidia.comnvidia-modprobestub if it was overwrittenLD_LIBRARY_PATHstill set inruncomfyui2.shsr.load()directly before launching ComfyUI@doogyhatts commented on GitHub (Mar 22, 2026):
I see. That is why I had a crash.
@aiberdonml commented on GitHub (Aug 5, 2026):
The failure was resolved by setting the VFX and WSL driver library paths before Python starts
@Dunc4n1dah0 commented on GitHub (Aug 10, 2026):
I think I have same kind of error - as soon as I try to run the node - Comfy just exits. No error in terminal, nothing.
Can you share your magic line?
@FaintySmile commented on GitHub (Aug 10, 2026):
I fixed the
NvVFX_Load failed: The effect has not been properly initialized (code -12)error on Ubuntu 26.04 with an RTX 5060 Ti.My setup:
The important part was that CUDA itself was working fine:
but NvVFX failed at:
with:
I traced it with
straceand found that NvVFX was trying to load:but the library was missing:
For the NVIDIA 595 server driver branch, installing/reinstalling the matching GL package fixed it:
After that I had:
and:
returned:
After restarting Python/ComfyUI,
NvVFX_Loadworked successfully.For people using the normal non-server 595 driver branch, the equivalent package should be:
So before downgrading drivers or reinstalling Ubuntu, check:
If
libnvidia-ngx.so.1is missing, make sure the matchinglibnvidia-gl-*package for your installed NVIDIA driver branch is installed.To see which NVIDIA branch you have:
In my case the relevant installed packages were:
So the fix was specifically
libnvidia-gl-595-server.This resolved the error without changing Ubuntu, CUDA, PyTorch, or the NVIDIA driver version.
@Dunc4n1dah0 commented on GitHub (Aug 10, 2026):
My solution; since I made standalone upscaler with webui and it died just like Comfy.
export LD_LIBRARY_PATH="/usr/lib/wsl/lib:$LD_LIBRARY_PATH"that is all I needed before starting it on WSL.
@wywywywy commented on GitHub (Aug 18, 2026):
Just wanted to confirm that this above has fixed it for me in WSL2 with v610.x driver. Thank you.
My
LD_LIBRARY_PATHnow looks like this -/usr/lib/wsl/lib:/usr/local/cuda-13/lib64:@925-Studio commented on GitHub (Oct 17, 2026):
Thank you sir. You just made my day.