bungnoid

Hey Soup'ers,

I've been using the awesome soup morph node for driving some surface space, end of chain deformations (~500K pts, ~200 targets). Things were working fine, but at a certain point, rigs with this deformer began crashing maya...(opening the rig workfile or anim scenes containing the rig are crashing consistently)

I haven't yet pin pointed the exact cause of the issue, but have gathered some info that I'm hoping will help isolate the problem. I'm convinced it's something to do with the morph, as rigs built (via script) without the morph setup are fine, but with the morph crash consistently.

I generated the targets outside of the scripted build and exported them out to a .morph file. Much quicker to load from file than recalc during the build. I actually saved out multiple .morph files (grouped target export by category, for selective loading). During the build, I create a new morph node and load the .morph target data (Morph().load(new_morph, path_to_morph_data)). Target weights (controlWeights) are then connected to and driven by various rig control channels or utility nodes.
The build completes without error and everything seems to be fine. But after closing and reopening, the scene will crash. Loading the saved morph data to a static mesh, saving and reopening, doesnt cause a crash.

During file load, I get a lot of warning messages to stdout -

Target with logical index 0 will not be applied. Invalid point count.
Target with logical index 1 will not be applied. Invalid point count.
# etc... for as many targets as I have applied to the morph.
is this anything to be concerned about?

Finally, during the inevitable crash, I get this stack trace -

Stack trace:
  /lib64/libc.so.6() [0x33714326a0]
  gsignal
  abort
  /lib64/libc.so.6() [0x3371470537]
  /lib64/libc.so.6() [0x3371475e66]
  MFloatVectorArray::~MFloatVectorArray()
  morph::compute(MPlug const&, MDataBlock&)
  THdeformer::computePlug(Tplug const&, TdataBlock&)
  TdependNode::dbEvaluate(TmsgEval&)
  TdependNode::mpSafeDbEvaluate(TmsgEval&)
  TdependNode::processEval(TmsgEval&)
  TconnectionSingle::evaluate(TmsgEval&, Tconnection*)
  Tplug::evalConnectionValue(bool, TdgContext const&, TdataHandle&) const
  Tplug::evaluateValue(TdataHandle&, TdataBlock const&, bool) const
  TdataBlockDG::value(Tattribute const&)
  TdnMidModifier::computeOutMeshFromInput(TdataBlock&, Tplug const&, Tattribute const*)
  TdnMidModifier::computeOutMesh(Tplug const&, TdataBlock&)
  TdependNode::dbEvaluate(TmsgEval&)
  TdependNode::mpSafeDbEvaluate(TmsgEval&)
  TdependNode::processEval(TmsgEval&)
  TconnectionSingle::evaluate(TmsgEval&, Tconnection*)
  Tplug::evalConnectionValue(bool, TdgContext const&, TdataHandle&) const
  Tplug::evaluateValue(TdataHandle&, TdataBlock const&, bool) const
  TdataBlockDG::value(Tattribute const&)
  TdnGroupParts::computePlug(Tplug const&, TdataBlock&)
  TdependNode::dbEvaluate(TmsgEval&)
  TdependNode::mpSafeDbEvaluate(TmsgEval&)
  TdependNode::processEval(TmsgEval&)
  TconnectionSingle::evaluate(TmsgEval&, Tconnection*)
  Tplug::evalConnectionValue(bool, TdgContext const&, TdataHandle&) const
  Tplug::evaluateValue(TdataHandle&, TdataBlock const&, bool) const
  Tplug::evaluateValue(TdataHandle&, TdataBlock const&, bool) const
  TdataBlockDG::getMultiElementValue(Tplug const&, TdataHandle&, unsigned int, unsigned int, unsigned int)
  TmultiHandle::evaluateHandle()
  TdnGeometryFilter::computePlug(Tplug const&, TdataBlock&)
  TDNblendShape::computePlug(Tplug const&, TdataBlock&)
  TdependNode::dbEvaluate(TmsgEval&)
  TdependNode::mpSafeDbEvaluate(TmsgEval&)
  TdependNode::processEval(TmsgEval&)
  TconnectionSingle::evaluate(TmsgEval&, Tconnection*)


Another variation I've seen, starts like this -
Stack trace:
  /lib64/libc.so.6() [0x33714326a0]
  cfree
  Tarray::~Tarray()
  Tint32Array::~Tint32Array()
  MIntArray::~MIntArray()
  morph::compute(MPlug const&, MDataBlock&)
  ...
and finishes much like the one above...

I've now begun the process of stripping out certain build steps to isolate the problem. Currently, I have ~50 of the morph targets loading but leaving the target weights unconnected. This file doesn't crash, but it looks like the target weight attributes are no longer present (getAttr -s ".controlWeight" = 0). I double checked this directly after the build, and those target weights were there...after save and reopen, they're gone.

I realize this is a very long and probably quite vague description of the problem, sorry. I'm trying to replicate the issue in a much more simple example that I can bundle up and upload...assuming that is helpful. I'm happy to try and clarify if any of this doesn't make sense.

FYI, my running env is -
   Centos 6.5
   Maya 2016 ext1 sp5
   SOuP build date - 16.09.04

Thanks!
- Grant

pshipkov
Hmm, this sounds strange.
Quite a few studios use morph right now.
This makes me think that there is something specific going on with your case.
I think the shortest path to figure things out is for me to check the data you are working with.
If you can, send me some files. If nda is needed I am fine signing it.
Done this coyple of times already.
Otherwise I would say start splitting the data as you do already.
Slap a morph deformer on static geo.
Load targets in chunks.
go through the steps that lead to crash.
If no crash lod more targets.
Same for weights.
If that's still good try on geo with animated cluster deformer and see if something in dg eval is causing it.
Test both dg and parallel evaluation mode.
Reply 0 0
bungnoid
Thanks for the reply Peter. I'll try to get something over to you later today. Where should I send the files for you to look at?
Also I meant to mention, I've confirmed the crash in both parallel and DG modes.
Reply 0 0
pshipkov
pshipkov@yahoo.com
Reply 0 0
Reply