Skip to content

[Odin] Reject Newton Warp + simple shading presets on the cartpole camera tasks - #7530

Merged
StafaH merged 7 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/fix/cartpole-camera-newton-shading
Sep 21, 2026
Merged

StafaH merged 7 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/fix/cartpole-camera-newton-shading

Conversation

@AntoineRichard

@AntoineRichard AntoineRichard commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Isaac-Cartpole-Camera and Isaac-Cartpole-Camera-Direct expose the renderer and the camera
data type as two independent presets= selectors, so newton_renderer can be combined with
simple_shading_constant_diffuse, simple_shading_diffuse_mdl, or simple_shading_full_mdl.
The Newton Warp renderer does not publish those data types, so the combination is accepted at
config resolution and only fails later, in Camera._create_buffers, once the simulator has
already started:

ValueError: Renderer NewtonWarpRenderer does not support the following requested
data types: ['simple_shading_constant_diffuse']

This showed up as 72 failed rows in a benchmark sweep (dispatch 20260901-153531, image
built from release/3.0.0 at f88dbc59c82): every failure was one of the two cartpole camera
tasks with renderer=newton_renderer and one of the three simple_shading_* presets, each
burning roughly 400 s of startup before raising. The same data-type presets completed normally
on isaacsim_rtx and ovrtx (107 completed rows), so the gap is specific to the Newton Warp
backend. simple_shading_* is an Isaac RTX shading-mode setting that OVRTX aliases to
LdrColor; Newton has no analogue.

This PR adds a validate_config hook to both cartpole camera env configs, mirroring the guards
ShadowHandCameraEnvCfg and ReorientEnvCfg (in lift_env_cfg.py) already have.
configclass's validate() invokes it, so the combination now fails immediately at config
resolution with an actionable message instead of after the simulator has come up. It also means
task-discovery tooling that calls env_cfg.validate() (e.g. our benchmark harness) drops these
combinations from the matrix automatically, rather than scheduling 72 jobs that are known to fail.

Whether the Newton Warp renderer should gain simple_shading_* support is a rendering-team
decision; this PR does not prejudge it.

One note for reviewers: the allow-list here was re-derived from
NewtonWarpRenderer.supported_output_types, which publishes 10 kinds, rather than copied from
Shadow Hand. Shadow Hand's and Lift's literal sets list only 7, omitting rgba, rgb_hdr,
and albedo, so they currently false-reject e.g. presets=newton_renderer,albedo. This PR uses
the renderer's actual 10 so cartpole's albedo preset keeps working on Newton, which matches the
sweep (no cartpole albedo rows failed). Fixing the two stale sets is left out of scope here.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Behaviour change: presets=newton_renderer,simple_shading_* on the two cartpole camera tasks now
raises at config resolution instead of at env construction. It never produced a working run, so
nothing that used to train stops training. Migration guidance is in the changelog fragment: use
presets=newton_renderer,rgb, or keep the shading data types on an RTX backend with
presets=isaacsim_rtx,simple_shading_full_mdl.

The generated environment browser lists renderer presets and data-type presets as flat,
independent lists and does not encode combinations (Isaac-Reorient-Cube-Shadow-Camera-Direct,
which already has this guard, still lists both), so no regeneration is needed.

Screenshots

N/A

Checklist

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation (changelog fragment)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file (changelog fragment; version files not edited per repo policy)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

Test evidence

New test: source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py (12 cases). It
resolves the real configs via resolve_presets and calls cfg.validate(); no simulator is
launched. Both tasks, both directions: Newton + each simple_shading_* must raise;
isaacsim_rtx/ovrtx + simple_shading_full_mdl must still resolve; newton_renderer,rgb must
still resolve.

With the fix:

$ uv run --frozen --extra test python -m pytest \
    source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py -q
12 passed in 3.23s

With the two config files reverted to their develop content (guard removed, test unchanged):

6 failed, 6 passed in 3.46s
FAILED ...::test_newton_renderer_rejects_simple_shading[simple_shading_constant_diffuse-direct]
FAILED ...::test_newton_renderer_rejects_simple_shading[simple_shading_constant_diffuse-manager]
FAILED ...::test_newton_renderer_rejects_simple_shading[simple_shading_diffuse_mdl-direct]
FAILED ...::test_newton_renderer_rejects_simple_shading[simple_shading_diffuse_mdl-manager]
FAILED ...::test_newton_renderer_rejects_simple_shading[simple_shading_full_mdl-direct]
FAILED ...::test_newton_renderer_rejects_simple_shading[simple_shading_full_mdl-manager]
E       Failed: DID NOT RAISE ValueError

