[BUG][Wayland][NVIDIA] vrcompositor aborts in WaitForGpuWork after vkWaitForPresent timeouts when enableLinuxVulkanAsync is true (2.18.4)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- linux
- Lĩnh vực
- backend
Hướng nghiên cứu
Start by comparing the compositor logs with enableLinuxVulkanAsync enabled and disabled, focusing on WaitForPendingPresent and the watchdog failure in WaitForGpuWork. The report names no source files or tests, so first locate those entry points in the compositor code. Done when a vkWaitForPresent timeout on the async path falls back without aborting the render thread.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
With a PSVR2 on a dGPU-wired USB-C port, SteamVR 2.18.4 initializes direct mode correctly on Wayland (lease acquired, vkGetDrmDisplay succeeds, Direct mode: enabled), but the compositor then aborts in the render thread because vkWaitForPresent times out and the fallback ends in a watchdog abort:
[Error] WaitForPendingPresent: vkWaitForPresent timed out, falling back to old behavior (1 times)
[Error] WaitForPendingPresent: vkWaitForPresent timed out, falling back to old behavior (2 times)
[Error] WaitForPendingPresent: possible display bug, disabling wait-for-present mode entirely
[Info] Error: Aborting WaitForPresent after 1.000000 seconds! TimeSinceLastVSync: 1058.472778(198)
[Info] Error: Aborting WaitForPresent after 1.000000 seconds! TimeSinceLastVSync: 2101.142334(198)
[Info] Failed Watchdog timeout in thread Render in WaitForGpuWork after 5.653121 seconds. Aborting.
vrcompositor dies with SIGABRT and SteamVR reports error 303.
Disabling the async render path makes the same timeout survivable:
[Info] - Async support disabled by user setting or a direct mode driver
[Info] - Vulkan wait-for-present-ID support is present, and will be used
[Info] - PRESENT_MODE_FIFO_LATEST_READY is supported
[Info] - Direct mode: enabled
[Info] - Headset is using direct mode
[Info] - Updated HMD Prop_DisplayFrequency_Float to 119.880005
[Error] - WaitForPendingPresent: vkWaitForPresent timed out, falling back to old behavior (1 times)
[Error] - WaitForPendingPresent: vkWaitForPresent = VK_SUCCESS after previous failures
…and SteamVR Home renders at 120 Hz. So the timeout itself is handled; only the async path turns it into an abort.
To Reproduce
- Laptop with MUX in dGPU mode, GNOME Wayland, NVIDIA proprietary/open driver 615.78.08.
- Connect PSVR2 to the USB-C port that is wired to the dGPU (
card2-DP-9shows aconnectedconnector with EDIDSNY/0xC207, modes 4000x2040). - Use Ignition + PSVR2Toolkit (SteamVR loads
driver_playstation_vr2.so→libdriver_ignition.so); headset is detected, firmware 0x07000102. - Set
"enableLinuxVulkanAsync": trueinsteamvr.vrsettings(as recommended by the PSVR2 on Linux guides). - Start SteamVR → direct mode enables, then abort within ~11 s → error 303.
Expected behavior
A vkWaitForPresent timeout should fall back without killing the render thread, as it does when enableLinuxVulkanAsync is false.
System Information
- Steam client: native Fedora package
- SteamVR: 2.18.4 (v1792185270), non-beta
- Distro: Fedora Linux 44 (Workstation), GNOME Shell 50.6, session type Wayland
- Kernel: 6.18.55-cachylts1.fc44.x86_64
- GPU: NVIDIA RTX 4070 Laptop (10de:2860), driver 615.78.08 (open kernel module, akmod-nvidia); AMD Radeon 890M iGPU (1002:150e)
- Mesa/RADV: 26.2.5
- Vulkan ICD in use by the compositor: NVIDIA (
VK_KHR_present_wait,VK_KHR_present_id,VK_EXT_present_mode_fifo_latest_readyreported as present) - Headset: PlayStation VR2 via Ignition 1.0.0 + PSVR2Toolkit (
PSVR2TK-win64-Ignition) - Laptop: ASUS TUF Gaming A16 FA608WI (MUX mode
AsusMuxDgpu)
Additional context
Related, but a separate failure mode on the same laptop: with the headset on the iGPU-wired USB-C port (desktop compositor primary GPU = NVIDIA under the MUX), the lease path fails before direct mode init:
[Warning] CHmdWindowSDL::FindDirectDisplayWayland: vkGetDrmDisplay failed.
[Info] Tried to find direct display through Wayland: (nil)
[Error] CHmdWindowSDL: Failed to create direct mode surface
[Info] Failed to start compositor: VRInitError_Compositor_GnomeNoDRMLeasing
That matches #1030 (hybrid GPU / HMD on a GPU different from the compositor's primary). Not the subject of this report; the abort above happens with a fully valid direct-mode display.
Also of note: SteamVRLinuxFixes 0.2.1 cannot attach its WaitForPendingPresent patch to 2.18.4 (WaitForPendingPresent target function not resolved, mangled name _ZN2vr13CHmdWindowSDL21WaitForPendingPresentENS_10IHmdWindow11EWow11EWindowTypeEH), so the stock path runs. Reported separately to that project: BnuuySolutions/SteamVRLinuxFixes#6.
- Ngôn ngữ chính
- Shell
- Star
- 1.2k
- Fork
- 58
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ValveSoftware/SteamVR-for-Linux
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ValveSoftware/SteamVR-for-Linux#981 · 4 bình luận · 1 reaction ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
ValveSoftware/SteamVR-for-Linux#1097 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ValveSoftware/SteamVR-for-Linux#1095 · 2 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
ValveSoftware/SteamVR-for-Linux#1094 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ValveSoftware/SteamVR-for-Linux#1093 ·
Tất cả issue của ValveSoftware/SteamVR-for-Linux
Issue tương tự
-
CI repository variables is redĐang mởarea: build-and-ci guard-red-main S3: minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
manaflow-ai/cmux#65616 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
achisolomon/software-factory#300 · 1 bình luận ·
-
Bump runtime to 26.08Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
flathub/cc.arduino.IDE2#168 ·
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
oscarbol09/solwatch#28 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
difficulty:easy func:buildsystem prio:low type:task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
NatronGitHub/Natron#2070 ·
Maintainer thường phản hồi trong vòng 1 ngày