Repository navigation
e2e: close leaked event/COM handles and fix duplicate fence signal in testtitle - #2155
Open
HumanlyDev wants to merge 1 commit into
Open
HumanlyDev wants to merge 1 commit into
HumanlyDev wants to merge 1 commit into
Conversation
… testtitle Add RAII guards in testtitle's gpu checks (EventHandle for CreateEventW/CloseHandle in wait() and direct_storage(), ComPtr and PhysPage in direct_storage()) so event handles, DirectStorage COM objects, and physical pages are always released on both success and error paths. Also remove the duplicate queue.Signal(&fence, 1) call before wait() in present_x_frame(), ensure SetFrameIntervalX(..., 0, 0, 0) runs on error paths, and obtain the device before MFStartup in mfplat_reset_dxgi_device_manager(). Assisted-by: Antigravity (Gemini 4)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent Windows x64 + Intel Arc A770 test report on commit Environment
Command e2e-7bb743f5cbebecc5.exe test_title_ --nocapture --test-threads=1Results
Not tested
AI use
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Windows Event handle leaks,
IDStorageFactoryX/COM/page error-path leaks, a duplicatequeue.Signal(&fence, 1)inpresent_x_frame(), and unbalancedMFStartupordering intests/testtitle/src/gpu.rs. Test-title change undertests/testtitle/; no runtime files modified.What is in it
tests/testtitle/src/gpu.rs:CloseHandleand add anEventHandleRAII guard (verifying!h.is_null()before returning and closing the handle on drop), used inwait()anddirect_storage().queue.Signal(&fence, 1)immediately beforewait(&queue, &fence, 1)inpresent_x_frame(), and ensureset_interval(d, null, 0, 0, 0)runs even on error paths.ComPtr(null-checked, callingReleaseon drop) andPhysPage(XMemFreePhysicalPageson drop) guards indirect_storage()soIDStorageFactoryX,q,file,status, andpageare always released on both success and error paths.let dev = device()?;beforeMFStartupinmfplat_reset_dxgi_device_manager()soMFStartupis not left unbalanced ifdevice()fails.Tested
32.0.16.1088), AMD Ryzen 5 7600, Windows 11 Pro10.0.26200(build26200),rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.8.2502.11, debug build.cargo build --workspace: succeeded with 0 errors.cargo test -p xcl --test e2e -- --nocapture: 3 passed, 0 failed, 0 ignored (xcl_testtitle: done, failures: 0, exit code0)..\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4, RTX 4060, debug): 1154 passed, 0 failed, 46 ignored across 21 targets (25 SKIPPED GPU checks: 20no wave64, 3per-lane form#1426refusals, 1no heap windows, 1cannot disable the driver cache (Windows Developer Mode is required)).Regression run
tests/testtitle/(no runtime files undercrates/xcl/src/modified).Not tested
direct_storage()/present_x_frame(), retail titles /XCL_SAMPLE_*, AMD RDNA3/4, Linux / Wine.AI use
tests/testtitle/src/gpu.rs, implemented the RAII handle/COM/page guards and signal/MFStartup fixes, ran the workspace tests, and drafted this PR description.