maya-usd
maya-usd copied to clipboard
[MAYA-128598] Fatal error if delete USD node with USD layer Editor opened
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:
- Go to Create
- Click on Universal Scene Description--> Stage From File
- Open USD Layer Editor panel
- Delete Stage node on Outliner
- 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
I have seen this happening since 2022.4 too, It doesn't happen every for me.
Same in Maya 2024 (mayaUSD 0.22)
@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 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
- open a stage that has sublayers.
- Add some edits to the root layer
- Add some edits to any sublayer
- optional, mute other sublayer
- Open the UsdLayerEditor,
- 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.
@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:
- Go to Create
- Click on Universal Scene Description--> Stage From File
- Open USD Layer Editor panel
- Add a sublayer under your anonymous layer
- Delete Stage node on Outliner
- Fatal error
we have an issue logged internally as MAYA-128598
@Lucas3Dspain hi! :D it seems we were typing together!
same error in 2024 (if I check in the plug-in manager, Maya 2024 has 0.22 version of usd plugin).
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).
Excellent! Thank you all. We will take a look at it and hopefully get a fix in soon.
@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.
I tried this problem with version 0.26 and everything works perfectly. Thank you guys