Skip to content

[Bug Report] Isaac Lab develop branch drops python return codes #5237

Closed

Description

@Alex-Omar-Nvidia

Describe the bug

When the python interpreter raises an error (e.g., sys.exit(1)), this error code is not bubbled up to the process. Instead the process exits cleanly with error code 0.

On main, the error code of the process correctly mirrors the error code of the python.

Steps to reproduce

Please try to provide a minimal example to reproduce the bug. Error messages and stack traces are also helpful.

Develop Branch Behavior

# python interpreter
import sys
sys.exit(1)

# bash
echo $?
> 0
Image

Main Branch Behavior

# python interpreter
import sys
sys.exit(1)

# bash
echo $?
> 1
Image

System Info

Describe the characteristic of your environment:

  • Commit: [e.g. 5673af0]
  • Isaac Sim Version: [e.g. 5.0, this can be obtained by cat ${ISAACSIM_PATH}/VERSION]
  • OS: Ubuntu 24.04
  • GPU: RTX 6000
  • CUDA: 12.8
  • GPU Driver: 570.211.01

Additional context

Add any other context about the problem here.

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • [ x I have checked that the issue is not in running Isaac Sim itself and is related to the repo

Acceptance Criteria

Add the criteria for which this task is considered done. If not known at issue creation time, you can add this once the issue is assigned.

  • When I run isaaclab.sh -p -c 'import sys; sys.exit(1)' the exit code of the process should be 1.

Activity

  1. added
    bug
    on Apr 10, 2026
  2. mgwedd commented on Jul 29, 2026

    @mgwedd
    Contributor

    Fix PR: #6758

  3. added a commit that references this issue on Jul 29, 2026
    584a324
  4. maxkra15 commented on Sep 15, 2026

    @maxkra15
    Contributor

    Thanks @Alex-Omar-Nvidia for reporting that the develop CLI lost child-process exit codes.

    This is fixed in #5238, which restored propagation of the child command's exit status in isaaclab.cli. The reported command now exits with status 1 on the current checkout. Please reopen if a current Isaac Lab installation still returns 0 for a failing child command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions