Isaac Sim Version
5.1.0
5.0.0
4.5.0
4.2.0
4.1.0
4.0.0
4.5.0
2023.1.1
2023.1.0-hotfix.1
Other (please specify):
Operating System
Ubuntu 24.04
Ubuntu 22.04
Ubuntu 20.04
Windows 11
Windows 10
Other (please specify):
GPU Information
- Model: RTX 3090
- Driver Version: 570-server-open
Topic Description
Isaac Sim freezes when I try to programmatically set the source asset of a shader and then view the properties of the shader prim.
Detailed Description
After creating a shader prim using UsdShade.Shader.Define, I set its source asset using shader.SetSourceAsset. When I select the prim in the GUI and then switch to the Properties window, Isaac Sim hangs. Below is an example script.
from pxr import UsdShade
import omni.usd
path = “/Looks/TestShader”
shader = UsdShade.Shader.Define(omni.usd.get_context().get_stage(), path)
shader.SetSourceAsset(“OmniPBR.mdl”, “mdl”)
context = omni.usd.get_context()
Steps to Reproduce
-
Open Isaac Sim
-
Open the script editor and paste the above code into it
-
Run the script
-
Select the prim at
/Looks/TestShader -
Switch to the Properties window
-
Isaac Sim hangs
Error Messages
Screenshots or Videos
Additional Information
What I’ve Tried
I have tried tracking the freeze back to its source, but the furthest I’ve managed to get is the ShaderInfoAPI class in omni.kit.property.material.scripts.widgets.usdshade.placeholder.shader_info_api.py. Since this relies on native libraries, I cannot trace the issue deeper.