[Bug] Apple M5 Pro (24 GB) + CrossOver 26.3 / D3DMetal 3.0: synthetic test hangs on Check #35 with sparse fence stall & Metal GPU timeout #5
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/paveledits--ScarlettMac#5
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?
@jgrizon on GitHub · 2026-11-26 18:13 UTC · original
Test environment
26C5047e)mainatb91d663(XCL Mac pinned atd0d9889+patches/mac-compat.patch)26.3.0.39832(stable, not Preview)3.0(CX_GRAPHICS_BACKEND=d3dmetal,WINEMSYNC=1) in a dedicatedwin11_64bottle (ScarlettLab)1.99.1(x86_64-pc-windows-gnullvm), LLVM-MinGW20261117, DXC1.9.2609.5Steps to reproduce
Run three separate times from the repository root with fresh per-run test data.
Expected and actual result
[FAIL] user32: a top-level window made either way (CreateWindowExW / A) is the hidden 1920x1080 console screen: W: not cloaked(same known failure as M3 Max).D3D12.X: triangle rendered on the real GPU and read back (console + derived pipeline)/gpu::render_triangle) immediately after the nested occlusion query log line.at 9waiting for10), followed by a Metal GPU timeout error (MTLCommandBufferErrorDomain Code=2/kIOGPUCommandBufferCallbackErrorTimeout), after which the process never exits (verified up to 120 s on run 1, 45 s on run 2, 30 s on run 3).scripts/run.sh --inspectandruntime-preview/run.sh <checkpoint victory.exe> configboth succeed cleanly (exit 0) in the same bottle.Relevant log excerpt (sanitized)
@jgrizon on GitHub · 2026-11-26 18:30 UTC · original
Bisect follow-up on Check #35 (Apple M5 Pro + CrossOver 26.3 / D3DMetal 3.0)
Bisected
gpu::render_triangleinxcl_testtitle:XCL_VRAM_ARENAS=0, cross-queuequeue.Wait/s.queue.Wait(tested with CPU-side fence waits;title queue did not reach rb_fence 1 after 5 s), sparse index buffer /DrawIndexedX, nested occlusion queries,ResolveQueryData, andWriteBufferImmediate.OMSetRenderTargets+ClearRenderTargetView+DrawInstanced(base + derived PSO), without theResourceBarrier(RENDER_TARGET -> COPY_SOURCE)+CopyTextureRegion, does not hang: the suite finishes in 6 s with 46/50 checks passing.list.ResourceBarrier([rt: RENDER_TARGET -> COPY_SOURCE])alone reproduces the hang deterministically.dynamic_depth_bias), which issues the sameRENDER_TARGET -> COPY_SOURCEbarrier andCopyTextureRegionafter an interveningKickoffXsplit, passes cleanly.user32window cloaking —W: not cloaked, known)render_triangle— expected failure since queries/copy were skipped)console_list_methods—no GPU timestamp; D3DMetal 3.0 logsUnsupported API: ID3D12GraphicsCommandList::EndQuery / ResolveQueryData - Type = 2)XAudio2—XMA2 GetState: ctx=0x0, queued=1)@paveledits on GitHub · 2026-11-27 00:45 UTC · original
Thanks for narrowing this down to the render-target transition. The synthetic triangle check now uses
KickoffXto submit the draw and query work before the transition and texture copy. It still verifies the readback pixels and occlusion results. Patch on mainI built and ran the full synthetic suite on an M3 Max with CrossOver Preview 27.0.0.41073. Check #35 passed and the suite finished with 43 of 50 checks passing. The same seven checks failed as in the local baseline. The M5 Pro with CrossOver 26.3 and D3DMetal 3.0 still needs a retest.
Could you rebuild with
scripts/build.sh --test-titlefrom55c25aeor newer, then rerunscripts/run.sh --test-titlein the same bottle? Please share the Check #35 result and whether the sparse-fence or Metal timeout still appears. I’ll leave the issue open for that result.@jgrizon on GitHub · 2026-11-27 18:42 UTC · original
Retest on
55c25aeor newer: Check #35 passes, no timeoutSetup: Apple M5 Pro, 24 GB, macOS 27.3, CrossOver 26.3.0.39832, D3DMetal 3.0. ScarlettMac main at
f4b08d9, which includes55c25ae. I ranscripts/build.sh --prepare(xcl-macd0d9889,v0.1.0-stage6), thenscripts/build.sh --test-title, thenscripts/run.sh --test-titlein the same bottle as before.triangle rendered on the real GPU and read back (console + derived pipeline)): PASSMTLCommandBufferErrorDomainerror and nohas not reached fence valueline in the run. The suite runs to the end.user32:W: not cloakedno GPU timestamp. As far as I can tell, D3DMetal 3.0 returns 0 for timestamp queries.XAudio2:XMA2 GetState: ctx=0x0, queued=1From my side this issue can be closed. The three remaining failures look separate from #35.