modules::display::tests::sdr_and_display_deferrals fails on this machine #727
Loading…
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?
Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-24T08:27:07Z.
Title:
display test: SHELL_OBJECT Acquire returns ERROR_NOT_SUPPORTED on Windows 11 26300 / NVIDIAdisplay.rs line ~188: the
Acquirecall on SHELL_OBJECT vtable slot 0x20returns ERROR_NOT_SUPPORTED on this machine instead of S_OK. Machine:
Windows 11 Insider build 26300, NVIDIA RTX 5060 Laptop 591.74 + Intel iGPU,
headless-ish (no HDR display attached). Question: is this test expected to be
display/driver dependent? If the stub should be environment-independent, the
SHELL_OBJECT acquisition may need a deferral for configurations with no HDR
path — if it is expected to differ, the test could assert both S_OK and the
documented deferral code and this issue can be closed with that documented.
No game files involved — synthetic tests only.
Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T09:09:14Z.
Confirmed root cause on Windows 11 without active display support:
ERROR_NOT_SUPPORTED(0x80070032/-2147024846) fromPowerSetRequest(request, PowerRequestDisplayRequired).PowerCreateRequest(&context)already successfully creates the power request handle. Since a display sleep deferral is purely a power-saving hint to prevent the monitor from going to sleep while playing, an inability to prevent display sleep should not fail the API call or abort the title.crates/victory-hle/src/modules/display.rs:acquire_deferral, tolerateERROR_NOT_SUPPORTED(0x80070032), keep the valid request handle, and returnS_OK.Tested with all 94 unit tests passing in
crates/victory-hle, clippy clean, and asset policy ok. Available on fork branchfix/display-deferral-headless-support.Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T09:48:30Z.
Ready-to-merge fix on a fork branch (since external PR creation is currently paused):
5c37528onmain8e79c80, 1 file changed:crates/victory-hle/src/modules/display.rs)Summary
PowerSetRequest(request, PowerRequestDisplayRequired)returnsERROR_NOT_SUPPORTED(50),acquire_deferralcloses the OS power request handle, logs once viatracing::info!, and returnsS_OKwith a non-null static no-op sentinel handle.close_deferralskipsPowerClearRequest/CloseHandlefor null and the no-op sentinel.HRESULT_FROM_WIN32(error)(readingGetLastError()beforeCloseHandle), andout.is_null()keeps returningE_INVALIDARG.Verification
Windows 11 Pro (
26100), Rust1.98.1(x86_64-pc-windows-msvc), AMD Radeon RX 9060 XT:cargo test --workspace --locked→ 314 passed, 0 failed, 6 ignored (keepssdr_and_display_deferralsand adds 3 deterministic tests coveringERROR_NOT_SUPPORTEDfallback + sentinel close,ERROR_ACCESS_DENIEDcleanup/HRESULT, and nullout)cargo clippy --workspace --all-targets --locked -- -D warnings→ pass (0 warnings)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings→ pass (0 warnings)rustfmt --edition 2024 --check crates/victory-hle/src/modules/display.rs→ passcargo xtask policy→asset policy: 153 files okAI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by Satanyuga on 2026-11-24T20:38:29Z.
Opened PR #1664 to fix this.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:47:38Z.
Automated triage for the maintainers.
The test failure reported here is fixed in
main. PR #1125 (fix/display-deferral-test-727, commitefe102e, merged asef65f88) changedsdr_and_display_deferralsincrates/victory-hle/src/modules/display.rs. The test now accepts eitherS_OKwith a handle, orNOT_SUPPORTED(0x80070032) with a null handle, so it passes on a host that refuses display power requests.The runtime behaviour is unchanged. On such hosts
acquire_deferralstill returns thePowerSetRequesterror to the title. Open PR #1155 makes that case a no-op deferral that returnsS_OK. Whether to take it is up to the maintainers, and it does not need this issue to stay open.Proposed close: fixed in main by #1125. This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the
triage: proposed closelabel.Generated by Claude Code