native: note_written reads descriptor tables with plain loads on every dispatch #445
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by lautarocherro on 2026-11-27T19:48:24Z.
Since
95627c66,NativeHost::note_writtenruns for every dispatch the native host prepares, with or without copy-back. It reads each record of the bound resource tables throughdescriptor::view, a plainread_unalignedof title memory.remirror_tablesandresources_namedread the same spans withsafe_read, because part of a span can be unreadable. When it is,note_writtenfaults the process instead of skipping those entries.Plan: read the span with
safe_read(entry by entry if that fails, asremirror_tablesdoes) and look the views up from those records with one lock per table. Test: a dispatch whose bound table runs into an unreadable page.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by lautarocherro on 2026-11-27T19:48:29Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T19:48:39Z.
Claimed by @lautarocherro. Open a draft pull request with
Refs #445in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T00:36:06Z.
Thank you for this. It is fixed on main by #447. I have not checked every case from this report in the game myself, so please retest on main
a6a58361and reopen this if you still see it. Closing as fixed.