Skip to content

More Visualizer Fixes and other General Fixes [cherrypicked on release branch] - #6066

Merged
kellyguo11 merged 13 commits into
isaac-sim:release/3.0.0-beta2from
matthewtrepte:mtrepte/debug_v2_on_release
Jun 10, 2026
Merged

kellyguo11 merged 13 commits into
isaac-sim:release/3.0.0-beta2from
matthewtrepte:mtrepte/debug_v2_on_release

Conversation

@matthewtrepte

@matthewtrepte matthewtrepte commented Jun 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • Add an experience file line error raise when selecting a known incompatible isaac sim extension
  • Make sure livestream mode implicitly launches a kit visualizer
  • Adds Tiled Viz Camera tutorial script support for mix&matching the visualizers in the example cmds
  • Adds default kit visualizers to the remaining showcase scripts
  • Add a note to the rerun visualizer in the Visualization docs

Linked PR: #5977

Type of change

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

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • 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
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Jun 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

Summary

This PR adds experience-file incompatibility detection for livestream mode, ensures Kit visualizer is implicitly requested when livestreaming, refactors the tiled camera tutorial to dynamically discover ego cameras from scene configs, and adds default Kit visualizer defaults to several showcase/tutorial scripts. The changes are well-structured, well-tested, and appropriately scoped for a release-branch cherry-pick.

Design Assessment

Architecture: The separation of concerns is clean — AppLauncher._resolve_experience_file handles the static experience-file validation at startup, while sim_launcher._ensure_livestream_kit_visualizer handles the dynamic runtime injection at launch_simulation time. This avoids circular dependencies between the core isaaclab package and isaaclab_tasks.

Tiled camera tutorial: The refactoring to pass env_cfg into _make_kit_visualizer_cfg / _make_newton_visualizer_cfg and dynamically resolve ego_cam is a good pattern — it makes the tutorial work correctly across different tasks rather than hardcoding robot-specific camera paths.

Default visualizers in scripts: Using parser.set_defaults(visualizer=["kit"]) is the correct argparse pattern — it sets a default without overriding explicit CLI arguments.

Findings

🟡 Warning: Cross-package test import creates coupling
source/isaaclab/test/app/test_kwarg_launch.py:12 imports _ensure_livestream_kit_visualizer from isaaclab_tasks.utils.sim_launcher. This creates a test dependency from the core isaaclab package tests on the higher-level isaaclab_tasks package. If these test suites are ever run in isolation (e.g., only isaaclab is installed), these tests will fail with an ImportError. Consider either:

  • Moving these two tests to source/isaaclab_tasks/test/, or
  • Adding a pytest.importorskip("isaaclab_tasks") guard.

🔵 Suggestion: _experience_depends_on_isaacsim_exp_full could handle missing files gracefully
The static method opens the file without a try/except. While in practice _resolve_experience_file already validates the file exists before calling this method, a defensive FileNotFoundError handler or a docstring note clarifying the precondition would be clearer for future maintainers.

🔵 Suggestion: Newton fallback in tiled camera tutorial uses glob-style path inconsistently
In run_tiled_camera_visualizer.py, the Newton fallback (when no ego_cam is found) uses "/World/envs/*/Robot/base" as tiled_cam_target_prim_path with a shell-glob *, while other paths in the file use regex pattern env_.*. If the visualizer backend expects regex patterns here, this may silently not match. Verify whether * vs env_.* is intentional for the target prim path.

Test Coverage

Good coverage for the new functionality:

  • ✅ test_livestream_injects_kit_visualizer_when_missing — verifies automatic Kit injection
  • ✅ test_livestream_rejects_disabled_visualizers — verifies the error case when user explicitly disables
  • ✅ test_rejects_isaacsim_full_streaming_experience_with_livestream — core incompatibility detection
  • ✅ test_rejects_custom_experience_with_isaacsim_full_dependency_and_livestream — multi-dependency case
  • ✅ test_allows_isaacsim_full_streaming_experience_when_livestream_disabled — negative case (no false positive)

Gap: No test for the case where LIVESTREAM is set via environment variable (rather than CLI arg) in _ensure_livestream_kit_visualizer. The env-fallback path in _get_livestream_mode is untested.

