Repository navigation
Fix OvPhysX Kit visualizer guard - #5805
kellyguo11 merged 2 commits into
Conversation
Greptile SummaryThis PR adds an early-exit guard in
Confidence Score: 5/5Safe to merge — the change is a narrow, additive validation that fires before any mutable state is touched and is covered by a dedicated test. The guard follows the exact same structure as the pre-existing ovrtx check, the name-based type detection is consistent with the existing _is_kitless_physics pattern in the same file, and the test demonstrates the ValueError is raised before AppLauncher initializes. Documentation changes are accurate and do not affect runtime behaviour. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[launch_simulation called] --> B{kit in visualizer types?}
B -- No --> G[compute_kit_requirements]
B -- Yes --> C[_scan_config: ovrtx renderer + OvPhysX physics]
C --> D{has_ovrtx?}
D -- Yes --> E[raise ValueError: kit incompatible with ovrtx_renderer]
D -- No --> F{has_ovphysx?}
F -- Yes --> H[raise ValueError: kit incompatible with ovphysx]
F -- No --> G
G --> I{needs_kit?}
I -- Yes --> J[launch AppLauncher / Kit]
I -- No --> K[kitless path: sync visualizer settings]
J --> L[yield - simulation runs]
K --> L
L --> M[finally: close AppLauncher if opened]
Reviews (1): Last reviewed commit: "Fix OvPhysX Kit visualizer guard" | Re-trigger Greptile |
|
@matthewtrepte could you take a quick look to validate? |
f07b7c4 to
8ecf597
Compare
There was a problem hiding this comment.
PR Review: Fix OvPhysX Kit visualizer guard
Summary
This PR adds early launcher validation to catch incompatible configurations (OvPhysX physics + Kit visualizer) before AppLauncher starts. The changes are well-structured and include appropriate documentation updates.
What's Good ✓
- Clear error messaging: The
ValueErrormessage is actionable, listing specific alternatives (--visualizer newton,rerun,viser, or headless) - Comprehensive documentation: All three relevant docs are updated (Hydra, OvPhysX backend, Visualization overview)
- Test coverage: Both
Namespaceand dict launcher-args paths are tested - Follows conventions: Changelog fragment added, consistent code style
- Correct control flow: The OvPhysX check is properly placed before the
has_ovrtx_rendererearly return, ensuring both incompatibility validations run when needed
Suggestions / Questions
-
Consider adding a brief inline comment in
validate_runtime_compatibility()explaining why OvPhysX and Kit are incompatible (USD plugin stack conflict). The docstring mentions it, but a brief comment near the check would help future readers:# OvPhysX loads its own USD/PhysX plugins; Kit owns a separate stack if has_ovphysx_physics and has_kit_visualizer:
-
Test assertion specificity: In
test_ovphysx_plus_kit_visualizer_raises(), the assertions check for substrings"OvPhysX"and"Kit visualizer". Consider also asserting that one of the suggested alternatives is mentioned (e.g.,"newton"or"rerun") to ensure the error message remains helpful if refactored later. -
Documentation consistency: The warning in
ovphysx/index.rstsays "Do not combine OvPhysX with the Kit visualizer" whilevisualization.rstsays it "cannot be used". Minor wording difference—both are clear, but aligning them would polish the docs.
Overall
Clean, focused fix with good test coverage and documentation. The PR achieves its goal of providing early, clear feedback to users attempting an unsupported configuration. LGTM.
There was a problem hiding this comment.
🤖 Incremental Review Update
Commits since last review: 2 new commits
8addc568- Update manus docs link (#5827) [merged from develop]0548e6c9- Merge branch 'develop' into PR branch
Changes: Only documentation link updates from develop branch merge (docs/source/how-to/cloudxr_teleoperation.rst)
Assessment: ✅ No changes to the actual fix code. The OvPhysX Kit visualizer guard implementation remains unchanged. Previous review findings still apply.
🔄 Automated incremental review by Isaac Lab Review Bot
# Description Adds an early launcher error for `--viz kit` with `presets=ovphysx`, before `AppLauncher` starts, because OvPhysX cannot share a process with the Kit USD/plugin stack. Updates the OvPhysX backend, visualization, and Hydra preset docs with the supported alternatives. Fixes: N/A ## Type of change - Bug fix (non-breaking change which fixes an issue) - Documentation update ## Screenshots N/A. This is a launcher validation and documentation change. ## 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](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Test Plan - [x] `./isaaclab.sh -p -m pytest source/isaaclab_tasks/test/test_sim_launcher_visualizer_intent.py source/isaaclab_tasks/test/test_preset_kit_decision.py -q` - [x] `./isaaclab.sh -f` Focused tests emit existing deprecation warnings from shared config classes.
…nt training fixes from develop (#5855) # Description Cherry pick fixes from the develop branch: - #5805 - #5786 - #5787 - #5793 - #5831 - #5853 - #5841 - #5843 --------- Signed-off-by: sameerchavan0027 <[email protected]> Co-authored-by: Antoine RICHARD <[email protected]> Co-authored-by: hujc <[email protected]> Co-authored-by: sameerchavan0027 <[email protected]> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Description
Adds an early launcher error for
--viz kitwithpresets=ovphysx, beforeAppLauncherstarts, because OvPhysX cannot share a process with the Kit USD/plugin stack. Updates the OvPhysX backend, visualization, and Hydra preset docs with the supported alternatives.Fixes: N/A
Type of change
Screenshots
N/A. This is a launcher validation and documentation change.
Checklist
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 Plan
./isaaclab.sh -p -m pytest source/isaaclab_tasks/test/test_sim_launcher_visualizer_intent.py source/isaaclab_tasks/test/test_preset_kit_decision.py -q./isaaclab.sh -fFocused tests emit existing deprecation warnings from shared config classes.