Metal shader library loading requires a writable temporary directory #653
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#653
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?
@fruvs on GitHub · 2026-11-29 04:08 UTC · original
The Metal backend writes a converted shader library to a temporary file before loading it. Pipeline creation can fail if the temporary directory is unavailable, even when the library bytes are already available in memory.
On an Apple M5 Pro, the synthetic test
metal::tests::queue_b_waits_for_queue_a_over_the_same_bufferpasses normally on main. Running the compiled test under a macOS sandbox profile with(deny file-write*), withVICTORY_MSC_DYLIBset andVICTORY_NO_PIPELINE_ARCHIVE=1, reproducesOperation not permitted (os error 1)during library loading.The proposed change loads an owned dispatch-data buffer with
newLibraryWithData:error:. The compute test and the synthetic indexed draw with depth sampling both pass under the same write restriction on the patched build.@fruvs on GitHub · 2026-11-29 04:09 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-29 04:09 UTC · original
Claimed by @fruvs. Open a draft pull request with
Refs #649in its description within 24 hours, or the claim expires.