Autodesk / maya-usd

A common USD (Universal Scene Description) plugin for Autodesk Maya
759 stars 202 forks source link

[MAYA-128598] Fatal error if delete USD node with USD layer Editor opened #2985

Open kimuss opened 1 year ago

kimuss commented 1 year ago

Describe the bug When I try to delete a USD stage node from outliner with USD Layer Editor opened, Maya crash.

Steps to reproduce the behavior:

  1. Go to Create
  2. Click on Universal Scene Description--> Stage From File
  3. Open USD Layer Editor panel
  4. Delete Stage node on Outliner
  5. Fatal error

Specs:

Additional context

Same fatal error on Maya 2022.4 If I try to delete the Stage node with USD Layer Editor panel closed, everything works fine

Lucas3Dspain commented 1 year ago

I have seen this happening since 2022.4 too, It doesn't happen every for me.

Same in Maya 2024 (mayaUSD 0.22)

santosd commented 1 year ago

@kimuss and @Lucas3Dspain Maya 2024 was just released today along with Maya USD 0.23.0. I tested with those versions and I am not seeing the issue. Could you test that and see if you are still seeing this?

Lucas3Dspain commented 1 year ago

@santosd It still happens, I tried to narrow down when because it doesn't happen all the time(at least for me, I think it has to do with the sublayers)

Looks like when I have multiple sublayers and several of them have unsaved edits, it crashes when deleting the proxyShape

  1. open a stage that has sublayers.
  2. Add some edits to the root layer
  3. Add some edits to any sublayer
  4. optional, mute other sublayer
  5. Open the UsdLayerEditor,
  6. delete USD proxy shape from the outliner

if you skip step 5 or close the window, it doesn't crash.

or simply, in a new scene open the shot.usd as a proxy shape, do step 5 and 6 and you will get a crash mayaUSD_layerEditorCrash.zip

If you open layout.usd instead of shot.usd, the issue doesn't happen, because this layer doesn't have sublayers I think.

santosg87 commented 1 year ago

@santosd I think we found a reproducible case here - slightly different workflow, as you need 1 more step, but pretty similar workflow, and a consistent crash:

  1. Go to Create
  2. Click on Universal Scene Description--> Stage From File
  3. Open USD Layer Editor panel
  4. Add a sublayer under your anonymous layer
  5. Delete Stage node on Outliner
  6. Fatal error

we have an issue logged internally as MAYA-128598

santosg87 commented 1 year ago

@Lucas3Dspain hi! :D it seems we were typing together!

kimuss commented 1 year ago

same error in 2024 (if I check in the plug-in manager, Maya 2024 has 0.22 version of usd plugin).

sessionlayer

Anyway you are right, it happen with anonymous layer and for me also when delete stage node on Outliner from network file.usd stage (layer editor always opened).

santosd commented 1 year ago

Excellent! Thank you all. We will take a look at it and hopefully get a fix in soon.

santosd commented 9 months ago

@kimuss this should be fixed since our 0.24.0 release. Could you try with the latest release 0.26.0 ? We tested on verified we were no longer seeing the issue.

kimuss commented 9 months ago

I tried this problem with version 0.26 and everything works perfectly. Thank you guys