Windows Version
Microsoft Windows [版本 10.0.22631.5335]
WSL Version
WSL 版本: 2.6.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
6.6.87.2
Distro Version
Ubuntu 24.04
Other Software
When trying to enable hardware-accelerated video transcoding (via VA-API) in WSL2, the vainfo utility consistently segfaults during library initialization. This prevents any application (like Immich) from using GPU acceleration.
- WSL2 Kernel Version / 内核版本:
6.6.87.2-microsoft-standard-WSL2
- Windows Build / Windows 版本: Windows 11 (Please provide your
winver output)
- Linux Distro / Linux 发行版: Ubuntu 24.04 (Noble)
- GPU / 显卡: AMD Radeon 680M (integrated)
- Windows GPU Driver / Windows 显卡驱动: AMD Adrenalin 24.9.1 (WHQL)
- WSLg / 图形支持: Enabled via
guiApplications=true in .wslconfig
Repro Steps
- In a WSL2 Ubuntu terminal, install VA-API tools:
sudo apt install vainfo mesa-va-drivers
- Run
vainfo.
Expected Behavior
vainfo should list the AMD GPU and supported codecs (H.264, HEVC, etc.).
Actual Behavior
vainfo outputs libva info: VA-API version 1.20.0 and then crashes with Segmentation fault (core dumped).
Diagnostic Logs
-
GPU Passthrough is Working / GPU直通工作正常:
/dev/dri/ directory exists with renderD128 device after running sudo modprobe vgem.
- DXGKRNL module is loaded (
/sys/module/dxgkrnl exists).
-
Permissions are Correct / 权限正确:
- User is in
video and render groups.
-
Crash Point Identified / 崩溃点已确认:
strace and ltrace pinpoint the crash to the vaInitialize() function call.
- Relevant
ltrace output / 相关 ltrace 输出:
vaGetDisplayWl(0x62007c7e4370, 0, 0, 529) = 0x62007c7e9850
vaInitialize(0x62007c7e9850, 0x7fff1acf8ccc, 0x7fff1acf8cc8, 5libva info: VA-API version 1.20.0
<no return ...>
--- SIGSEGV (Segmentation fault) ---
-
All VA-API Backends Tested / 所有 VA-API 后端均已测试:
- Tried
LIBVA_DRIVER_NAME=radeonsi, d3d12, iHD, i965. All result in the same segfault.
Windows Version
Microsoft Windows [版本 10.0.22631.5335]
WSL Version
WSL 版本: 2.6.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
6.6.87.2
Distro Version
Ubuntu 24.04
Other Software
When trying to enable hardware-accelerated video transcoding (via VA-API) in WSL2, the
vainfoutility consistently segfaults during library initialization. This prevents any application (like Immich) from using GPU acceleration.6.6.87.2-microsoft-standard-WSL2winveroutput)guiApplications=truein.wslconfigRepro Steps
sudo apt install vainfo mesa-va-driversvainfo.Expected Behavior
vainfoshould list the AMD GPU and supported codecs (H.264, HEVC, etc.).Actual Behavior
vainfooutputslibva info: VA-API version 1.20.0and then crashes withSegmentation fault (core dumped).Diagnostic Logs
GPU Passthrough is Working / GPU直通工作正常:
/dev/dri/directory exists withrenderD128device after runningsudo modprobe vgem./sys/module/dxgkrnlexists).Permissions are Correct / 权限正确:
videoandrendergroups.Crash Point Identified / 崩溃点已确认:
straceandltracepinpoint the crash to thevaInitialize()function call.ltraceoutput / 相关 ltrace 输出:All VA-API Backends Tested / 所有 VA-API 后端均已测试:
LIBVA_DRIVER_NAME=radeonsi,d3d12,iHD,i965. All result in the same segfault.