Autodesk / Autodesk/maya-usd

maya-usd ufe issue

Open
#3,473 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Describe the issue**
The compilation seems to be fine except maybe for this warning (See attached [build_log.txt](https://github.com/Autodesk/maya-usd/files/13418459/build_log.txt)):

`nm: /path/to/maya/2022.5-2448/platform-linux/maya/lib/libFoundation.so: no symbols`

Maybe `nm -D` would be a better fit (not sure).

When using maya-usd within maya, we can load a stage (The KitchenSet for example) and it's visible in the viewport, but when selecting a Prim, maya crashes with the following log:

```bash
//crash log file name = /tmp/user.20231117.1221
//cut = 202303271415
//host name = *******
//release name = 3.10.0-957.el7.x86_64
//version = #1 SMP Thu Nov 8 23:39:32 UTC 2018
//machine name = x86_64
//current scene = unDisclosed
//directory = /path/to/sandbox/usd_group/maya-usd
//====================================================
//command history (most recent last):
//====================================================
//Python stack:
File: "/path/to/maya-usd_package/maya_usd/0.25.0/_v/a/lib/python/ufe_ae/usd/nodes/usdschemabase/ae_template.py", line 621, in __init__(self=, ufeSceneItem=)
self.buildUI()
File: "/path/to/maya-usd_package/maya_usd/0.25.0/_v/a/lib/python/ufe_ae/usd/nodes/usdschemabase/ae_template.py", line 871, in buildUI(self=)
sectionName = self.sectionNameFromSchema(schemaTypeName)
File: "/path/to/maya-usd_package/maya_usd/0.25.0/_v/a/lib/python/ufe_ae/usd/nodes/usdschemabase/ae_template.py", line 706, in sectionNameFromSchema(self=, schemaTypeName='Mesh')
schemaTypeName = mayaUsdLib.Util.prettifyName(schemaTypeName)

//====================================================
//last tool: nurbsSelect
//====================================================
//panel with focus: modelPanel4
//visible panels:
// modelPanel4 outlinerPanel1 scriptEditorPanel1
//====================================================
UsdUfe_v0::prettifyName(std::string const&)
pxrInternal_v0_21__pxrReserved__::UsdMayaUtil::prettifyName(std::string const&)
boost::python::objects::caller_py_function_impl > >::operator()(_object*, _object*)
boost::python::objects::function::call(_object*, _object*) const
/path/to/boost/1.66.0/platform-linux/lib/libboost_python.so.1.66.0(+0x2b5a8) [0x7fa5eeccd5a8]
boost::python::detail::exception_handler::operator()(boost::function0 const&) const
boost::detail::function::function_obj_invoker2, boost::_bi::list3, boost::arg<2>, boost::_bi::value > >, bool, boost::python::detail::exception_handler const&, boost::function0 const&>::invoke(boost::detail::function::function_buffer&, boost::python::detail::exception_handler const&, boost::function0 const&)
boost::python::handle_exception_impl(boost::function0)
/path/to/boost/1.66.0/platform-linux/lib/libboost_python.so.1.66.0(+0x28989) [0x7fa5eecca989]
PyObject_Call
boost::python::objects::full_py_function_impl, boost::mpl::vector1<_object*> >::operator()(_object*, _object*)
boost::python::objects::function::call(_object*, _object*) const
/path/to/boost/1.66.0/platform-linux/lib/libboost_python.so.1.66.0(+0x2b5a8) [0x7fa5eeccd5a8]
boost::python::detail::exception_handler::operator()(boost::function0 const&) const
boost::detail::function::function_obj_invoker2, boost::_bi::list3, boost::arg<2>, boost::_bi::value > >, bool, boost::python::detail::exception_handler const&, boost::function0 const&>::invoke(boost::detail::function::function_buffer&, boost::python::detail::exception_handler const&, boost::function0 const&)
boost::python::handle_exception_impl(boost::function0)
/path/to/boost/1.66.0/platform-linux/lib/libboost_python.so.1.66.0(+0x28989) [0x7fa5eecca989]
PyObject_Call
PyEval_EvalFrameEx
PyEval_EvalFrameEx
PyEval_EvalFrameEx
PyEval_EvalCodeEx
/path/to/maya/2022.5-2448/platform-linux/maya/lib/libpython2.7.so.1.0(+0x792f1) [0x7fa6cc7462f1]
PyObject_Call
/path/to/maya/2022.5-2448/platform-linux/maya/lib/libpython2.7.so.1.0(+0x5c40f) [0x7fa6cc72940f]
PyObject_Call
/path/to/maya/2022.5-2448/platform-linux/maya/lib/libpython2.7.so.1.0(+0xb6280) [0x7fa6cc783280]
/path/to/maya/2022.5-2448/platform-linux/maya/lib/libpython2.7.so.1.0(+0xacd38) [0x7fa6cc779d38]
PyObject_Call
PyEval_CallObjectWithKeywords
TpythonInterpreter::callPythonFunction(_object*, _object*, _object*)
TpythonInterpreter::callFunctionFromModule(Tstring const&, Tstring const&, TpythonObjectWithLock&, TpythonObjectWithLock*, TpythonObjectWithLock*)
TPSdatabase::createTemplate(TPSdataNode*, TPSscriptRecord*)
TPSdatabase::createTemplateNodeRecordFor(QLayout*, TPSdataNode*, TPSscriptRecord*, bool)
TPSdatabase::generateUI(QLayout*, TPSdataNode*, bool)
TPSdatabase::generateUI(QLayout*, std::shared_ptr const&, bool)
/path/to/maya/2022.5-2448/platform-linux/maya/lib2/libSharedUI.so(+0x38fa68) [0x7fa6e1141a68]
/path/to/maya/2022.5-2448/platform-linux/maya/lib2/libCommandEngine.so(+0x9e5e4) [0x7fa6daae75e4]
/path/to/maya/2022.5-2448/platform-linux/maya/lib2/libCommandEngine.so(+0xc8879) [0x7fa6dab11879]
/path/to/maya/2022.5-2448/platform-linux/maya/lib2/libCommandEngine.so(+0xe9778) [0x7fa6dab32778]
1
//====================================================
//Memory usage:
// 1497.903 Mb Free Memory
// 5280.834 Mb Free Swap
// 1186.272 Mb Heap
//====================================================
```
The crash seems to happen when calling `mayaUsdLib.Util.prettifyName(schemaTypeName)`.
I think this might more looks like a build or environment issue as this seems to be a huge bug and it has not been reported yet.

We did not have any problem with `maya-usd-0.23`, it seems it appears starting with `maya-usd-0.24` and the fact `ufe`
is now `usdUfe`.

**Build log**
[build_log.txt](https://github.com/Autodesk/maya-usd/files/13418459/build_log.txt)

**Specs:**
- CentOS Linux release 7.6.1810 (Core)
- GCC-6.3.1 (devtoolset-6)
- Maya 2022.5
- Maya USD 0.25.0
- Pixar USD 21.11

Any advice would be welcome....
Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the attached build_log.txt and the traceback in ufe_ae/usd/nodes/usdschemabase/ae_template.py. Reproduce the crash in Maya 2022.5 with Maya USD 0.25.0 by loading KitchenSet and selecting a Prim, then inspect AETemplate.__init__, buildUI, and sectionNameFromSchema around line 706. Compare the behavior with Maya USD 0.23 and 0.24; done means the affected configuration and crash cause are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
computer-graphics, desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.