CI Status

Check Status
pre-commit ❌ Failed
Build Wheel ✅ Pass
Check for Broken Links ✅ Pass
Installation Tests ⏳ Pending
Docker Builds ⏳ Pending
Changelog fragments ⏳ Pending

The pre-commit failure should be investigated — it may indicate formatting issues that need to be addressed before merge.

Verdict

Minor fixes needed — The core logic is sound and well-tested. The cross-package test import (🟡) is the main structural concern worth addressing. The pre-commit CI failure needs resolution.


🔄 Update (commit 7fc7104)

New commits reviewed: 37aa766 → 7fc7104

Changes in new commits:

  • Added blank line formatting fix in test_kwarg_launch.py (whitespace only)
  • Added changelog fragment mtrepte-tiled-camera-visualizer-tutorial.rst

Previous concerns status: None addressed in these commits (the cross-package test import ⚠️ and other suggestions remain open).

New issues: None — these are trivial formatting/documentation changes.

No action needed on these specific commits.


🔄 Update (commit 3cc1566)

New commit reviewed: 7fc7104 → 3cc1566 ("fix script")

Changes:

  • scripts/tutorials/00_sim/set_rendering_mode.py: Added add_remote_usd_reference() helper to load remote USD references without localizing through the temp asset cache; changed default rendering_mode from "performance" to "balanced"; replaced sim_utils.UsdFileCfg pattern with direct reference addition.

Previous concerns status: All previous suggestions (cross-package test import, regex backreference, glob pattern, livestream guard ordering) remain open — not addressed in this commit.

New issues: None. The new helper function is clean, well-documented, and the rendering mode change is a reasonable default for a tutorial script.


🔄 Update (commit d8aaba7)

New commits reviewed: 3cc1566 → d8aaba7 (15 commits)

This update is a large merge of release/3.0.0-beta2 into the feature branch, bringing in extensive release-preparation fixes.

Key changes:

  1. COMPASS docs refactored (d3ee8a4): The tutorial content moved to the COMPASS repo handbook; the Isaac Lab docs now redirect users there.

  2. MDL module dependency fix (d40ad54): Extended _find_asset_dependencies() to parse MDL relative imports (e.g., import .::OmniUe4Function;), fixing local asset retrieval for Hospital materials that import sibling modules.

  3. Quadruped tutorial noise import fix (876fdd8): Changed AdditiveUniformNoiseCfg → UniformNoiseCfg import alias.

  4. Environment destructor shutdown guard (97b4210): All three env base classes (DirectRLEnv, DirectMARLEnv, ManagerBasedEnv) now check sys.meta_path is not None before cleanup to avoid tracebacks during Python shutdown. Also starts _is_closed=True until init completes.

  5. AutoMate fixes (3aa2083, fc6e8c8): Increased PhysX gpu_collision_stack_size to 2²⁷; replaced Numba-based SoftDTW with pure Torch implementation (removes Numba dependency); added assembly ID validation to reject placeholder ASSEMBLY_ID.

  6. Lula discovery for pip installs (90c86c7): Extended find_lula_prebundle_dir() to search extscache/ and extsDeprecated/ layouts used by pip-based Isaac Sim; adds prebundle to sys.path before attempting Kit extension enable.

  7. Newton site frame camera pose fix (1ba9842): Fixed incorrect camera pose calculation in NewtonSiteFrameView by properly extracting the instance suffix.

  8. Galbot isaacteleop optional (4597a2c): Guards isaacteleop import in Galbot stack configs so keyboard/spacemouse teleoperation works when isaacteleop is not installed (e.g., DGX Spark).

  9. Docker non-root volume docs (b3f8fcf): Added attention blocks in docker.rst and cloudxr_teleoperation.rst explaining uid/gid 1000 permission issues.

  10. skrl JAX multihost import (d03dae2): Preloads jax.experimental.multihost_utils to fix import failure on recent JAX versions.

  11. Kit wheeled robots optional (9fc9988): Marked isaacsim.robot.experimental.wheeled_robots and isaacsim.robot.wheeled_robots.nodes as optional in isaaclab.python.kit.

  12. LEAPP RSL-RL recurrent policy fix (1a88953): Refactored hidden state helpers to support RSL-RL 5.x RNNModel API; added RSL_RL_MIN_VERSION check.

  13. LEAPP docs improvements (97777cf): Added explicit --viz kit example to LEAPP deployment docs.

  14. Changelog compilation (aafb977): Auto-compiled changelog fragments into version 6.1.5/0.13.2/0.4.1/1.1.2/1.10.4.