Neighbouring suites (Shadow Hand presets, env-cfg import rules) plus this one: 102 passed.
uv run --frozen isaaclab -f passes.

The GPU/Isaac Sim rendering suites (test_rendering_cartpole*.py,
test_rendering_registered_tasks.py) were not run here. Checked statically instead: their
newton_renderer parametrizations draw from _NEWTON_WARP_DATA_TYPES in
rendering_test_utils.py, which is a strict subset of the allow-list, and their
simple_shading_* cases pin isaacsim_rtx/ovrtx, so none of them hits the new guard.

The cartpole camera tasks let ``presets=`` select a renderer and a camera data
type independently, so ``newton_renderer`` could be combined with one of the
``simple_shading_*`` presets. The Newton Warp renderer does not publish those
data types, so the combination only failed in ``Camera._create_buffers`` at env
construction, minutes into a run.

Add a ``validate_config`` hook to both cartpole camera env configs, mirroring
the guard the Shadow Hand camera task already has, so the combination is
rejected during config resolution. The allow-list is shared in
``isaaclab_tasks.utils.presets`` and mirrors the keys published by
``NewtonWarpRenderer.supported_output_types``.
@AntoineRichard
AntoineRichard requested a review from a team September 3, 2026 09:38
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 3, 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

The change adds early config validation for incompatible Newton Warp and simple_shading_* preset combinations in both cartpole camera tasks, with migration guidance and focused regression coverage.

  • Design and architecture: The shared validator and Newton Warp output allow-list are colocated with MultiBackendRendererCfg, avoiding duplicate task-level contracts while keeping the change scoped to the two affected cartpole configurations. The allow-list is checked against the renderer’s published output types.
  • API: The behavior change is limited to rejecting configurations that the Newton Warp renderer cannot construct successfully. Supported Newton outputs and the tested Isaac RTX and OVRTX shading combinations remain accepted, and the changelog documents compatible alternatives.
  • Implementation: The direct and manager-based configurations validate their respective camera paths correctly. Tests cover both tasks, incompatible shading combinations, representative supported Newton outputs, unaffected RTX paths, and allow-list drift. The contract test’s unbound renderer-method stand-in is somewhat coupled to the current implementation, but it directly verifies the duplicated renderer contract and does not warrant pre-merge action.

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 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds early validation for incompatible Newton Warp renderer and camera data-type presets in both cartpole camera configurations.

  • Introduces a shared Newton Warp output-type allow-list and validation helper.
  • Hooks validation into the direct and manager-based cartpole camera configurations.
  • Adds coverage for rejected simple-shading combinations, supported renderer combinations, and synchronization with the renderer contract.
  • Documents the behavior change and migration guidance.

Confidence Score: 5/5

The PR appears safe to merge, with the new validation aligned to the current renderer contract and covered across both cartpole camera configurations.

The guard recognizes the resolved Newton renderer correctly, matches its published output types, leaves RTX configurations unaffected, and does not omit inherited validation.

Important Files Changed

Filename Overview
source/isaaclab_tasks/isaaclab_tasks/utils/presets.py Adds a shared guard whose renderer identifier and supported output set match the current Newton Warp renderer contract.
source/isaaclab_tasks/isaaclab_tasks/core/cartpole/cartpole_direct_camera_env_cfg.py Adds config-resolution validation for the direct cartpole camera without suppressing inherited validation.
source/isaaclab_tasks/isaaclab_tasks/core/cartpole/cartpole_manager_camera_env_cfg.py Adds the equivalent config-resolution validation for the manager-based cartpole camera.
source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py Covers incompatible and supported preset combinations and pins the shared allow-list to the renderer’s published outputs.
source/isaaclab_tasks/changelog.d/cartpole-camera-warp-shading-guard.rst Accurately documents the corrected failure timing and compatible alternatives.

Reviews (1): Last reviewed commit: "Reject Newton Warp + simple shading on t..." | Re-trigger Greptile

Drop the new public helper and allow-list from isaaclab_tasks.utils.presets and
inline the check in each cartpole camera config, matching the existing inline
guards in the Shadow Hand and Lift configs rather than introducing a third
pattern. Trim the regression test to the contract it proves and tighten the
changelog fragment.
@AntoineRichard AntoineRichard changed the title Reject Newton Warp + simple shading presets on the cartpole camera tasks [Odin] Reject Newton Warp + simple shading presets on the cartpole camera tasks Sep 3, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor

