Skip to content

[Bug Report] Missing Ray initialization while runningtuner.py #3349

@ozhanozen

Description

@ozhanozen

Ray is not initialized while running tuner.py, throwing an exception.

Steps to reproduce

Try to run the Docker-based Local Quickstart part of the docs. You should get the following exception:
"Ray is not initialized. Please initialize Ray before getting node resources."

Additional context

PR #2847, commit 286eb39, modified get_gpu_node_resources() to be:

if not ray.is_initialized():
raise Exception("Ray is not initialized. Please initialize Ray before getting node resources.")

which was originally:

if not ray.is_initialized():
        ray.init(address=ray_address)

Now, ray is not initialized when tuner.py is directly used.

Is there a reason to change the previous implementation? If not, we could simply revert this line or use the new ray_init().

System Info

  • Commit: 5dae83e
  • Isaac Sim Version: 5.0
  • OS: Ubuntu 22.04
  • GPU: RTX 4090
  • CUDA: 12.2
  • GPU Driver: 535.129.03

Checklist

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

Acceptance Criteria

  • tuner.py runs without errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions