Repository navigation
Conversation
There was a problem hiding this comment.
Isaac Lab Review Bot
This PR adds a per-recorder _cubric_warning_logged guard so the Kit/Newton cubric warning is emitted only on the first applicable capture while frame capture continues normally.
- Design and architecture: The new private flag follows the recorder's existing once-only logging pattern and is scoped per
VideoRecorder, preserving a warning for each independent recorder while suppressing repeats across frames and clips. It is set only after the Newton GL backend condition is confirmed. - API: No public API, configuration, source parsing, defaults, or return types change. The warning text remains unchanged, and the user-visible fix has an appropriately placed package changelog fragment.
- Implementation: The capture path from
step()through_get_frame()to_frame_from_visualizer()remains intact; only repeated backend probes and warning emissions are skipped after the first matching warning. The closest existing test now verifies one warning over five captures and confirms all five render calls still occur.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
Greptile SummaryThis PR prevents the Kit/Newton cubric warning from being repeated for every captured frame.
Confidence Score: 4/5The implementation appears safe to merge, with only a non-blocking gap in coverage of independent recorder instances. The instance-level guard correctly preserves first-frame warning emission and all subsequent captures; the remaining concern is that the test does not protect the documented per-recorder boundary. Files Needing Attention: source/isaaclab/test/envs/test_video_recorder.py Important Files Changed
Reviews (1): Last reviewed commit: "Log VideoRecorder cubric warning once pe..." | Re-trigger Greptile |
| cubric_warnings = [r for r in caplog.records if "source='visualizer:newton'" in r.message] | ||
| assert len(cubric_warnings) == 1 |
There was a problem hiding this comment.
This test verifies suppression across five frames from one VideoRecorder, but it does not verify that a second recorder emits its own warning. A class-level or global guard would still pass, allowing a regression that suppresses warnings for later recorder streams. Please create a second recorder and assert that it emits another warning.
matthewtrepte
left a comment
There was a problem hiding this comment.
looks good, thank you
|
run-ci |
# Description Forward-ports #7633 from `release/3.0.0` to `develop`. `VideoRecorder` logs the Kit/Newton "requires cubric" warning from `_frame_from_visualizer()`, which is called on every captured frame. Because the condition is fixed recorder configuration state, repeating the warning once per frame floods the terminal without adding information. This change adds a per-recorder guard so the warning is emitted on the first applicable capture only. Frame capture continues on every frame, the warning text is unchanged, and each independent recorder still emits its own warning. The original commit by @klakhi is preserved. The test also covers a second recorder instance, addressing the review feedback on #7633. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` Existing release PR: #7633 ## Screenshots N/A — console-output behavior only. ## Validation - Regression test on unmodified `upstream/develop`: failed as expected with 6 warnings instead of 2. - `PYTHONPATH=source/isaaclab:source/isaaclab_visualizers uv run --no-project --with pytest --with numpy --with torch --with gymnasium --with lazy-loader --with warp-lang --with 'moviepy<2' python -m pytest source/isaaclab/test/envs/test_video_recorder.py -q` — 33 passed. - Changelog fragment gate — passed against the current `upstream/develop`. - `uv run --no-project --with-editable ./source/isaaclab --with pre-commit isaaclab -f` — passed all hooks. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the pre-commit checks with `uv run isaaclab -f` - [x] I have made corresponding changes to the documentation (none required; no public API or documented behavior changed) - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] The original contributor already exists in `CONTRIBUTORS.md` --------- Co-authored-by: Krishna Lakhi <[email protected]>
# Description Forward-ports #7633 from `release/3.0.0` to `develop`. `VideoRecorder` logs the Kit/Newton "requires cubric" warning from `_frame_from_visualizer()`, which is called on every captured frame. Because the condition is fixed recorder configuration state, repeating the warning once per frame floods the terminal without adding information. This change adds a per-recorder guard so the warning is emitted on the first applicable capture only. Frame capture continues on every frame, the warning text is unchanged, and each independent recorder still emits its own warning. The original commit by @klakhi is preserved. The test also covers a second recorder instance, addressing the review feedback on #7633. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` Existing release PR: #7633 ## Screenshots N/A — console-output behavior only. ## Validation - Regression test on unmodified `upstream/develop`: failed as expected with 6 warnings instead of 2. - `PYTHONPATH=source/isaaclab:source/isaaclab_visualizers uv run --no-project --with pytest --with numpy --with torch --with gymnasium --with lazy-loader --with warp-lang --with 'moviepy<2' python -m pytest source/isaaclab/test/envs/test_video_recorder.py -q` — 33 passed. - Changelog fragment gate — passed against the current `upstream/develop`. - `uv run --no-project --with-editable ./source/isaaclab --with pre-commit isaaclab -f` — passed all hooks. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the pre-commit checks with `uv run isaaclab -f` - [x] I have made corresponding changes to the documentation (none required; no public API or documented behavior changed) - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] The original contributor already exists in `CONTRIBUTORS.md` --------- Co-authored-by: Krishna Lakhi <[email protected]> (cherry picked from commit b7f66e7)
|
merged and cherry picked in #7657 |
Description
VideoRecorderlogs the Kit/Newton "requires cubric" warning from_frame_from_visualizer(), which_get_frame()calls on every captured frame. Thewarning has no once-only guard, so it repeats once per frame for the entire clip and
buries all other console output.
Observed on
release/3.0.0with Isaac Sim 6.1.0rc26 on Windows — roughly 120 identicallines in 12 seconds before the run was interrupted; a full
--video_length 200run emits~200 copies:
The condition being reported —
viz_type == "kit"andphysics_manager.video_capture_backend() == "newton_gl"— is fixed configuration statethat cannot change between frames, so re-logging it per frame carries no new information.
This change adds a
self._cubric_warning_loggedflag and gates the warning on it,mirroring the once-only
self._frame_error_loggedguard that the same class already usesfor its frame-capture error path.
Behavior is otherwise unchanged: the warning text is byte-identical, it still fires on the
first frame, capture is still attempted on every frame, and the flag is per-recorder so a
second recorder stream still warns.
Fixes # (issue)
Type of change
Release backport
developScreenshots
N/A — console output only; before/after line counts are given above.
Checklist
Docker and GPU tests run on demand. Push the commits you want tested, then
comment
run-cion the pull request.pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists thereTest coverage
Extended the existing
test_kit_visualizer_newton_physics_logs_warningrather than addinga new case: it now drives five captures and asserts exactly one warning while all five
frames are still captured. The test fails on the current code (5 warnings) and passes with
this change (1 warning).
Documentation
No documentation change is required.
docs/source/features/record_video.rstalreadydescribes this case as "a warning is logged" (singular), which this change makes accurate
rather than contradicting. No public API, signature, or cfg field is touched.