maya-usd icon indicating copy to clipboard operation
maya-usd copied to clipboard

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

Open kimuss opened this issue 1 year ago • 9 comments

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:

  • OS & version Windows 11 22H2
  • Maya version Maya 2023.3
  • Maya USD Plugin 0.22

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

kimuss avatar Mar 29 '23 14:03 kimuss

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

Same in Maya 2024 (mayaUSD 0.22)

Lucas3Dspain avatar Mar 29 '23 14:03 Lucas3Dspain

@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?

santosd avatar Mar 29 '23 21:03 santosd

@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.

Lucas3Dspain avatar Mar 30 '23 01:03 Lucas3Dspain

@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 avatar Mar 30 '23 01:03 santosg87

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

santosg87 avatar Mar 30 '23 01:03 santosg87

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).

kimuss avatar Mar 30 '23 08:03 kimuss

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

santosd avatar Mar 30 '23 14:03 santosd

@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.

santosd avatar Nov 30 '23 15:11 santosd

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

kimuss avatar Dec 01 '23 10:12 kimuss