Summary

Title:Maya Crashes and memory leak doing a blendshape to scalp mesh
Category:Crash/Critical
Status:Confirmed
Posted By:osmeldu ( os carr )
Date Created:6 May 2023

Problem

Description:

if there are ornatrix nodes(transform nodes) parented to the scalp mesh (the mesh where the hair grows), maya will:
-freeze and will take a long time to come back.
-or it will crash.
-or it wont crash but it will have a memory leak.

Im using maya curves converted to ornatrix guides. The more complex the asset, the mort maya hangs.

Steps to Reproduce:

-create some fur on a semi complex mesh.
-add some maya curves to it and convert them to guides.
-do a clumping modifier based on another hair node: this other fur node has hair created with the same guides but with less density.
-add a frizz and a width mod.

-have a clean duplicate of the mesh that has all the fur nodes. Dos some sculpts.
-do a blenshape where this new mesh will control the scalp mesh.

thats where maya hangs, and sometimes crashes or has a memory leak.

thanks

Hello,

I need some additional information:

-add some maya curves to it and convert them to guides.
How are you integrating the curves with the groom exactly?
By importing them into the groom using Edit Guides?

-do a clumping modifier based on another hair node: this other fur node has hair created with the same guides but with less density.
To clarify, you are creating clumps using an external object. The external object is created using the same process described in step 1 and 2, correct?

-have a clean duplicate of the mesh that has all the fur nodes. Dos some sculpts.
How exactly are you duplicating the mesh?
Are you duplicating the mesh together with the hair object node network?
Duplicating a hair object can lead to some problems if done incorrectly. Also, duplicating a mesh that has a hair object on is prone to error, if done incorrectly.

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

I got your scene on my email. I tried but I can't reproduce it in Maya 2022 with the latest Ornatrix stable build. 

Please update Ornatrix and try again. Also try another Maya version if you can so we can discard that. 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

-How are you integrating the curves with the groom exactly?
Two ways: the guides from curves node, and in another test im importing the curves into the edit guides node.

-To clarify, you are creating clumps using an external object. The external object is created using the same process described in step 1 and 2, correct?

correct. But this external fur node used for clumping is really simple.

-How exactly are you duplicating the mesh?
is an imported mesh. I also have a duplicate scalp, and Im sure both the imported and duplicated are clean.

-Are you duplicating the mesh together with the hair object node network?
not at all. Everything is clean.

The only workaround I found is to unparent the furNodes, do the blendShapes, then parent them back. But it does not seem right to do it this way, there is something happening. 

Hello.

 

Any updates on this?. 
Im gonna give you the extra info I gave you on my last email:
-I'm using maya 2023.3, Windows 10 Pro, version 20H2.

We are on hold waiting for this to be clarified/fixed, so we can decide if we go we Ornatrix.

 

Thanks

Hi,

I updated Maya(Although I don't think this is related to the Maya version) but still can't reproduce this fropm scratch or with the scene provided. I tried:

  • Creating the blend shape and then parenting the hair object to the deformed mesh.
  • Parenting first and then creating the blend shape.
  • Parenting the deformed mesh to the scalp driver and then creating the blend shape.
  • Creating the blend shape first and then parenting the deformed mesh to the scalp driver.

 

None of these combinations caused the bug you describe or any other bug that I would notice right away.

Also, the scene you sent me is different from what you describe. For instance, the groom object is not created using spline curves, it uses just Ornatrix guides. Perhaps that is why I'm unable to reproduce it.

Please send me the exact scene so I can continue investigating. 

Also, just to confirm, did you try the latest Ornatrix build?

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

I tried again:

  1. Removed the hair object in your scene,
  2. Added a new hair object using Guides from Curves preset,
  3. Added a Clump node for external clumping,
  4. Added a second hair object to use for clumping in the first hair object,
  5. Set up the external clumps,
  6. Added Frizz,
  7. Set up the Blend Shape,
  8. Parent the source Curves, main Groom, external clumps groom and face_deformed:Mesh to the scalp driver.

I still can't reproduce this. Maya doesn't hang, crash and there is nothing indicating a memory leak.

I think the best way is that you send me the problematic scene in a state where I can reproduce this easily by just performing the last step.

 

 

 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

Hello.

Is there a private place where I can send the file?. There are assets that are from the clients in the scene and I would like to dont share them in a semi-public forum.

thanks

You can send them to me on Discord or email. 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

I think I am getting a memory leak also with the latest stable build & maya 2023. How do I help you track this down without a scene file ? 

to clarify i am also using maya curves to guides. Its odd in that my performance reduces just like a memory leak does and doesn't return till after a restart but my process monitoring shows I'm only using 13% of 128GB of RAM while grooming. CPU spikes up to 99%  often

If you are unable to provide the original scene, try reproducing the issue in a new scene using one of the default presets. 

Maybe is not a memory leak if the usage doesn't go above 13%. 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

Just an update on my slowdowns Osmeldu. Turing off viewport antialiasing helped a lot . . . I'm looking into the viewport settings and will let you know if I find anything