trace-core fails intermittently: zeroed inline records in whole subgroups (shadow-masked, bvh4-single-instanced)

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start with node bench/runner/run.ts --page trace-core --args scenes=cornell,quad-light sceneTrees=0 and isolate the shadow-masked set on bvh4-single-instanced. Run the inline kernel alone 50 times with a fixed seed, record failing subgroups, then repeat with the pt_bvh binary to compare. A fix should pass three separate reruns of 20; the issue does not name implementation files.

Written by the indexing model from the issue text.

Description

bug

Task: X-trace-core (TASKS) · Page: node bench/runner/run.ts --page trace-core --args scenes=cornell,quad-light sceneTrees=0

trace-core fails intermittently (~10-40% of runs) with inlineMismatch = coneMismatch. It fails on main and on every commit sampled back to before V302, so it is not a regression of the media work. Pass / fail does not track machine load.

What is known

  • Only set shadow-masked (mask 1) on format bvh4-single-instanced, both scenes.
  • Bad rays come in runs of consecutive indices, totals mostly multiples of 32 (64, 160, 192, 224; sometimes 1 or 2): whole 32-lane subgroups.
  • The batch tracer says miss; the page's INLINE kernel (rtClosestCone + rtVisible + rtSurface ALL, workgroup 64) returns a zeroed record (t 0, instance 0, triangle 0, flags 3).

Suspects

Uninitialised or racing workgroup / private memory in the inline cone walk under a ray mask, or an out-of-bounds read on the bvh4 single-instance path that the robustness clamp turns into zeros.

Next step

Run the inline kernel alone on that set 50 times with a fixed seed and record which subgroups fail; then the same with pt_bvh binary to see whether the wide walk is required. Judge any fix by 3 of 3 clean reruns of 20, not one pass.

Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
15h 19m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pmndrs/pathtracer

All issues in pmndrs/pathtracer

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.