The early failure is useful, but the renderer capability contract should not be copied into each task config. NewtonWarpRenderer.supported_output_types() is already the source of truth, and the existing Shadow Hand/Lift lists have demonstrably drifted. Could we expose a config-time capability query through the resolved renderer class and make camera/renderer compatibility validation generic? The runtime Camera._create_buffers() check should remain as a defensive guard.

This comment was AI-generated.

@ooctipus

ooctipus commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

im fine with validate_config dsolution, but kelly has a good point

@AntoineRichard

Copy link
Copy Markdown
Collaborator 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 11, 2026

@StafaH StafaH left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's move the assert into the camera to avoid duplication at the task level! otherwise LGTM

@AntoineRichard

Copy link
Copy Markdown
Collaborator 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 11, 2026
…tpole-camera-newton-shading

# Conflicts:
#	source/isaaclab_tasks/isaaclab_tasks/core/lift/lift_env_cfg.py
#	source/isaaclab_tasks/test/core/test_shadow_hand_camera_presets.py
@StafaH

StafaH commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

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 20, 2026
@StafaH

StafaH commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

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 21, 2026
@StafaH
StafaH merged commit 31d1c53 into isaac-sim:develop Sep 21, 2026
53 checks passed
ooctipus added a commit that referenced this pull request Sep 21, 2026
…7530, #7899) (#7926)

## Description

Backports the two changes merged into `develop` since September 19 that
are still missing from `release/3.0.0`:

| Source PR | Change | Source commit |
| --- | --- | --- |
| #7530 | Validate camera outputs against renderer capabilities before
simulator startup | `31d1c53510490c76841e9c35a329574b357d9900` |
| #7899 | Share native resources by construction cfg and centralize
ownership and teardown | `c90c3a1097a0a669a823b880b1c8d0654d7fd267` |

Includes the original regression tests, API documentation, and changelog
fragments. #7530 applied without changes. #7899 required two conflict
resolutions to retain the release branch's OVRTX mapping API,
documentation, and tests. Of its 62 files, 59 match the merged source
exactly; the other three retain those existing release additions.
Release versions, lockfile entries, compiled changelogs, and
documentation routing are preserved.

## Audit

Checked all **33 PRs** merged from September 19, 2026 00:00
America/Los_Angeles through `develop` commit `c90c3a1097` (September 20,
21:29 Pacific), against release base `75e9c8ce12`. **31 are already
backported; the remaining two are included here.** Git first-parent
history and GitHub's merged PR list agree. Automatic changelog/version
compilation remains branch-specific.

<details>
<summary>31 PRs already recorded in release</summary>

| Source PRs | Existing release commit |
| --- | --- |
| #7777, #7608, #7895, #7872, #7831, #7834, #7838, #7840, #7903, #7674 |
[`ff22c52891`](ff22c52)
|
| #7886 |
[`41bfaee5f0`](41bfaee)
|
| #7042 |
[`970d21ef48`](970d21e)
|
| #7905 |
[`f0563d1f9e`](f0563d1)
|
| #7604 |
[`dca7cfe984`](dca7cfe)
|
| #7610, #7603 |
[`5dd2220243`](5dd2220)
|
| #7839 |
[`b8b93bb96e`](b8b93bb)
|
| #6851 |
[`baa025ad90`](baa025a)
|
| #7250 |
[`f86b33e6b1`](f86b33e)
|
| #7910 |
[`24f7b4842b`](24f7b48)
|
| #7810 |
[`9738e096c8`](9738e09)
|
| #7832 |
[`be270ed88b`](be270ed)
|
| #4679 |
[`80157aa22d`](80157aa)
|
| #7914 |
[`01b59b5a22`](01b59b5)
|
| #7502 |
[`db7db61f60`](db7db61)
|
| #7918 |
[`bca9dba8bb`](bca9dba)
|
| #7919 |
[`ef1514c97c`](ef1514c)
|
| #7922 |
[`7d6979a19e`](7d6979a)
|
| #7923 |
[`a1dd560b98`](a1dd560)
|
| #7924 |
[`892e51dc1d`](892e51d)
|
| #7925 |
[`75e9c8ce12`](75e9c8c)
|

</details>

## Validation

**745 tests passed** on the combined backport:

- Core registry, configclass, replication, camera contracts, and task
presets: 158 passed.
- Newton manager/model/reset and coupling suites: 299 passed.
- OVPhysX/OVRTX lifecycle, scene data, bindings, and material contracts:
141 passed on CPU.
- Clone-plan algebra: 83 passed.
- All 8 OV CUDA cases skipped in the CPU run: 8 passed on GPU.
- OVPhysX ray-caster regression: 1 passed.
- Kit simulation-context and PhysX scene-data tests: 54 passed.
- Newton solver reset integration: 1 passed.

