Segmentation Fault when Importing a USDA File using Python

Hello everyone,

In a Python standalone application, I am trying to import a stage that I created using the GUI (saved as a usda file). However using the following code:

from omni.isaac.kit import SimulationApp
simulation_app = SimulationApp({"headless": False})

from pxr import Usd
stage = Usd.Stage.Open('/path/to/stage.usda')

I get the error:

./ line 41: 1769198 Segmentation fault      (core dumped) $python_exe "$@" $args
There was an error running python

I am not sure if I am missing something here. Also, is this the recommended workflow? Or would it be advisable to compose the whole stage in the python script rather than load it from a usda file.


can you verify that the path you are trying to open is valid? Even if it weren’t it shouldn’t segfault, but just to be sure.

I’ve tested your script here and I wasn’t able to reproduce the error.

Thanks for the reply! Unfortunately I was not able to reproduce the error either. However we ended up using an alternative solution by assembling the the stage programmatically and loading the individual objects using the create_prim method from the Core API.

1 Like

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