feat(host): nvnBufferMap's 0 answers are logged as a warning, which one and who asked #2942

Merged
HumanBean merged 4 commits from llun/Longshot:feat/nvn-buffer-map-null-log into main 2026-12-01 14:00:33 +00:00
Member

Summary

A player on nightly-971 (RX 9070 XT, AMD 26.11.2, Windows 11) crashed in Kakariko after the Sheik scene:
[hos PlacementMgr] CRASH: exception 0xc0000005 (write 0x1000000000a0, guest 0xa0), guest backtrace from lr 0x800aa2e8.
The same crash, with the same caller and a write at a small guest address, is on #81 many times since v3.0.0-rc.6, on
NVIDIA and AMD cards alike, almost all in Castle Town Market or Kakariko. It is the game writing at what nvnBufferMap
answered (the crash's x0 is 0 and the write lands at that 0 plus an offset), and nvnBufferMap answers 0 in two cases:
no buffer at all, or a buffer whose memory pool has no storage (a virtual pool, or a pool finalized or reused). Nothing
in the log says which, so the crash cannot be taken further from players' reports.

This logs those 0 answers as a warning, the first 4 times in a run:
nvn: nvnBufferMap of no buffer | a pool with no storage (lr …, buffer … magic …, pool … magic … flags … size …): 0.
The next report then says which object was gone and who asked. The no-buffer case is now tested on x0 before P(0), as
no_pool does (the comment there says why). A map that answers memory is unchanged, and nothing else changes: no switch,
since it changes no behaviour and only shows in a run that is about to crash.

Read first: host/nvn_native.c (map_null, NV(nvnBufferMap)), tests/test_nvn_buffer_map.py.

See #81.

Testing

Tested: Windows 11, RTX 5080, this branch's longshot.exe and longshot_vk.dll over the shared base (dev.py pack,
dev.py rt), built with llvm-mingw and the gnullvm Rust. One headless run through the job queue (the test profile,
market-entrance save): Castle Town Market as a child (60 fps) and as an adult, then adult Kakariko (60 fps), about
2 minutes in all. No [warn], [error], CRASH or device-lost line, and no nvnBufferMap of line: the 0 case did not
happen, as expected; a clean quit (exit 0).