Previous concerns status:

  • Cross-package test import warning (🟡) — not addressed in these commits
  • All documentation/suggestion items remain open

New issues: None — these are well-scoped release-prep fixes with appropriate test coverage (e.g., test_env_destructors.py, test_automate_soft_dtw.py, test_rsl_rl_export_flow.py additions).

CI Status: Should be re-evaluated after this merge.


import isaaclab.app.app_launcher as app_launcher_module
from isaaclab.app import AppLauncher
from isaaclab_tasks.utils.sim_launcher import _ensure_livestream_kit_visualizer

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.

🟡 Cross-package test dependency: This imports a private function from isaaclab_tasks into the core isaaclab test suite. If these tests run in an environment where only isaaclab is installed, they will fail with ImportError.

Consider either moving the _ensure_livestream_kit_visualizer tests to source/isaaclab_tasks/test/ or adding:

Suggested change
from isaaclab_tasks.utils.sim_launcher import _ensure_livestream_kit_visualizer
pytest.importorskip("isaaclab_tasks")
from isaaclab_tasks.utils.sim_launcher import _ensure_livestream_kit_visualizer

visualizer_cfg.tiled_cam_eye = None
visualizer_cfg.tiled_cam_target_prim_path = None
return visualizer_cfg

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.

🔵 Glob vs regex pattern: This uses shell-glob * while other env paths in this file use regex env_.*. If the visualizer backend expects regex for target prim paths, this should be /World/envs/env_.*/Robot/base. If it uses USD glob semantics, this is fine — just flagging the inconsistency.

@greptile-apps

greptile-apps Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds livestream compatibility guards, injects a Kit visualizer when livestreaming without one, raises on incompatible isaacsim.exp.full experience files, and sets Kit as the default visualizer for several tutorial and agent scripts.

  • Livestream Kit injection (sim_launcher.py): _ensure_livestream_kit_visualizer appends \"kit\" to the visualizer list when livestream is active and no Kit visualizer was requested, with a hard error if the user explicitly disabled it.
  • Experience file guard (app_launcher.py): _experience_depends_on_isaacsim_exp_full reads the .kit file and raises ValueError when isaacsim.exp.full is a direct dependency and livestreaming is enabled.
  • Tiled camera tutorial refactor (run_tiled_camera_visualizer.py): _make_kit_visualizer_cfg and _make_newton_visualizer_cfg now accept env_cfg and auto-detect an ego_cam attribute to configure the tiled camera path dynamically.

Confidence Score: 3/5

The Kit-injection logic lands after both the OVRTX+Kit and OvPhysX+Kit guards, meaning those guards can be silently bypassed when livestreaming implicitly adds Kit to the visualizer set.

The new _ensure_livestream_kit_visualizer call mutates the visualizer list after the OVRTX early-crash check and validate_runtime_compatibility have already run. A user on an OVRTX or OvPhysX task with livestreaming and no explicit --viz kit gets Kit injected post-validation, producing the incompatible combination those guards were meant to block.

source/isaaclab_tasks/isaaclab_tasks/utils/sim_launcher.py — the ordering of _ensure_livestream_kit_visualizer relative to the compatibility guards needs attention.

Important Files Changed

