-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undoing a group action can crash Maya #1481
Comments
Hi @dj-mcg, I followed the steps and can't reproduce this on my side: I am on Windows now but will try this on my Linux later today to see if I can reproduce it. I highly doubt this is platform specific. In the callstack that you have posted, it looks like a stale object trying to access to a stage. Hence the crash. I don't see the line numbers so it is a bit hard to follow. It would be helpful if you could attach a video to show the issue in action. Also note that there are currently a few issues with Grouping that I have logged internally. |
I also tested this on Windows and on Linux and so far I have not been able to reproduce the issue. @dj-mcg are you able to reproduce this from a new stage with a few standard prims or is it specific to a file you are using? |
Hmmm, this was in a USD scene I had saved. Let me try starting from scratch... |
I was able to reproduce a crash with grouping and undo then attempting to move some prims in the 2022 release, but not with the latest changes I have on my end which will be in the next release so it is possible it is something that was there in 2022 but has since been fixed:
Is it possible that is what you were seeing? This issue is no longer present with the latest changes. |
Here is our repro (thanks to Grace!)
|
BTW I just pulled the latest changes but I'm still building them. I'll try once it's done Edit: Unfortunately they are doing systems maintenance at the office so I can't log in until Monday. The crash does sound similar to the repro @santosd shared. I'm on 64 bit linux btw |
Hi @dj-mcg, I tested the exact steps provided by Grace and I was still not able to hit the crash with the latest changes. Let me know, what the results are on your end with the latest changes. Cheers, David Santos |
Strange - I'm still crashing with the latest mayaUsd changes as of Friday. I'll build against USD Release to see if it's something there... |
@dj-mcg I just tried the exact steps and like David can't reproduce it on my side. As a FYI, there are two assertions being thrown when undoing the group command. This is a known issue and we have an internal jira ticket for it. You can ignore them if you see them in output console, and I don't believe are relevant to the crash described here.
|
How strange - I'm running straight from the maya-usd without any Pixar-specific code at all against USD 21.05 and still experience the crash with the repro steps provided above. I can try digging in further on our side, but let me know if I can provide any more information to help you guys. I don't know if it makes a difference, but we are still using Python2 in our environment.
|
I crash if I run the below from the script editor, FYI. I did notice that it did NOT crash if you used
|
Hi @dj-mcg , I tried your script which uses cmds undo/redo and wasn't able to crash. This looks like to be related to missing fixes in the Maya version that you have. I would suggest trying the same workflows with "Maya Preview Release 125" and see if you can reproduce the crash. Hope this helps. |
Aha, that explains it - thanks @HamedSabri-adsk! Does this imply that we would need to wait for Maya 2023 for production to get this fix, or will the fix be included in updates to 2022? |
Just to make sure we conclude here - were you able to confirm that the issue is fixed in the preview release? And yes, we consider all fixes for crashes for backporting to older versions. |
I need to jump through some hoops to get it installed at Pixar so there will be a delay on our side in confirming the fix. However, I think we can assume that this is the issue. Great news about this landing in minor releases, thanks for clarifying. |
Hello @dj-mcg, just wanted to check back on this and see if you were able to test the fix. If you are not able to test at this time, we can go ahead and close the issue out for the time being and reopen if needed once you have been able to take a look. Thank you. |
Closing for now. Feel free to re-open if the problem still exists. |
Describe the bug
When undoing a group action for multiple models, Maya will crash if the rotation manipulator (and possibly others?) was active during grouping.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
No crash.
Attachments
If applicable, add screenshots, sample files, etc to help explain your problem.
Specs (if applicable):
Additional context
Stack Trace:
#6 Tf_DiagnosticHelper::IssueFatalError(char const*, ...) const ()+0x10e @0x415ae from /pixar/ws/trees/danmcgarry/ufe1_s/inst/fedora-gcc64-opt/mayapkg_2022.base/plugin/../lib/../../pxr/lib/libtf.so
#7 Usd_IssueFatalPrimAccessError(Usd_PrimData const*) ()+0x7d @0x1a67ed from /pixar/ws/trees/danmcgarry/ufe1_s/inst/fedora-gcc64-opt/mayapkg_2022.base/plugin/../../pxr/lib/libusd.so
#8 UsdObject::GetStage() const ()+0x70 @0x182730 from /pixar/ws/trees/danmcgarry/ufe1_s/inst/fedora-gcc64-opt/mayapkg_2022.base/plugin/../../pxr/lib/libusd.so
#9 MayaUsd_v0::ufe::UsdTransform3dMayaXformStackHandler::editTransform3d(std::shared_ptr<Ufe_v2::SceneItem> const&, Ufe_v2::EditTransform3dHint const&) const ()+0x198 @0x3ddb88 from /pixar/ws/trees/danmcgarry/ufe1_s/inst/fedora-gcc64-opt/mayapkg_2022.base/plugin/../lib/libmayaUsd.so
#10 MayaUsd_v0::ufe::UsdTransform3dPointInstanceHandler::editTransform3d(std::shared_ptr<Ufe_v2::SceneItem> const&, Ufe_v2::EditTransform3dHint const&) const ()+0x9c @0x3e5cac from /pixar/ws/trees/danmcgarry/ufe1_s/inst/fedora-gcc64-opt/mayapkg_2022.base/plugin/../lib/libmayaUsd.so
#11 Ufe_v2::Transform3d::editTransform3d (item=..., hint=...)+0x12c @0x506cc at /home/S/jenkins/workspace/ufe-full-linux/ufe/src/transform3d.cpp:205
#12 TmanipRotateContext::updateRotateManips(bool, bool) ()+0xfe9 @0x215489 from /dist/sw/maya/2022.base/lib/libManips.so
#13 TmanipRotateContext::updateManipPivot(TclientServer*, TserverMsg const&) ()+0x1a6 @0x2165f6 from /dist/sw/maya/2022.base/lib/libManips.so
#14 TclientServer::notifyClients(TserverMsg const&) ()+0x1c2 @0x17bbe2 from /dist/sw/maya/2022.base/lib/libFoundation.so
#15 TdelayedClientServer::notifyClients(TserverMsg const&) ()+0x198 @0x177c58 from /dist/sw/maya/2022.base/lib/libFoundation.so
#16 Tmodel::notifyToolPivotModified(bool) ()+0x29 @0x6f7269 from /dist/sw/maya/2022.base/lib2/libDataModel.so
#17 Tmodel::UfeSelectionChangedCB(Tclient*, TclientServer*, TserverMsg const&) ()+0x46 @0x6ed6c6 from /dist/sw/maya/2022.base/lib2/libDataModel.so
#18 TclientServer::notifyClients(TserverMsg const&) ()+0x1c2 @0x17bbe2 from /dist/sw/maya/2022.base/lib/libFoundation.so
#19 TdelayedClientServer::forceAllNotifications() ()+0xba @0x17775a from /dist/sw/maya/2022.base/lib/libFoundation.so
#20 TgroupCmd::undoIt() ()+0x112 @0x4f1942 from /dist/sw/maya/2022.base/lib2/libShared.so
#21 TcommandContainer::undoIt() [clone .localalias] ()+0x3b @0xa844b from /dist/sw/maya/2022.base/lib2/libCommandEngine.so
#22 TundoManager::undo(unsigned int) ()+0x10e @0xa6c6e from /dist/sw/maya/2022.base/lib2/libCommandEngine.so
#23 TundoAction::doCommand(TargList&) ()+0xc9 @0xa7ec9 from /dist/sw/maya/2022.base/lib2/libCommandEngine.so
#24 Mel_Command_Dispatch(SphNode*) ()+0x264 @0x98124 from /dist/sw/maya/2022.base/lib2/libCommandEngine.so
The text was updated successfully, but these errors were encountered: