Repository navigation
Ignore AppleDouble files in c1 guard - #555
Closed
ranamoeezhassan wants to merge 1 commit into
Closed
ranamoeezhassan wants to merge 1 commit into
ranamoeezhassan wants to merge 1 commit into
Conversation
seedds
added a commit
that referenced
this pull request
Oct 29, 2026
…ppleDouble files On an exFAT or FAT drive macOS writes a binary AppleDouble ._<name> beside each file. c1_guard.py took every name ending in .metal for a shader's MSL, read ._<key>_b.metal as UTF-8 and stopped with a UnicodeDecodeError after every library had compiled. cb_extent.py only got past it by ignoring what it cannot parse; dmsh_mtlcache.py took ._<key>_b for a shader, found no readable reflection and filled the Metal cache from none of that folder's libraries. All three now take only the names dmsh_build.py writes, <16 hex key>_b... .metal / .json, as dmsh_build.py (OUT_KEY) and regress.py already did: c1_guard.py outputs (used by cb_extent.py too) and dmsh_mtlcache.py OUTPUT. None of them is in the chain version. test_nsp_chain runs both table tools on a folder with ._ files (the old c1_guard.py stops on it); the Metal prefill test uses real key names and plants ._ files. On 13 Sentinels' 751 shaders c1_full.tsv and cb_extent.tsv are unchanged. Reference entry and symptom index line added (GitHub PR #555). Regression check skipped. Co-authored-by: Rana Moeez <[email protected]>
Owner
|
Thanks for the diagnosis — landed in 9791d74 (with you as co-author), in a more general form: instead of skipping |
MIsaacM
added a commit
to MIsaacM/nxnative-lab
that referenced
this pull request
Oct 30, 2026
…s#555, seedds#476) Co-Authored-By: Claude Opus 5.5 <[email protected]>
2 of 3 tasks
Know-It-All-Brother
pushed a commit
to Know-It-All-Brother/nxnative
that referenced
this pull request
Nov 9, 2026
…ppleDouble files On an exFAT or FAT drive macOS writes a binary AppleDouble ._<name> beside each file. c1_guard.py took every name ending in .metal for a shader's MSL, read ._<key>_b.metal as UTF-8 and stopped with a UnicodeDecodeError after every library had compiled. cb_extent.py only got past it by ignoring what it cannot parse; dmsh_mtlcache.py took ._<key>_b for a shader, found no readable reflection and filled the Metal cache from none of that folder's libraries. All three now take only the names dmsh_build.py writes, <16 hex key>_b... .metal / .json, as dmsh_build.py (OUT_KEY) and regress.py already did: c1_guard.py outputs (used by cb_extent.py too) and dmsh_mtlcache.py OUTPUT. None of them is in the chain version. test_nsp_chain runs both table tools on a folder with ._ files (the old c1_guard.py stops on it); the Metal prefill test uses real key names and plants ._ files. On 13 Sentinels' 751 shaders c1_full.tsv and cb_extent.tsv are unchanged. Reference entry and symptom index line added (GitHub PR seedds#555). Regression check skipped. Co-authored-by: Rana Moeez <[email protected]>
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.
Summary
On external drives, macOS may create binary AppleDouble sidecars named
._<file>.c1_guard.pyselected every filename ending in.metal, so it tried to decode._…_b.metalas UTF-8 and aborted withUnicodeDecodeErrorafter all iOS shader libraries had compiled.Exclude
._sidecars from the scanner's Metal-source jobs. This lets the post-build metadata scan complete without changing shader compilation or cache behavior.Validation
c1_guard.pyagainst the retained Mac shader outputs: completed successfully.cb_extent.pyagainst the same outputs: completed successfully.