The registry-identity and borrowed-config-field regressions both fail
with the pre-backport implementations and pass with this change.
Backport file-scope validation, source-file comparison, `git diff
--check`, and `uv run isaaclab -f` passed.

Local validation used PyTorch 2.12.0/CUDA 13.0, Isaac Sim 6.0.1.0,
Newton 1.6.0rc1, and an RTX 5090. Existing deprecation/runtime warnings
occurred. Full Docker CI is requested separately against the pinned
environment; local checks do not claim a startup or runtime speedup.

## Checklist

- [x] Read the contribution guidelines and ran formatting/changelog
checks.
- [x] Included source tests, documentation, and changelog fragments.
- [x] Verified regression behavior and preserved release-specific
changes.
- [x] Recorded source commit hashes and audited the requested merge
window.

---------

Co-authored-by: Antoine RICHARD <[email protected]>
Co-authored-by: ooctipus <[email protected]>
ooctipus added a commit that referenced this pull request Sep 24, 2026
…ng docs (#7957)

Backports the three changes from the September 20–23 `develop` audit
that are missing from `release/3.0.0`, alongside the existing
cloning-guide backport:

- #7722 (`4cf439dfeb`): reject a second `SimulationContext` construction
instead of silently discarding its configuration. Includes the original
fixture cleanup and regression coverage.
- #7893 (`22fcd71bc4`): validate DelayBuffer lag values before mutating
its live configuration.
- #7947 (`6e9ef17f59`): make `v3.0.0-EA` the default documentation
version in deployment and local multi-version builds.
- #7129 (`354168560f`): clarify that `replicate_physics=False` skips the
active physics context while other declared replication contexts still
run.

**Compatibility:** repeated `SimulationContext(...)` calls now raise.
Retrieve the live context with `SimulationContext.instance()`, or call
`clear_instance()` before constructing a replacement. The original major
changelog fragment includes this migration.

The runtime and test files match current `develop`. The docs-default
backport adapts the release branch's existing redirect template,
validates the target page, and preserves explicit overrides. The
cloning-guide backport preserves the current release APIs; its obsolete
sections were already removed.

## Release audit

Checked all **35 PRs** merged into `develop` from **2026-09-20 16:43:18
UTC** through `cff81e8473` (September 23), against release head
`5d3e0b695e`. **32 are already covered; the remaining three are included
here.** Git history, patch equivalence, GitHub's merged PR list, and
remaining file differences were checked. Branch-specific
version/changelog compilation and existing release-only changes are
preserved.

<details>
<summary>Already covered PRs</summary>

26 have an equivalent patch in release: #7919, #7922, #7923, #7924,
#7925, #6758, #7928, #7902, #7927, #7891, #7931, #7691, #7861, #7929,
#7916, #7939, #4609, #7942, #7940, #7948, #7937, #7955, #7960, #7961,
#7970, #7958.

Six were squash-merged or adapted: #7530 and #7899 in #7926; #7637 in
#7933; #7860 in #7936; #7954 and #7950 in #7964. Their implementation
differences were checked against the current release tree.

</details>

## Validation

- **276 tests passed**: SimulationContext (51, including CPU/CUDA),
headless context construction (15), nine schema/fragment suites (165),
four manager suites (38), and DelayBuffer (7).
- Both backported regressions reproduce with the original release
implementations.
- Docs redirect recipe: local/deployment EA defaults, explicit override,
and missing-target rejection passed with a stubbed Sphinx builder.
- All 22 changed files match the intended backport scope; `uv run
isaaclab -f` and `git diff --check` passed.
- Fresh Sphinx validation (`-b dummy -W --keep-going`): passed without
warnings, excluding static assets as the HTML builder does. Full HTML
documentation CI is running.

Local runtime validation used PyTorch 2.12.0, CUDA 13.0, Isaac Sim
6.0.1.0, and an RTX 5090. Existing runtime/deprecation warnings
occurred; the CI jobs validate the pinned environments.

The previous [docs CI
failure](https://github.com/isaac-sim/IsaacLab/actions/runs/35795116307/job/106972539281)
was an external connection reset fetching the Omniverse intersphinx
inventory, producing one warning under `-W`. That URL returned HTTP 200
when rechecked. This update starts a fresh docs build.

---------

Co-authored-by: hujc <[email protected]>
Co-authored-by: Zihan Xu <[email protected]>
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.

4 participants