Checks:

  • tests/test_nvn_buffer_map.py compiles the real nvnBufferMap on its own; it now takes map_null with it and checks
    that a pool with no storage and a null buffer each log one warning naming which, with the whole line as written (the
    caller's lr, the buffer's address and magic, the pool's address, magic, flags and size; zeros for no buffer), a mapped
    buffer none, and no more than 4 lines. It passes with gcc and clang; the cap at 6, info level, either log removed, and
    each field swapped or dropped (lr and buffer, the pool's address, flags, size, the buffer's magic) each fail it, and a
    checkout whose nvn_native.c has no map_null fails it. test_nvn_null_pool.py passes.
  • nvn_native.c compiled (syntax only, -Wall -Wextra) with the build plan's own llvm-mingw command: 0 errors, no
    warning from the new lines.
  • tests/run_all.py --strict (what mise run test runs): 815 passed, 59 failed, 48 skipped. 56 of the failures fail
    the same on main @ 4908cc6da on this PC (listed below); test_longshot_ctl.py and test_recorder_parts.py failed
    under load (12 at once) and pass alone, on this branch; test_nvn_buffer_map.py is the check updated here.
The 56 checks that fail on main too (this PC)

test_auto_handheld.py test_blocks_at_start.py test_bug_report.py test_builder_channel.py test_control_picture.py
test_coverage_run.py test_crash_record.py test_crt_options.py test_dev_build.py test_dev_migrate.py test_dev_update.py
test_draw_stream_visibility.py test_framegen_hdr.py test_framegen_resources.py test_fs_path_utf8.py
test_fsr_uniform_ownership.py test_game_boundary.py test_image_reaper_threads.py test_image_view_retry.py
test_input_background.py test_keyboard_menu_option.py test_keyboard_option.py test_lifter.py test_linux_pressure.py
test_loaded_modules_drop.py test_log_batch.py test_log_levels.py test_menu_keys.py test_mise_build.py
test_native_zstd.py test_oot_menu_mouse.py test_oot_state_tap.py test_option_ids.py test_parity_gates.py
test_perf_send.py test_present_source_crop.py test_profile_symbols.py test_program_cache_cleanup.py
test_program_cache_one_variant.py test_readback_timeout_reuse.py test_recording_admission.py test_run_all_mingw.py
test_screensaver.py test_switch_table.py test_target_retention.py test_temporal_present_bandwidth.py
test_tex_desc_memo.py test_text_keyboard_policy.py test_upscaler_round_trip.py test_vcore_video_acquire.py
test_video_catchup.py test_video_hold_early.py test_video_input_limit.py test_vram_compact.py
test_windows_display_startup.py test_windows_on_linux.py

Still to test:

  • Linux (any GPU): the host builds and a short run shows no new line, expecting the same as on Windows (@Beanstalk, a
    Linux build and a start into play).

Measurements

Nothing to measure: the new code runs only where nvnBufferMap already answers 0, at most 4 log lines a run; the path
that answers memory is unchanged.

Risks

A log line, 4 at most, in a run that is about to crash anyway. The no-buffer test moved before P(0): same answer (0) as
before for a 0 argument. A revert is enough. Players notice nothing; their crash logs gain the line.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows built and ran; Linux not built here: no Linux toolchain on this PC. The new code uses only what nvn_native.c already uses on Linux: LONG, InterlockedIncrement, hos_log_at.)
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary A player on nightly-971 (RX 9070 XT, AMD 26.11.2, Windows 11) crashed in Kakariko after the Sheik scene: `[hos PlacementMgr] CRASH: exception 0xc0000005 (write 0x1000000000a0, guest 0xa0)`, guest backtrace from `lr 0x800aa2e8`. The same crash, with the same caller and a write at a small guest address, is on #81 many times since v3.0.0-rc.6, on NVIDIA and AMD cards alike, almost all in Castle Town Market or Kakariko. It is the game writing at what `nvnBufferMap` answered (the crash's `x0` is 0 and the write lands at that 0 plus an offset), and `nvnBufferMap` answers 0 in two cases: no buffer at all, or a buffer whose memory pool has no storage (a virtual pool, or a pool finalized or reused). Nothing in the log says which, so the crash cannot be taken further from players' reports. This logs those 0 answers as a warning, the first 4 times in a run: `nvn: nvnBufferMap of no buffer | a pool with no storage (lr …, buffer … magic …, pool … magic … flags … size …): 0`. The next report then says which object was gone and who asked. The no-buffer case is now tested on `x0` before `P(0)`, as `no_pool` does (the comment there says why). A map that answers memory is unchanged, and nothing else changes: no switch, since it changes no behaviour and only shows in a run that is about to crash. Read first: `host/nvn_native.c` (`map_null`, `NV(nvnBufferMap)`), `tests/test_nvn_buffer_map.py`. See #81. ## Testing **Tested:** Windows 11, RTX 5080, this branch's `longshot.exe` and `longshot_vk.dll` over the shared base (`dev.py pack`, `dev.py rt`), built with llvm-mingw and the gnullvm Rust. One headless run through the job queue (the test profile, `market-entrance` save): Castle Town Market as a child (60 fps) and as an adult, then adult Kakariko (60 fps), about 2 minutes in all. No `[warn]`, `[error]`, CRASH or device-lost line, and no `nvnBufferMap of` line: the 0 case did not happen, as expected; a clean quit (exit 0). Checks: - `tests/test_nvn_buffer_map.py` compiles the real `nvnBufferMap` on its own; it now takes `map_null` with it and checks that a pool with no storage and a null buffer each log one warning naming which, with the whole line as written (the caller's lr, the buffer's address and magic, the pool's address, magic, flags and size; zeros for no buffer), a mapped buffer none, and no more than 4 lines. It passes with gcc and clang; the cap at 6, info level, either log removed, and each field swapped or dropped (lr and buffer, the pool's address, flags, size, the buffer's magic) each fail it, and a checkout whose `nvn_native.c` has no `map_null` fails it. `test_nvn_null_pool.py` passes. - `nvn_native.c` compiled (syntax only, `-Wall -Wextra`) with the build plan's own llvm-mingw command: 0 errors, no warning from the new lines. - `tests/run_all.py --strict` (what `mise run test` runs): 815 passed, 59 failed, 48 skipped. 56 of the failures fail the same on `main` @ 4908cc6da on this PC (listed below); `test_longshot_ctl.py` and `test_recorder_parts.py` failed under load (12 at once) and pass alone, on this branch; `test_nvn_buffer_map.py` is the check updated here. <details><summary>The 56 checks that fail on main too (this PC)</summary> test_auto_handheld.py test_blocks_at_start.py test_bug_report.py test_builder_channel.py test_control_picture.py test_coverage_run.py test_crash_record.py test_crt_options.py test_dev_build.py test_dev_migrate.py test_dev_update.py test_draw_stream_visibility.py test_framegen_hdr.py test_framegen_resources.py test_fs_path_utf8.py test_fsr_uniform_ownership.py test_game_boundary.py test_image_reaper_threads.py test_image_view_retry.py test_input_background.py test_keyboard_menu_option.py test_keyboard_option.py test_lifter.py test_linux_pressure.py test_loaded_modules_drop.py test_log_batch.py test_log_levels.py test_menu_keys.py test_mise_build.py test_native_zstd.py test_oot_menu_mouse.py test_oot_state_tap.py test_option_ids.py test_parity_gates.py test_perf_send.py test_present_source_crop.py test_profile_symbols.py test_program_cache_cleanup.py test_program_cache_one_variant.py test_readback_timeout_reuse.py test_recording_admission.py test_run_all_mingw.py test_screensaver.py test_switch_table.py test_target_retention.py test_temporal_present_bandwidth.py test_tex_desc_memo.py test_text_keyboard_policy.py test_upscaler_round_trip.py test_vcore_video_acquire.py test_video_catchup.py test_video_hold_early.py test_video_input_limit.py test_vram_compact.py test_windows_display_startup.py test_windows_on_linux.py </details> **Still to test:** - Linux (any GPU): the host builds and a short run shows no new line, expecting the same as on Windows (@Beanstalk, a Linux build and a start into play). ## Measurements Nothing to measure: the new code runs only where `nvnBufferMap` already answers 0, at most 4 log lines a run; the path that answers memory is unchanged. ## Risks A log line, 4 at most, in a run that is about to crash anyway. The no-buffer test moved before `P(0)`: same answer (0) as before for a 0 argument. A revert is enough. Players notice nothing; their crash logs gain the line. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows built and ran; Linux not built here: no Linux toolchain on this PC. The new code uses only what `nvn_native.c` already uses on Linux: `LONG`, `InterlockedIncrement`, `hos_log_at`.) - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The game can write at what nvnBufferMap gives back without checking it: a
player's nightly-971 crash (thread PlacementMgr, a write at guest 0xa0 in
Kakariko, RX 9070 XT) and the same crash on #81 across cards wrote through
a 0 it answered. It answers 0 for no buffer, or for a buffer whose pool has
no storage (virtual, finalized or reused); the log names which, with the
caller's lr, the buffer's address and magic and the pool's magic, flags
and size, the first 4 times. The no-buffer case is now tested on x0 before
P(0), as no_pool does. Nothing else changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The line comes right before a crash it can explain, so it carries the
warn level (hos_log_at(HOS_LOG_WARN, ...)): the launcher reads a line's
level from its tag, and the line stands out above the CRASH block in a
player's log. The text and the cap of 4 are as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test(host): the buffer-map check covers nvnBufferMap's logged 0 answers
Some checks failed
beanstalk/approval planning the tests
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 15s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
f139ff4721
test_nvn_buffer_map.py compiles nvn_native.c's nvnBufferMap on its own;
it now takes map_null with it (stubs for hos_log_at and the counter) and
checks that a pool with no storage and a null buffer each log one
warning naming which, a mapped buffer none, and no more than 4 lines. A
checkout whose nvn_native.c has no map_null fails; another --source
without one (the released negative) is checked without that part. The
cap at 6, info level and either log removed each fail it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, RTX 5080, this branch's longshot.exe and longshot_vk.dll over the shared base, one headless run through the job queue (test profile, market-entrance save): Castle Town Market child (60 fps) and adult, then adult Kakariko (60 fps), about 2 minutes. No [warn], [error], CRASH or device-lost line; no 'nvnBufferMap of' line (the 0 case did not happen, as expected); clean quit, exit 0.

