victory-gpu native tests fail cryptically without Apple's Metal Shader Converter; GPTK's bundled dylib is not a substitute #382
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#382
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?
@wz11wz on GitHub · 2026-11-27 14:57 UTC · original
Environment
M1 Max, macOS 26 (Darwin 27.2), clean
main(728845d1), no Metal Shader Converter installed.What happens
cargo test -p victory-gpu --libfails 3native::tests::texture_testscases onmain:a_drawn_target_is_not_filled_from_title_memory_againan_indirect_dispatch_mesh_x_draws_the_groups_its_record_holdsdescribed_rectangle_list_draw_uses_supplied_trianglesTwo panic with
no mesh pipeline(texture_tests.rs:1154 / 1207), one with the dlopen directly:Why it is easy to miss
native-setup.shwarns when the Metal Shader Converter is missing, but nothing stops a test run without it: 356 of 359 tests still pass, and the 3 failures only name the missing dylib indirectly. They look like GPU bugs but are a missing prerequisite.GPTK's bundled dylib is not a substitute
VICTORY_MSC_DYLIBis honoured bymsc.rs, and D3DMetal 4.0b3 ships alibmetalirconverter.dylibinside its framework. PointingVICTORY_MSC_DYLIBat that copy makes it dramatically worse: 129 of 359 fail (shader_tests included, e.g.render_pipelines_come_from_the_translated_shaders_and_the_streams_state). The converter ABI the code expects matches Apple's standalone distribution only.Suggestion
verify.sh/native-setup.shcould fail fast with "install Apple's Metal Shader Converter" whenVICTORY_MSC_DYLIBis unset and the default path is missing, instead of letting 3 tests fail with an indirect panic. Found while wiring victory-gpu into a verification gate (#373).Happy to send that small check as a PR.
@LakshanSivakumar on GitHub · 2026-11-27 15:07 UTC · original
Please send it as a PR, thank you
@AnastasisKon on GitHub · 2026-11-27 16:11 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 16:12 UTC · original
Claimed by @AnastasisKon. Open a draft pull request with
Refs #379in its description within 24 hours, or the claim expires.@AnastasisKon on GitHub · 2026-11-27 22:18 UTC · original
Evidence that this one is resolved on main, so it can close:
tools/macos/test-native.shis onmainand fails fast exactly as you asked, before cargo runs. WithVICTORY_MSC_DYLIB=/nonexistent/x.dylib:and it exits 1 without invoking the test binary, so the
dlopenpanic it used to produce is gone.tools/macos/verify.shfails the same way (tools/macos/tests/verify-msc.shandtests/msc-check.shpin both, and run in themacos-scriptsCI job).With Apple's converter installed (I have it here now,
/usr/local/lib/libmetalirconverter.dylib),test-native.sh -p victory-gpuruns the suite whole: 402 passed, 0 failed, 3 ignored. So the cryptic failure was the missing library, not the tests.Nothing left to do in this issue as far as I can see; the only thing worth adding later is a note in
docs/macos.mdabout the install, if you want the download steps written down outside the script.@wz11wz on GitHub · 2026-11-27 23:14 UTC · original
Resolved - thanks for the fast fail in test-native.sh/verify.sh and for confirming the full suite runs green (402 passed) once Apple's standalone converter is installed. The install steps are now written down too: #515. Closing as done.