Linux/AMD Polaris: H.264 VAAPI encoding triggers VCE timeout and failed GPU recovery
Bug Description
Connecting from Windows to Fedora caused the Fedora display/session to freeze and turn black shortly after RustDesk selected hardware H.264 encoding. A forced power-off was required. Some background services continued logging, so this is not confirmed to have been a complete kernel/CPU lockup.
The logs identify a VCE timeout in a RustDesk command submission followed by failed amdgpu recovery. This does not by itself establish whether the original fault is in RustDesk/hwcodec, FFmpeg, Mesa, the kernel driver, or firmware.
How to Reproduce
Observed sequence on 2026-09-23 (UTC+08:00):
- Hardware codec was enabled on the Fedora host.
- Connect from Windows to the GNOME Wayland desktop with automatic codec selection.
- RustDesk selected
h264_vaapiat 2880 × 1800. - Approximately three seconds later, the kernel reported a VCE timeout, and the Fedora display/session became unusable.
One freeze has been observed. I have not deliberately reproduced it again because GPU recovery failed and a forced power-off was needed.
Expected Behavior
The remote connection should work without freezing the host display.
Operating system(s) on local (controlling) side and remote (controlled) side
Windows (exact version pending confirmation) -> Fedora Linux 44 x86_64, GNOME Wayland.
Fedora host:
- MacBookPro13,3 (2016), AMD Radeon Pro 455 / Polaris 11 (PCI 1002:67ef), 2 GB VRAM.
- Kernel:
7.2.6-200.fc44.x86_64. - GNOME Shell / Mutter:
50.5-1.fc44. mesa-va-drivers-freeworld-26.2.2-2.fc44.mesa-dri-drivers-26.2.2-6.fc44.libva-2.23.0-3.fc44.amd-gpu-firmware-20260916-1.fc44.- AMD is the active display GPU and
/dev/dri/renderD128; Intel HD 530 is also present.
RustDesk Version(s) on local (controlling) side and remote (controlled) side
Windows client: pending confirmation. Fedora host: 1.4.9 (RPM rustdesk-1.4.9-0).
Screenshots
No screenshot was captured. The host screen became black. Relevant text logs are included below.
Additional Context
RustDesk server log:
[2026-09-23 11:50:59.486115 +08:00] INFO [libs/scrap/src/common/codec.rs:317] connection count: 1, used preference: Auto, encoder: H264
[2026-09-23 11:50:59.486491 +08:00] INFO [libs/scrap/src/common/codec.rs:135] new encoder: HWRAM(HwRamEncoderConfig { name: "h264_vaapi", mc_name: None, width: 2880, height: 1800, quality: 0.67, keyframe_interval: None }), i444: falseKernel log excerpts (same date/time zone; host name omitted):
11:51:02 amdgpu 0000:01:00.0: ring vce0 timeout, signaled seq=61, emitted seq=62
11:51:02 amdgpu 0000:01:00.0: Process rustdesk pid 2953471 thread rustdesk:cs0 pid 3265766
11:51:02 amdgpu 0000:01:00.0: GPU reset begin!. Source: 1
11:51:02 amdgpu 0000:01:00.0: suspend of IP block <vce_v3_0> failed -22
11:51:02 amdgpu 0000:01:00.0: GPU pre asic reset failed with err, -22 for drm dev, 0000:01:00.0
11:51:02 amdgpu 0000:01:00.0: PCI CONFIG reset
11:51:02 amdgpu 0000:01:00.0: GPU reset succeeded, trying to resume
11:51:02 amdgpu 0000:01:00.0: VRAM is lost due to GPU reset!
11:51:05 amdgpu: SMU load firmware failed
11:51:05 amdgpu: fw load failed
11:51:05 amdgpu: smu firmware loading failed
11:51:05 amdgpu 0000:01:00.0: GPU reset end with ret = -22
11:51:05 amdgpu 0000:01:00.0: GPU Recovery Failed: -22
11:51:07 amdgpu 0000:01:00.0: ring vce0 timeout, signaled seq=62, emitted seq=62- Disabling hardware codec on Fedora (
enable-hwcodec = 'N') switches subsequent connections to software AV1/AOM at 2880 × 1800. Those sessions work normally, with no new VCE timeout or GPU recovery failure found in the current boot. - Earlier RustDesk VA-API H.265 decoding worked. The RustDesk H.264 VA-API encoder capability probe also passed before the incident. These are not proof that sustained hardware encoding works.
- AMD
vainfoadvertises H.264VAEntrypointEncSlice, with maximum width/height 4096 × 4096. - The packaged amdgpu module is unmodified. Other MacBook-specific DKMS modules are installed; this is not a claim that the entire system is free of out-of-tree modules.
- A GPU devcoredump was reported before reboot, but it was not preserved. No usable post-reboot crash dump is available.
- No standalone AMD FFmpeg encoding reproduction has been attempted.
Debian bug #1146343 describes a similar RustDesk/H.264 VAAPI failure on Polaris, but with a different GPU/kernel. A shared cause is unconfirmed.
Are there known Polaris encoder constraints or safe parameter combinations to investigate? If this needs to be tracked in Mesa/amdgpu instead, guidance on the appropriate upstream report and useful diagnostics would be appreciated.
Source: rustdesk/rustdesk