Tested in game: Windows 11, RTX 5080, this branch's longshot.exe and longshot_vk.dll over the shared base, one headless run through the job queue (test profile, market-entrance save): Castle Town Market child (60 fps) and adult, then adult Kakariko (60 fps), about 2 minutes. No [warn], [error], CRASH or device-lost line; no 'nvnBufferMap of' line (the 0 case did not happen, as expected); clean quit, exit 0.
Member

Possibly related, for context:

  • issue #2695 Game: Crashes repeatedly during area transitions, including access to Hyrule Castle — Open area-transition crash report; may benefit from logging clue
  • PR #2902 perf(game): mark unmapped descriptor and event NVN2 pools CPU_NO_ACCESS — Recent NVN pool behavior change touching buffer-map context
Possibly related, for context: - issue #2695 Game: Crashes repeatedly during area transitions, including access to Hyrule Castle — Open area-transition crash report; may benefit from logging clue - PR #2902 perf(game): mark unmapped descriptor and event NVN2 pools CPU_NO_ACCESS — Recent NVN pool behavior change touching buffer-map context
Author
Member

@Beanstalk please build this on Linux (any GPU) against the latest nightly and start it into play for a minute or two: a save in Castle Town Market or Kakariko if you have one, else any save. Expecting the host to build and the run to look like the Windows one: no new [warn] or [error] line, and no 'nvnBufferMap of' line (it only appears when nvnBufferMap answers 0, just before a crash). Please post the build result and the log.

@Beanstalk please build this on Linux (any GPU) against the latest nightly and start it into play for a minute or two: a save in Castle Town Market or Kakariko if you have one, else any save. Expecting the host to build and the run to look like the Windows one: no new [warn] or [error] line, and no 'nvnBufferMap of' line (it only appears when nvnBufferMap answers 0, just before a crash). Please post the build result and the log.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The warning can distinguish the two mapped-zero cases without changing successful mappings. The Linux build and in-game run requested by the author are still outstanding. Recommend approval; not approved on the forge.

Adds up to four warnings identifying null-buffer and storage-less-pool mappings, including the caller and object details. The successful mapping path is unchanged; the added test covers warning counts and reasons but does not check the formatted diagnostic.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1: The Linux host build and in-game check are still outstanding. When: Linux players use the same modified host path, but the reported game run and host compilation were on Windows only. Do: Complete the requested Linux build and short play run, and report the result and log.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • tests/test_nvn_buffer_map.py:77: Is there a case at HEAD where the warning is missing or misreports one of those fields?

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven in a player crash: the Windows run did not encounter either zero-return case. The author reports that the game-free fixture exercises both cases; this is not a performance change.

Other systems: The host path is shared by Windows and Linux and is independent of GPU vendor. A Windows RTX 5080 run was clean; Linux build and play evidence is pending. The counter uses the platform's interlocked increment, and the existing crash logging path flushes queued messages.

Switches: None.

Reviewed: f139ff4721 against 4908cc6dad: Read the changed test in full, the diff twice, repository rules, the PR template, commit messages, the null-pool fixture, and the mapping, pool lifetime and logging code around the change. The rest of the large host/nvn_native.c file was skimmed; no recorded runs or generated files were changed. Tooling's adjacent AGENTS.md and docs/review-checklist.md were absent.; nothing run (a code review).

Checked and fine:

  • The warning counter is incremented atomically and successful pooled mappings do not enter the new logging path.
  • The commits record AI assistance; no game-derived or generated files are changed.
  • No renderer API version, shader, switch table or third-party changes are involved.

Testing: Read-only review; no code or tests were run. The author reports a clean Windows game run and passing focused checks; CI is still running.

