The isaac sim UI crashes when runing a basic isaac sim code

Isaac Sim Version

[ v] 4.2.0
4.1.0
4.0.0
2023.1.1
2023.1.0-hotfix.1
Other (please specify):

Operating System

[v] Ubuntu 22.04
Ubuntu 20.04
Windows 11
Windows 10
Other (please specify):

GPU Information

  • Model: NVIDIA GeForce RTX 4070
  • Driver Version: NVIDIA-SMI 535.183.01

Topic Description

Detailed Description

I run the basic code in both pycharm and terminal, it always crashed after the isaac sim UI appeared, then the UI disappeared.

code:
from omni.isaac.kit import SimulationApp
simulation_app = SimulationApp({ā€œheadlessā€: False})
print(ā€œsimulation startedā€)

Steps to Reproduce

(Add more steps as needed)

Error Messages

[7.601s] app ready
[8.103s] Simulation App Startup Complete
simulation started
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Annotators’ for removal
2025-01-30 15:09:44 [8,061ms] [Warning] [omni.graph.core.plugin] Could not find category ā€˜Replicator:Core’ for removal
2025-01-30 15:09:44 [8,088ms] [Warning] [carb] Recursive unloadAllPlugins() detected!

Screenshots or Videos

(If applicable, add screenshots or links to videos that demonstrate the issue)

Additional Information

What I’ve Tried

I have changed the python interpreter to the python.sh in isaac sim document in pycharm.
I have added the environment variables into bash.
And I try to use isaac sim 4.1.0 and 4.0.0, but the same problem.

Related Issues

(If you’re aware of any related issues or forum posts, please link them here)

Additional Context

(Add any other context about the problem here)

This is happening because your python script has finished executing after the print statement. To keep the app running, you need to add a while loop to keep your code executing. Something along the following lines:

from isaacsim import SimulationApp
simulation_app = SimulationApp({"headless": False})
print("simulation started")

from omni.isaac.core import World

world = World()
while simulation_app.is_running():
    world.step(render=True)
1 Like

thank you, it works

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.