Fixes CPU pipeline stage initialization in PhysxManager#4675
Merged
kellyguo11 merged 4 commits intoisaac-sim:developfrom Feb 24, 2026
Merged
Fixes CPU pipeline stage initialization in PhysxManager#4675kellyguo11 merged 4 commits intoisaac-sim:developfrom
kellyguo11 merged 4 commits intoisaac-sim:developfrom
Conversation
Contributor
Greptile SummaryThis PR fixes a CPU collision detection bug introduced during the PhysicsManager refactoring (#4564). The recent refactoring added an unconditional call to Key changes:
The fix aligns with the original behavior where the old SimulationManager never called Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[_warmup_and_create_views called] --> B{Check device type}
B -->|GPU pipeline<br/>cuda in device| C[attach_stage]
B -->|CPU pipeline<br/>cpu device| D[Skip attach_stage]
C --> E[force_load_physics_from_usd]
D --> E
E --> F[start_simulation]
F --> G[update_simulation]
G --> H[Create SimulationView]
H --> I[Physics Ready]
C -.->|Prevents| J[GPU buffer allocation issues]
D -.->|Prevents| K[CPU broadphase MBP<br/>double-initialization]
K -.->|Would cause| L[Objects fall through surfaces]
Last reviewed commit: 90894d0 |
ooctipus
approved these changes
Feb 21, 2026
matthewtrepte
pushed a commit
to matthewtrepte/IsaacLab
that referenced
this pull request
Feb 24, 2026
# Description In recent PhysicsManager refactoring, behavior in the PhysxManager changed to call attatch_stage by default for initialization. This triggered a side effect in CPU pipeline that caused objects to miss contacts and collisions. It appears that attach stage to PhysX before loading/starting is only needed for GPU pipeline. So in this change, we are guarding this call to run on GPU pipeline only and avoid it on CPU pipeline to avoid issues in collisions. ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## 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 - [ ] 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 <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In recent PhysicsManager refactoring, behavior in the PhysxManager changed to call attatch_stage by default for initialization.
This triggered a side effect in CPU pipeline that caused objects to miss contacts and collisions.
It appears that attach stage to PhysX before loading/starting is only needed for GPU pipeline. So in this change, we are guarding this call to run on GPU pipeline only and avoid it on CPU pipeline to avoid issues in collisions.
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there