Overlaps and merge order: Not checked; network access is unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The warning can distinguish the two mapped-zero cases without changing successful mappings. The Linux build and in-game run requested by the author are still outstanding. Recommend approval; not approved on the forge. Adds up to four warnings identifying null-buffer and storage-less-pool mappings, including the caller and object details. The successful mapping path is unchanged; the added test covers warning counts and reasons but does not check the formatted diagnostic. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The Linux host build and in-game check are still outstanding. *When:* Linux players use the same modified host path, but the reported game run and host compilation were on Windows only. **Do:** Complete the requested Linux build and short play run, and report the result and log. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `tests/test_nvn_buffer_map.py:77`: Is there a case at HEAD where the warning is missing or misreports one of those fields? **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven in a player crash: the Windows run did not encounter either zero-return case. The author reports that the game-free fixture exercises both cases; this is not a performance change. **Other systems:** The host path is shared by Windows and Linux and is independent of GPU vendor. A Windows RTX 5080 run was clean; Linux build and play evidence is pending. The counter uses the platform's interlocked increment, and the existing crash logging path flushes queued messages. **Switches:** None. **Reviewed:** f139ff472146 against 4908cc6dadff: Read the changed test in full, the diff twice, repository rules, the PR template, commit messages, the null-pool fixture, and the mapping, pool lifetime and logging code around the change. The rest of the large host/nvn_native.c file was skimmed; no recorded runs or generated files were changed. Tooling's adjacent AGENTS.md and docs/review-checklist.md were absent.; nothing run (a code review). **Checked and fine:** - The warning counter is incremented atomically and successful pooled mappings do not enter the new logging path. - The commits record AI assistance; no game-derived or generated files are changed. - No renderer API version, shader, switch table or third-party changes are involved. **Testing:** Read-only review; no code or tests were run. The author reports a clean Windows game run and passing focused checks; CI is still running. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
test(host): the buffer-map check reads the whole logged line
Some checks failed
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Failing after 10s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m12s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m5s
CI / Website build and checks (pull_request) Failing after 34s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m24s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 6m32s
PR description / Title and description (pull_request_target) Failing after 7s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 29m52s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 35m52s
beanstalk/approval held by the security check: see the farm's comment
62d2563a95
BeanBot's review (PR 2942) asked whether a field of the warning could be
missing or misreported: the check compared only the level, the reason and
the count. Its stub now writes the line as the format makes it, and the
check compares it whole: the caller's lr, the buffer's address and magic,
the pool's address, magic, flags and size for a pool with no storage, and
zeros for no buffer. Swapping lr and the buffer, the buffer's address
for the pool's, magic for flags, the buffer's size for the pool's, or
dropping the buffer's magic each fail it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

On BeanBot's question (tests/test_nvn_buffer_map.py:77): the check now reads the whole logged line, not only its level, reason and count (62d2563a9). For a pool with no storage it compares the caller's lr, the buffer's address and magic and the pool's address, magic, flags and size against the line as written; for no buffer, lr and zeros. Swapping lr and the buffer, the buffer's address for the pool's, magic for flags, the buffer's size for the pool's, or dropping the buffer's magic each fail it; it passes with gcc and clang. No change to host/nvn_native.c, so the Windows game run still holds. The Linux build and run are with Beanstalk (requested above).

On BeanBot's question (tests/test_nvn_buffer_map.py:77): the check now reads the whole logged line, not only its level, reason and count (62d2563a9). For a pool with no storage it compares the caller's lr, the buffer's address and magic and the pool's address, magic, flags and size against the line as written; for no buffer, lr and zeros. Swapping lr and the buffer, the buffer's address for the pool's, magic for flags, the buffer's size for the pool's, or dropping the buffer's magic each fail it; it passes with gcc and clang. No change to host/nvn_native.c, so the Windows game run still holds. The Linux build and run are with Beanstalk (requested above).
Author
Member
@review
BeanBot requested changes 2026-12-01 08:19:43 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The warning adds diagnostic context without changing successful mappings. The Linux host build and in-game check remain outstanding. (It stands on L2: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 10s.)

Null buffer-map results now produce up to four warnings with the caller and object state, which may help diagnose the reported crash; the test checks the full warning text. The normal mapped path remains unchanged.

Blocking (1): must change before merging.

  1. L2: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 10s.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1: The Linux host build and in-game check are still outstanding. When: Linux players use the same modified host path, but the reported game run and host compilation were on Windows only. Do: Complete the requested Linux build and short play run, and report the result and log.

@fix can do L2.

Since the last review (on f139ff4721)
Still open: L1 (The Linux host build and in-game check are still outstanding.)
New: L2 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…)

Checks: Still running: 8 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the fixture reportedly passes with gcc and clang, but the Windows game run did not encounter a zero result, so it did not demonstrate the warning in a real crash report. This is not a performance change.

Other systems: The host path is shared across Windows and Linux and GPU vendors. A Windows NVIDIA game run was clean; the Linux build and run are outstanding.

Switches: None.