Filename Overview
source/isaaclab_tasks/isaaclab_tasks/utils/sim_launcher.py Adds _ensure_livestream_kit_visualizer and helper utilities. Inserted after compatibility validation in launch_simulation, allowing kitless-physics+livestream or OVRTX+livestream combos to bypass the OvPhysX+Kit and OVRTX+Kit guards.
source/isaaclab/isaaclab/app/app_launcher.py Adds _experience_depends_on_isaacsim_exp_full static method and raises ValueError for incompatible livestream experience files. Regex has a minor mismatched-quote issue.
scripts/tutorials/07_visualizers/run_tiled_camera_visualizer.py Refactors visualizer cfg factories to accept env_cfg and auto-detect ego_cam. Clean with good fallback defaults.
source/isaaclab/test/app/test_kwarg_launch.py Adds four tests covering _ensure_livestream_kit_visualizer and the isaacsim.exp.full guard.
scripts/environments/random_agent.py Adds parser.set_defaults(visualizer=["kit"]). Safe one-liner.
scripts/environments/zero_agent.py Identical default Kit visualizer change as random_agent.py.
docs/source/overview/core-concepts/visualization.rst Documentation-only: adds a one-line note about Rerun timeline UI elements.
source/isaaclab/changelog.d/mtrepte-visualizer-livestream-fixes.rst New changelog fragment. No code logic.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[launch_simulation called] --> B{OVRTX + kit? early check}
    B -- kit not in visualizer_types --> C[validate_runtime_compatibility]
    B -- kit present + ovrtx --> Z1[ValueError: OVRTX+Kit crash]
    C --> D{OvPhysX + Kit?}
    D -- yes --> Z2[ValueError: OvPhysX+Kit invalid]
    D -- no --> E[_ensure_livestream_kit_visualizer NEW]
    E --> F{livestream active?}
    F -- no --> G[compute_kit_requirements]
    F -- yes --> H{kit already in visualizers?}
    H -- yes --> G
    H -- no --> I{visualizer_explicit+no kit?}
    I -- yes --> Z3[ValueError: requires Kit]
    I -- no --> J[inject kit - bypasses guards above]
    J --> G
    G --> K[Launch]
Loading

Reviews (1): Last reviewed commit: "Fix debug_v2 release launcher test port" | Re-trigger Greptile

Comment on lines 387 to 389
validate_runtime_compatibility(env_cfg, launcher_args)
_ensure_livestream_kit_visualizer(launcher_args)
needs_kit, has_kit_cameras, visualizer_types = compute_kit_requirements(env_cfg, launcher_args)

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.

P1 _ensure_livestream_kit_visualizer called after compatibility checks

_ensure_livestream_kit_visualizer (line 388) mutates launcher_args.visualizer by injecting "kit", but both guarding checks — the early OVRTX+Kit crash check (lines 373–385) and validate_runtime_compatibility (line 387) — read launcher_args before that mutation.

Concrete failure: a user running an OvPhysX or OVRTX task with livestream enabled and no --viz kit passes both guards (no "kit" in visualizer set yet), then gets Kit injected post-validation. compute_kit_requirements returns needs_kit=True, Kit launches, and the incompatible combination those guards were written to block is assembled silently.

Moving _ensure_livestream_kit_visualizer(launcher_args) to before line 373 would let both guards see the final visualizer set.

Comment on lines +1153 to +1154
with open(experience_file, encoding="utf-8") as file:
return re.search(r'^\s*["\']isaacsim\.exp\.full["\']\s*=', file.read(), re.MULTILINE) is not None

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.

P2 The regex uses independent character classes ["\'] for opening and closing quote, so it matches mismatched pairs like "isaacsim.exp.full'. A backreference enforces that both delimiters are the same character.

Suggested change
with open(experience_file, encoding="utf-8") as file:
return re.search(r'^\s*["\']isaacsim\.exp\.full["\']\s*=', file.read(), re.MULTILINE) is not None
with open(experience_file, encoding="utf-8") as file:
return re.search(r"""^\s*(['"])isaacsim\.exp\.full\1\s*=""", file.read(), re.MULTILINE) is not None

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@AntoineRichard

Copy link
Copy Markdown
Collaborator

@matthewtrepte could you link which PRs are related to this cherry picking?

@matthewtrepte

Copy link
Copy Markdown
Collaborator Author

@matthewtrepte could you link which PRs are related to this cherry picking?

Linked PR: #5977

@kellyguo11
kellyguo11 merged commit f72f9f3 into isaac-sim:release/3.0.0-beta2 Jun 10, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants