mirror of
https://github.com/seedds/nxnative.git
synced 2026-11-25 06:20:08 -10:00
A Mac-only pack (--platform mac-app or mac) failed its address region step with a red iPhone-layout diagnostic when a game's regions exceeded the profile's mem_alias while fitting the Mac host's console-sized alias region (Minecraft Dungeons in issue #2860: 37 GB through nn::os::AllocateAddressRegion, reach 38.92 GB inside the Mac's 64 GB region). Make profile_guess.py region_verdict (with region_findings as a backwards-compatible wrapper) target-aware: - For Mac-only builds whose regions exceed the profile's iPhone layout, evaluate reach directly against the alias size recorded in the host's regions.tsv header (# alias region <size>;: 64 GB Switch 1, 128 GB Switch 2). - Keep the verdict red with the explicit stop reason if the check boot exited early or never reached nnMain (a refused request leaves no row in the table), if reach exceeds the Mac run's alias region, or if the table omits the alias header. - Stamp Mac-only verdicts with '(rewrite <id>, Mac only)' so repeat Mac-only builds skip while a later IPA build re-runs and reports the iPhone layout; clean checks that also fit the iPhone keep the shared '(rewrite <id>)' stamp. Follows up on PR #3287 and addresses the address-regions step of issue #2860 (the later shader split failure in #2860 stays open). Co-authored-by: Eliran Zach <[email protected]>
Subsystem references
How the host meets each part of a Switch game, and every failure met so far, one entry per mechanism: symptom, cause, fix (file and function), the games it was found on (linked to their notes in dm/games/<id>/README.md). Start from the symptom index when you have a log line or a visible result; the workflows that lead here are in docs/agents.
| File | Covers |
|---|---|
| packing.md | NSP script, compressed inputs and build artifacts |
| rewriter.md | The NSO rewriter patch_nso.py: jump tables, exclusive windows, patch area reach, cuts and observation gates (and cheats carried across builds with the same matcher), functions without unwind entries, stack and system registers, relocations |
| memory.md | Guest layout, heap and application pool, virtual address memory and the alias region (the SDK's node area), engine allocators, mapping SVCs, running out of memory |
| threads.md | Thread creation and cores, address arbitration, yields and spin waits, events |
| services.md | SDK calls and system services: sm connections, names that changed between SDKs, file system and saves, add-on content, input, keyboard and applets, display and operation mode, accounts and network, settings and fonts, C library and time, modules |
| movies.md | The SDK's movie library: decoder lifecycle, output slots, native-texture output, demuxers and codecs, game movie players |
| audio.md | The audio renderer and its command lists by SDK, AudioOut and devices, codecs, timing |
| frame-rate.md | The host's frame step, engine frame limiters, present intervals and display rates, CPU cost |
| nvn-objects.md | NVN object sizes, memory pools, command memory, queues and syncs, CPU-written textures, NVN entry points |
| rendering.md | The replay on Metal: textures, passes and clears, blend / depth / stencil, vertex input, uniforms and ordering, conditional rendering; the Vulkan and OpenGL layers |
| shaders.md | Shader containers by engine, control sections and code, translation, bindings and handles, shaders compiled at run time, pipelines and caches |
| cheats.md | How cheats work on a Switch with Atmosphère (dmnt, the file, the VM, its behaviour on failure) and where this host differs |
| game-state.md | Saves, scripted state, and game behaviour that looks like a host bug but is not |
A new general finding goes into the file and section it belongs to, in the same form, with a line in the symptom index; a fact about one game goes into that game's note.