Reviewed: 62d2563a95 against 4908cc6dad: Read the full changed test and the diffs, repository contribution rules, AGENTS.md and pull request template. Read the changed host functions and surrounding definitions; the rest of host/nvn_native.c was skimmed. docs/review-checklist.md was absent.; nothing run (a code review).

Checked and fine:

  • The changed test compares the complete warning for both zero-result cases and checks the four-line cap.
  • The reported Windows game run quit cleanly without unexpected warnings.

Testing: No commands from the project or tests were run for this review. The author reports gcc and clang fixture passes and a clean Windows game run; Linux validation remains requested. CI has one head-only failure and several checks still running.

Overlaps and merge order: Not checked.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The warning adds diagnostic context without changing successful mappings. The Linux host build and in-game check remain outstanding. (It stands on L2: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 10s.) Null buffer-map results now produce up to four warnings with the caller and object state, which may help diagnose the reported crash; the test checks the full warning text. The normal mapped path remains unchanged. **Blocking (1)**: must change before merging. 1. **L2**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 10s. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The Linux host build and in-game check are still outstanding. *When:* Linux players use the same modified host path, but the reported game run and host compilation were on Windows only. **Do:** Complete the requested Linux build and short play run, and report the result and log. `@fix` can do L2. **Since the last review** (on f139ff472146) Still open: L1 (The Linux host build and in-game check are still outstanding.) New: L2 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…) **Checks:** Still running: 8 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the fixture reportedly passes with gcc and clang, but the Windows game run did not encounter a zero result, so it did not demonstrate the warning in a real crash report. This is not a performance change. **Other systems:** The host path is shared across Windows and Linux and GPU vendors. A Windows NVIDIA game run was clean; the Linux build and run are outstanding. **Switches:** None. **Reviewed:** 62d2563a95c4 against 4908cc6dadff: Read the full changed test and the diffs, repository contribution rules, AGENTS.md and pull request template. Read the changed host functions and surrounding definitions; the rest of host/nvn_native.c was skimmed. docs/review-checklist.md was absent.; nothing run (a code review). **Checked and fine:** - The changed test compares the complete warning for both zero-result cases and checks the four-line cap. - The reported Windows game run quit cleanly without unexpected warnings. **Testing:** No commands from the project or tests were run for this review. The author reports gcc and clang fixture passes and a clean Windows game run; Linux validation remains requested. CI has one head-only failure and several checks still running. **Overlaps and merge order:** Not checked. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Author
Member

@Beanstalk

@Beanstalk
Member

Beanstalk test farm · ⛔ held by the security check

Commit 62d2563 · approved by llun (untrusted) · dashboard

Held by the security check (gpt-6-luna), so nothing is built or run:

The pull request data is empty, so there is no diff to assess; this is a garbage/empty change.

The check looks at the diff for code that is plainly unsafe or broken before any tester builds it. A new push is checked again. A member of BigBeans who has looked at the code can comment @Beanstalk plan <why it is fine>: the check reads those words.

<!-- beanstalk:sticky --> ### Beanstalk test farm · ⛔ held by the security check Commit `62d2563` · approved by llun (untrusted) · [dashboard](https://beanstalk.magicbean.dev/prs/2942) **Held by the security check** (`gpt-6-luna`), so nothing is built or run: > The pull request data is empty, so there is no diff to assess; this is a garbage/empty change. The check looks at the diff for code that is plainly unsafe or broken before any tester builds it. A new push is checked again. A member of `BigBeans` who has looked at the code can comment `@Beanstalk plan <why it is fine>`: the check reads those words.
llun changed title from WIP: feat(host): nvnBufferMap's 0 answers are logged as a warning, which one and who asked to feat(host): nvnBufferMap's 0 answers are logged as a warning, which one and who asked 2026-12-01 08:34:32 +00:00
BeanBot left a comment

Recommendation: Request changes. The warning can distinguish the two reported null-map cases, but the Linux host build and in-game check remain outstanding. Two CI checks also fail on this head, and three are still running. (It stands on L2: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 10s.)

Adds up to four warnings per run with the caller and buffer or pool details when nvnBufferMap returns zero, helping diagnose subsequent crashes. Successful pooled mappings retain their existing path; the change adds a small amount of diagnostic code and test coverage.

