Skip to content

Log VideoRecorder cubric warning once per recorder - #7657

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
kellyguo11:codex/fix-video-recorder-cubric-warn-once
Sep 9, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
kellyguo11:codex/fix-video-recorder-cubric-warn-once

Conversation

@kellyguo11

Copy link
Copy Markdown
Contributor

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

  • 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

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab -f
  • I have made corresponding changes to the documentation (none required; no public API or documented behavior changed)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • The original contributor already exists in CONTRIBUTORS.md

@kellyguo11
kellyguo11 requested a review from a team September 9, 2026 00:13
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 9, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

Reviewed the per-recorder suppression of the repeated Kit/Newton cubric warning, including warning timing, recorder-instance isolation, continued frame capture, regression coverage, and changelog integration. The change is narrowly scoped and consistent with the stated behavior.

  • Design and architecture: The new private flag is initialized alongside the existing one-shot frame-error state and remains scoped to each VideoRecorder instance. This preserves separate warnings for independent recorders while avoiding per-frame log flooding.
  • API: No public API or configuration surface changes. Warning text, frame-capture behavior, public methods, and exception contracts remain unchanged; only the warning frequency changes.
  • Implementation: The guard is marked only when the Newton backend condition causes the warning to be emitted, and capture continues afterward. The updated test verifies one warning per recorder across repeated captures and confirms that all six frame-render calls still occur. The package changelog fragment accurately records the user-visible logging fix.

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-apps

greptile-apps Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge, with focused implementation and regression coverage matching the intended once-per-recorder behavior.

Summary

  • Adds a per-recorder guard around the cubric warning.
  • Extends regression coverage across repeated captures and independent recorder instances.
  • Documents the corrected console-output behavior in a changelog fragment.

@kellyguo11

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 9, 2026
@kellyguo11
kellyguo11 merged commit b7f66e7 into isaac-sim:develop Sep 9, 2026
54 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 10c4a7c.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 9, 2026
# 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants