Skip to content

cvcgl_ariadne_realize: stop the heat solve once it is stepping - #953

Merged
transfix merged 1 commit into
masterfrom
fix/heat-stop-test
Nov 1, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/heat-stop-test

Conversation

@transfix

@transfix transfix commented Nov 1, 2026

Copy link
Copy Markdown
Owner

cvcgl_ariadne_realize's check "heat.steps = 1e30 is clamped, and stop interrupts it" fails intermittently on package-linux / libcvc-debug-grpc with status 'heat: stopped'. It failed on #944's own CI and twice on #946's.

Cause: the test sent stop once fe.progress reached 1%. A solve job's first 3% of progress is the boundary walk that runs before the solver (solve_boundary_step), and fe_lab only lets a heat job outlive a stop once it is in the solve stage. On a slow Debug build the stop arrived during the boundary walk, so the job ended with nothing instead of "heat: stopped at step N".

Fix: wait for fe.phase to read stepping (the heat solver's time-stepping phase) before sending the stop. A solve wrapped to one step is still caught: it finishes (busy 0) before the stop, and the status check fails.

Test-only change. It passes locally on Windows (Release, 7.9 s). The failure is timing-dependent and doesn't reproduce here, so the Linux Debug-grpc job is the real check.

The heat-stop check sent "stop" once fe.progress reached 1%. The first 3%
of a solve job's progress is the boundary walk before the solve, so on a
slow build (package-linux Debug-grpc) the stop landed there and the job
ended with nothing ('heat: stopped'), failing "heat.steps = 1e30 is
clamped, and stop interrupts it" (#944's CI, and twice on #946's).

Wait for fe.phase "stepping" instead: the time steps are under way, so a
stop ends the solve at a step, and a solve wrapped to one step is still
caught (done, busy 0, before the stop).
transfix added a commit that referenced this pull request Nov 1, 2026
…dow focus (#946)

VTK 9.5's exponential shadow map barely darkened anything at a city's scale, and its light camera spread a 4096 map over ~17 km, so cvcdbg's demo3 showed no building or vehicle shadows.

- FilteredShadowMapPass: the maps read back as depths and filtered (16-tap Poisson PCF), with normal offset, depth bias and receiver-plane bias in shadow texels; empty texels read lit; fades at the map's border. SceneGraph::setShadowSoftness.
- StridedShadowBaker bakes through its own copy of VTK's loop: shader keys on every prop it draws, and texels hold 1 + exp(c z), so a pale background no longer reads as an occluder.
- SceneGraph::setShadowFocus(x, y, z, r) / clearShadowFocus: each light's map aimed at a sphere (demo3: what the camera looks at, ~0.2 m a texel), the whole scene's depth range kept.
- No GL error check around the forked bake: VTK's low-memory mapper raises GL_INVALID_OPERATION after a shader-cache release, VTK's own, which its compiled-out checks never report.
- New test cvcgl_city_sun_shadows; also carries the macOS JoltRollout calibration (4add8b3 on #942).

Merged with package-linux Debug-grpc red on cvcgl_ariadne_realize's heat-stop check, a timing flake inherited from master (#944's CI failed it too); fixed in #953.
@transfix
transfix merged commit a85ebf1 into master Nov 1, 2026
21 of 27 checks passed
@transfix
transfix deleted the fix/heat-stop-test branch November 1, 2026 05:03
transfix added a commit that referenced this pull request Nov 1, 2026
#955 landed as a squash, so this branch's copy of it (through 4f3731d) is merged with master taking
4f3731d as the base: master brings #953 and #954, and the branch keeps the energy budget and the
Avatar window on top.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant