Hey,
We have an asset on which we consistently run into a maya crash while building the rig. After debugging, I’ve managed to track it down to the 361st distance constraint being created in the scene (when skipping the constraint part, I can create thousands of markers). I have both the stack trace, as well as code to reproduce the error below. Assuming this is not a feature, is there a known workaround?
Thanks,
Dominik
from ragdoll import commands as ragCmds
from ragdoll.vendor import cmdx
cmds.loadPlugin("ragdoll")
solver = ragCmds.create_solver()
last = None
for i in range(370):
new = ragCmds.assign_marker(cmdx.encode(cmds.polyCube(ch=False)[0]), solver=solver)
if last:
print(i)
ragCmds.create_distance_constraint(last, new)
last = new
Stack trace:
physx::NpShape* physx::NpFactory::createShapeInternal<physx::PxMaterial, physx::NpMaterial>(physx::PxGeometry const&, physx::PxFlags<physx::PxShapeFlag::Enum, unsigned char>, physx::PxMaterial* const*, unsigned short, bool, physx::PxShapeCoreFlag::Enum)
physx::NpFactory::createShape(physx::PxGeometry const&, physx::PxFlags<physx::PxShapeFlag::Enum, unsigned char>, physx::PxMaterial* const*, unsigned short, bool)
physx::NpPhysics::createShape(physx::PxGeometry const&, physx::PxMaterial* const*, unsigned short, bool, physx::PxFlags<physx::PxShapeFlag::Enum, unsigned char>)
../Ragdoll-2023_12_13/plug-ins/linux/2022/ragdoll.so(+0x5165db) [0x7f74dcba45db]
../Ragdoll-2023_12_13/plug-ins/linux/2022/ragdoll.so(+0x51f070) [0x7f74dcbad070]
../Ragdoll-2023_12_13/plug-ins/linux/2022/ragdoll.so(+0x527787) [0x7f74dcbb5787]
void entt::basic_dispatcher<std::allocator<void> >::trigger<Ragdoll::RdRigidChangedEvent&>(unsigned int, Ragdoll::RdRigidChangedEvent&)
void Ragdoll::RdEmit<Ragdoll::RdRigidChangedEvent>(Ragdoll::RdRigidChangedEvent)
Ragdoll::PostProcess::Rigids(entt::entity)
Ragdoll::SolverSystem::computeStartState(entt::entity)
SolverNode::computeStartState(Autodesk::Maya::OpenMaya20220000::MPlug const&, Autodesk::Maya::OpenMaya20220000::MDataBlock&)
SolverNode::compute(Autodesk::Maya::OpenMaya20220000::MPlug const&, Autodesk::Maya::OpenMaya20220000::MDataBlock&)
THsurfaceShape::computePlug(Tplug const&, TdataBlock&)
TdependNode::dbEvaluate(TmsgEval&)
TdagObject::dbEvaluate(TmsgEval&)
TdependNode::mpSafeDbEvaluateWithSet(TmsgEval&)
Tplug::getValue(TdataHandle&, TdataBlock const&, bool, bool, bool) const
Tplug::getValue(TdataHandle&, TdgContext const&) const
TdependNode::getPlugValue(Tplug const&, TdataHandle&, TdgContext const&)
TdependNode::processMessage(Tmsg&)
TdagObject::processMessage(Tmsg&)
TmsgPlugValue::send()
Autodesk::Maya::OpenMaya20220000::MPlug::asInt(Autodesk::Maya::OpenMaya20220000::MStatus*) const
InfoCommand::doIt(Autodesk::Maya::OpenMaya20220000::MArgList const&)
THcommandObject::doIt(TargList&)
TmetaCommand::doCommand(TargList&)
TpythonInterpreter::dispatchMayaCommand(TmetaCommand&, _object*, _object*)
TpythonInterpreter::genericDispatchFunction(_object*, _object*, _object*)
PyCFunction_Call
_PyEval_EvalFrameDefault
_PyEval_EvalCodeWithName
_PyFunction_FastCallKeywords
_PyEval_EvalFrameDefault
/usr/autodesk/maya2022/bin/../lib/libpython3.7m.so.1.0(+0x68590) [0x7f7677468590]
_PyEval_EvalFrameDefault
_PyEval_EvalCodeWithName
_PyFunction_FastCallDict
_PyEval_EvalFrameDefault
_PyEval_EvalCodeWithName
_PyFunction_FastCallKeywords
1Result: ../scene.ma
Fatal Error. Attempting to save in /usr/tmp/dominik.20240528.0813.ma