-
Notifications
You must be signed in to change notification settings - Fork 203
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
MAYA-107303 - UFE: crash (debug only) with multiple UFE items in single string #1039
MAYA-107303 - UFE: crash (debug only) with multiple UFE items in single string #1039
Conversation
… items in single string * When asking for UsdPrim from Ufe Path we cannot assume the path is valid and therefore should not assert.
if(BUILD_PXR_PLUGIN) | ||
# This test uses the file "UsdExportUVTransforms.ma" which | ||
# requires the plugin "pxrUsdPreviewSurface" that is built by the | ||
# Pixar plugin. | ||
list(APPEND TEST_SCRIPT_FILES | ||
testUsdExportUVTransforms.py | ||
) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had built locally only the maya-usd plugin and got this test failing. Found it is because of the ma file it loads (there is another example of this).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A better approach would be to port this test to use usdPreviewSurface node that is independent of Pixar plugin - see https://github.com/Autodesk/maya-usd/blob/dev/lib/usd/pxrUsdPreviewSurface/usdPreviewSurfacePlugin.cpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do that in a separate PR. I copied this way of skipping the test from another place. So there are multiple tests that need to be ported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ppt-adsk Changes as we discussed.
lib/mayaUsd/ufe/Utils.cpp
Outdated
@@ -50,6 +50,10 @@ template <> struct iterator_traits<MStringArray::Iterator> | |||
} // namespace std | |||
#endif | |||
|
|||
namespace { | |||
static constexpr auto kIllegalUSDPath = "Illegal USD run-time path %s."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit-pick: since this is in the unnamed namespace, static is redundant.
… items in single string * minor - code review and style fix.
MAYA-107303 - UFE: crash (debug only) in MEL parser with multiple UFE items in single string