Skip to content
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

Conversation

seando-adsk
Copy link
Collaborator

MAYA-107303 - UFE: crash (debug only) in MEL parser with multiple UFE items in single string

  • When asking for UsdPrim from Ufe Path we cannot assume the path is valid and therefore should not assert.

… items in single string

* When asking for UsdPrim from Ufe Path we cannot assume
  the path is valid and therefore should not assert.
@seando-adsk seando-adsk requested a review from ppt-adsk January 5, 2021 20:56
Comment on lines +74 to +81
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()
Copy link
Collaborator Author

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

Copy link

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

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

@seando-adsk seando-adsk left a 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.

@@ -50,6 +50,10 @@ template <> struct iterator_traits<MStringArray::Iterator>
} // namespace std
#endif

namespace {
static constexpr auto kIllegalUSDPath = "Illegal USD run-time path %s.";
Copy link
Collaborator

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.

@kxl-adsk kxl-adsk added the ufe-usd Related to UFE-USD plugin in Maya-Usd label Jan 6, 2021
… items in single string

* minor - code review and style fix.
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jan 6, 2021
@kxl-adsk kxl-adsk merged commit c39e3f8 into dev Jan 6, 2021
@kxl-adsk kxl-adsk deleted the donnels/MAYA-107303/crash_with_multiple_ufe_items_in_single_string branch January 6, 2021 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge ufe-usd Related to UFE-USD plugin in Maya-Usd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants