Lately, the editor (both isaac sim 4.2 and 4.0) have been crashing while running my simulation.
I scatter prims on a plane and avoid collisions with a scatter node. I have no idea what could be causing this and was hoping one of the omniverse experts might know what might be causing this.
Error Messages
C:\b\w\eb2f45c4acc808a0\physx\source\foundation\FdFoundation.cpp (247) : invalid operation : Foundation object exists already. Only one instance per process can be created.
C:\b\w\eb2f45c4acc808a0\physx\source\geomutils\src\cooking\GuCookingConvexMesh.cpp (53) : invalid parameter : Cooking::cookConvexMesh: user-provided convex mesh descriptor is invalid!
C:\b\w\eb2f45c4acc808a0\physx\source\physx\src\NpFactory.cpp (737) : invalid parameter : Supplied PxGeometry is not valid. Shape creation method returns NULL.
Do you believe the two errors are caused by the same issue? It does seem both are somehow related to collision checking. I’ll describe my scenario with more details:
I have an omni graph which instantiates and scatters from a list of usd paths. This is the graph:
Now, after calling this graph (with await og.Controller.evaluate(self.graph)), i get the prim paths of the newly instantiated prims and set the camera’s graph’s noCollPrims to them:
This where the error happens and the editor crashes.
Now, My issue could be related to the issue described in the linked topic. That is because I do instantiate from the usd paths and only then scatter the new prims. That means that I too have a split moment where all the new prims are centered in the center of the environment.
I have two follow up questions:
1- any idea how to investigate/solve the issue for my case?
2 - any idea on how to implement a sort of a “try / catch” with the omni graph execution? such that, even if the error occurs, the editor will not crash?
The issue in my specific case was that I was setting thin meshes as the noCollPrims of the camera’s scatter graph. I had the camera avoiding collision with a tree and the tree has leafs.
The ConvexMesh calculation of the leafs (for collision avoidence) seems to be too complicated for physx.