Repository navigation
Fix Windows hangs by warming up Newton before CUDA graph capture - #8316
Conversation
|
| cls._simulate_physics_only() | ||
| PhysicsManager._sim_time += physics_dt | ||
|
|
||
| # Run the requested step eagerly before capture so lazy GPU allocations happen outside recording. |
There was a problem hiding this comment.
Windows regression coverage missing The new ordering is meant to fix a Windows-only hang, but the existing first-step and recapture tests cover capture modes without testing Windows CUDA. Those tests could pass even if the hang remains or returns. A repeatable Windows CUDA test of the first step and recapture would protect this fix.
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!
There was a problem hiding this comment.
Isaac Lab Review Bot
All reviewed code categories look good.
- PR description: The description matches the three-file diff and makes no measurable performance claim; replace “3 passed” with exact test paths and commands while retaining the outstanding Windows validation.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency: Style consistency looks good.
- Test quality: Test quality looks good.
No blocking issues. No inline findings.
Automated review; human maintainers own approval decisions.
|
run-ci |
# Description MuJoCo-Warp's first lazy GPU allocation can hang on Windows when Newton's first physics step is recorded inside a CUDA graph, a regression introduced by #8058. Run the first requested physics step eagerly, then record the graph for subsequent steps. The same ordering applies after graph invalidation. This initializes lazy GPU resources outside capture while preserving exactly one physics advance per requested step. Updated the capture lifecycle documentation and added a changelog fragment. No dependencies or tests added. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Validation - Existing first-step/recapture cases for MJWarp with RTX capture and Kamino with standard capture, plus stateful actuator trajectories across decimation changes: **3 passed**. - Formatting and lint hooks passed. `uv run isaaclab -f` reports changelog errors against the fork's stale `origin/develop`; the same changelog validation passed against the current upstream `develop` diff. - Windows hang verification remains outstanding. ## 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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/develop/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] My name already exists in `CONTRIBUTORS.md` (cherry picked from commit 1d5a8fc)
|
Backported to |
Description
MuJoCo-Warp's first lazy GPU allocation can hang on Windows when Newton's first physics step is recorded inside a CUDA graph, a regression introduced by #8058.
Run the first requested physics step eagerly, then record the graph for subsequent steps. The same ordering applies after graph invalidation. This initializes lazy GPU resources outside capture while preserving exactly one physics advance per requested step. Updated the capture lifecycle documentation and added a changelog fragment. No dependencies or tests added.
Type of change
Release backport
developValidation
uv run isaaclab -freports changelog errors against the fork's staleorigin/develop; the same changelog validation passed against the current upstreamdevelopdiff.Checklist
pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.md