Blocking (2): must change before merging.

  1. L2: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 10s.
  2. L3: The check CI / Website build and checks (pull_request) fails on this head and passes on the base branch: Failing after 34s.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1: The Linux host build and in-game check are still outstanding. When: Linux players use the same modified host path, but the reported game run and host compilation were on Windows only. Do: Complete the requested Linux build and short play run, and report the result and log.

@fix can do L2 and L3.

Since the last review (on 62d2563a95)
Still open: L1 (The Linux host build and in-game check are still outstanding.); L2 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…)
New: L3 (The check CI / Website build and checks (pull_request) fails on this head and passes on…)

Checks: Still running: CI / Game-free checks (run_all.py, part 1/2) (pull_request), CI / Game-free checks (run_all.py, part 2/2) (pull_request), PR description / Title and description (pull_request_target).

More: does it help, other systems, switches, what was read

Does it help: Unproven in a player crash report: the Windows game run did not encounter a zero result. The author reports that the game-free test checks both warning cases and their fields; this is not a performance change.

Other systems: The host path is shared across Windows and Linux and does not depend on GPU vendor. The reported Windows RTX 5080 run was clean; the Linux build and short run are still pending.

Switches: None.

Reviewed: 62d2563a95 against 4908cc6dad: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the full test file, the diff and commits, and the changed host code with its pointer conversion and buffer initialization context. Skimmed the standards and surrounding host code; did not read host/nvn_native.c in full. The referenced sibling Tooling AGENTS.md and docs/review-checklist.md are absent.; nothing run (a code review).

Checked and fine:

  • The test checks the warning level, reason, full line and four-line cap for the named null cases.
  • The successful pooled mapping path remains unchanged.
  • No switches or generated files are changed.

Testing: No commands that build or run project code were executed. The author reports a clean Windows game run and passing focused checks; CI has two head-only failures and three checks still running.

Overlaps and merge order: Not established from the supplied information.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The warning can distinguish the two reported null-map cases, but the Linux host build and in-game check remain outstanding. Two CI checks also fail on this head, and three are still running. (It stands on L2: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 10s.) Adds up to four warnings per run with the caller and buffer or pool details when nvnBufferMap returns zero, helping diagnose subsequent crashes. Successful pooled mappings retain their existing path; the change adds a small amount of diagnostic code and test coverage. **Blocking (2)**: must change before merging. 1. **L2**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 10s. 2. **L3**: The check `CI / Website build and checks (pull_request)` fails on this head and passes on the base branch: Failing after 34s. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The Linux host build and in-game check are still outstanding. *When:* Linux players use the same modified host path, but the reported game run and host compilation were on Windows only. **Do:** Complete the requested Linux build and short play run, and report the result and log. `@fix` can do L2 and L3. **Since the last review** (on 62d2563a95c4) Still open: L1 (The Linux host build and in-game check are still outstanding.); L2 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…) New: L3 (The check `CI / Website build and checks (pull_request)` fails on this head and passes on…) **Checks:** Still running: `CI / Game-free checks (run_all.py, part 1/2) (pull_request)`, `CI / Game-free checks (run_all.py, part 2/2) (pull_request)`, `PR description / Title and description (pull_request_target)`. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven in a player crash report: the Windows game run did not encounter a zero result. The author reports that the game-free test checks both warning cases and their fields; this is not a performance change. **Other systems:** The host path is shared across Windows and Linux and does not depend on GPU vendor. The reported Windows RTX 5080 run was clean; the Linux build and short run are still pending. **Switches:** None. **Reviewed:** 62d2563a95c4 against 4908cc6dadff: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the full test file, the diff and commits, and the changed host code with its pointer conversion and buffer initialization context. Skimmed the standards and surrounding host code; did not read host/nvn_native.c in full. The referenced sibling Tooling AGENTS.md and docs/review-checklist.md are absent.; nothing run (a code review). **Checked and fine:** - The test checks the warning level, reason, full line and four-line cap for the named null cases. - The successful pooled mapping path remains unchanged. - No switches or generated files are changed. **Testing:** No commands that build or run project code were executed. The author reports a clean Windows game run and passing focused checks; CI has two head-only failures and three checks still running. **Overlaps and merge order:** Not established from the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch feat/nvn-buffer-map-null-log 2026-12-01 14:00:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2942
No description provided.