Closed suesauer closed 4 years ago
Just an update, got some of the tests to run but 42 still fail. They complain about: __cxa_throw_bad_array_new_length build_log.txt
Errors: I'm getting these sorts of ewrrors in Maya PR118
`./Run_Maya.sh Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. Initialized VP2.0 renderer { Version : 2016.11.62.12. Feature Level 5. Adapter : GeForce RTX 2080 SUPER/PCIe/SSE2 Vendor ID: 4318. Device ID : Driver : 4.6.0 NVIDIA 440.82. API : OpenGL V.4.6. Max texture size : 16384 * 16384. Max texture coords : 32 Shader versions supported (Vertex: 5, Geometry: 5, Pixel 5). Shader compiler profile : (Best card profile) Active stereo support available : 0 GPU Memory Limit : 8192 MB. CPU Memory Limit : 122252 MB. MultiDraw consolidation : enabled } OpenCL evaluator is attempting to initialize OpenCL. Detected 1 OpenCL Platforms: 0: NVIDIA Corporation. NVIDIA CUDA. OpenCL 1.2 CUDA 10.2.159. Supported extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics OpenCL evaluator choosing OpenCL platform NVIDIA Corporation. Choosing OpenCL Device GeForce RTX 2080 SUPER. Device Type: GPU Device is available.
#############################################################################
############################################################################# Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Tf'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Gf'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Trace'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Work'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Plug'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Vt'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Ar'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Kind'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Sdf'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Pcp'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Usd'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdGeom'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Garch'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Glf'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.PxOsd'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Ndr'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Sdr'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdShade'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdHydra'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdImagingGL'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdLux'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdRi'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdSkel'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdUtils'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.CameraUtil'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'mayaUsd.lib'! Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdVol'! Coding Error: in _Load at line 258 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/plug/plugin.cpp -- Failed to load plugin 'hdArnold': libai.so: cannot open shared object file: No such file or directory in '/home/sue.sauer/Documents/Maya_arnold-usd/plugin/hdArnold.so' Warning: in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'mayaUsd.schemas'! Warning: in _AdapterLookup at line 270 of /home/sue.sauer/Documents/USDPXR/USD/pxr/usdImaging/usdImaging/delegate.cpp -- Selected hydra renderer doesn't support prim type 'DistantLight' Warning: in _AdapterLookup at line 270 of /home/sue.sauer/Documents/USDPXR/USD/pxr/usdImaging/usdImaging/delegate.cpp -- Selected hydra renderer doesn't support prim type 'DiskLight' Coding Error (secondary thread): in _Load at line 258 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/plug/plugin.cpp -- Failed to load plugin 'ndrArnold': libai.so: cannot open shared object file: No such file or directory in '/home/sue.sauer/Documents/Maya_arnold-usd/plugin/ndrArnold.so' Coding Error (secondary thread): in _InstantiateParserPlugins at line 858 of /home/sue.sauer/Documents/USDPXR/USD/pxr/usd/ndr/registry.cpp -- Failed verification: ' pluginFactory ' Warning (secondary thread): in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdUI'! Warning (secondary thread): in Tf_PyLoadScriptModule at line 122 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdMtlx'! Coding Error (secondary thread): in _Load at line 258 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/plug/plugin.cpp -- Failed to load plugin 'ndrArnold': libai.so: cannot open shared object file: No such file or directory in '/home/sue.sauer/Documents/Maya_arnold-usd/plugin/ndrArnold.so' Coding Error (secondary thread): in _FindAndInstantiateDiscoveryPlugins at line 822 of /home/sue.sauer/Documents/USDPXR/USD/pxr/usd/ndr/registry.cpp -- Failed verification: ' pluginFactory ' Status: in OnSceneReset at line 52 of /home/sue.sauer/Documents/maya-usd/lib/mayaUsd/utils/stageCache.cpp -- Clearing USD Stage Cache Warning: in _AdapterLookup at line 270 of /home/sue.sauer/Documents/USDPXR/USD/pxr/usdImaging/usdImaging/delegate.cpp -- Selected hydra renderer doesn't support prim type 'DistantLight' Warning: in _AdapterLookup at line 270 of /home/sue.sauer/Documents/USDPXR/USD/pxr/usdImaging/usdImaging/delegate.cpp -- Selected hydra renderer doesn't support prim type 'DiskLight' Status: in OnSceneReset at line 52 of /home/sue.sauer/Documents/maya-usd/lib/mayaUsd/utils/stageCache.cpp -- Clearing USD Stage Cache Empty filename passed to function Empty filename passed to function Status: in OnSceneReset at line 52 of /home/sue.sauer/Documents/maya-usd/lib/mayaUsd/utils/stageCache.cpp -- Clearing USD Stage Cache `
Anybody there?
On Windows and Linux the Maya PR118 is a dual-python build with python 3 being the default. I see that you built the maya-usd plugin with python 2, so you need to run Maya in python 2 mode. There are two ways: (1) set the env var MAYA_PYTHON_VERSION=2
or (2) run maya -pythonver 2
.
Note: you'll also need to make sure that USD is built with the same python (in this case python 2).
In your attached logs I see /usr/autodesk/maya2021/bin/mayapy2 [permission denied]
. mayapy2 is the python 2 version of mayapy. Make sure you have the appropriate permissions to run that. This is used when running the tests.
ah, well that would be a problem. Thanks for the response will try this out
I see that running the test module opens maya 2021 automatically using python 3. Even when I set the env to 2. Where in the code can I just manually update that?
It should not be. I saw from your logs that it was running the tests using mayapy2 - this is the python2 version. If you run mayapy2 you can see that the version is 2.7.11, whereas mayapy is the python3 version with 3.7.3.
Can't seem to get pxr usd to load in maya 2021. Here are the arrors I get:
`file -f -new; // untitled // commandPort -securityWarning -name commandportDefault; onSetCurrentLayout "Maya Classic"; updateRenderOverride; // Warning: file: /usr/autodesk/maya2021/scripts/startup/autoLoadPlugin.mel line 35: Loading plug-in "mtoh" has resulted in changes to the scene that may need to be saved. // // AbcExport v1.0 using Alembic 1.7.5 (built May 20 2020 13:49:21) // AbcImport v1.0 using Alembic 1.7.5 (built May 20 2020 13:49:21) // Warning: file: /usr/autodesk/maya2021/scripts/others/supportRenderers.mel line 67: The renderer "arnold" used by this scene, is not currently available. The "mayaSoftware" renderer will be used instead. To prevent this message from being displayed in the future, set the environment variable: MAYA_NO_WARNING_FOR_MISSING_DEFAULT_RENDERER=1 //
// Error: file: /usr/autodesk/maya2021/scripts/others/pluginWin.mel line 316: initializePlugin function failed (pxrUsd) // `
`Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. Initialized VP2.0 renderer { Version : 2016.11.62.12. Feature Level 5. Adapter : GeForce RTX 2080 SUPER/PCIe/SSE2 Vendor ID: 4318. Device ID : Driver : 4.6.0 NVIDIA 440.82. API : OpenGL V.4.6. Max texture size : 16384 * 16384. Max texture coords : 32 Shader versions supported (Vertex: 5, Geometry: 5, Pixel 5). Shader compiler profile : (Best card profile) Active stereo support available : 0 GPU Memory Limit : 8192 MB. CPU Memory Limit : 122252 MB. MultiDraw consolidation : enabled } OpenCL evaluator is attempting to initialize OpenCL. Detected 1 OpenCL Platforms: 0: NVIDIA Corporation. NVIDIA CUDA. OpenCL 1.2 CUDA 10.2.159. Supported extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics OpenCL evaluator choosing OpenCL platform NVIDIA Corporation. Choosing OpenCL Device GeForce RTX 2080 SUPER. Device Type: GPU Device is available.
#############################################################################
############################################################################# Coding Error: in _Load at line 258 of /home/sue.sauer/Documents/USDPXR/USD/pxr/base/plug/plugin.cpp -- Failed to load plugin 'hdArnold': libai.so: cannot open shared object file: No such file or directory in '/home/sue.sauer/Documents/Maya_arnold-usd/plugin/hdArnold.so'
API error detected in /home/sue.sauer/Documents/maya-usd/plugin/pxr/maya/plugin/pxrUsd/plugin.cpp at line 132 : (kFailure): Unexpected Internal Failure`
SCRIPT_DIR=$(readlink -f "$(dirname "$0")")
export MAYA_PYTHON_VERSION=2 export PYTHONPATH="$PYTHONPATH:${SCRIPT_DIR}/USD/lib/python" export PATH="$PATH:${SCRIPT_DIR}/USD/bin" export MAYA_MODULE_PATH="$MAYA_MODULE_PATH:${SCRIPT_DIR}/WorkspaceRefractor/install/RelWithDebInfo"
export PYTHONPATH="${SCRIPT_DIR}/usdNodeGraph/lib/python:$PYTHONPATH"
export PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7" export PXR_PLUGINPATH_NAME="${SCRIPT_DIR}/Maya_arnold-usd/plugin" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${SCRIPT_DIR}/USD/lib" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/autodesk/arnold/maya2021/bin"
maya -pythonver 2
Linux centos 7.7 gcc - 6.3.1 I have USD 20.08 - 71b4baace2044ea4400ba802e91667f9ebe342f0 MAYA USD - 4ebf3ad44d791492334b94e0b837ed53e8da191c MAYA 2021
@suesauer Error you are getting is not related to MayaUsd. Please remove Arnold (and possibly Arnold render delegate) and confirm that plugins load correctly.
Once you did that, then make sure to compile Arnold Render Delegate against the same USD you used to compile MayaUsd. As well, make sure you have correct rpaths to Arnold library.
Hey there, Still no luck with getting all of usd to work in 2021. Also what arnold is compatible with 2021 I have 4.0.4(the latest downloadable version)? I did what you ask above and this is the result I get below:
`Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. Initialized VP2.0 renderer { Version : 2016.11.62.12. Feature Level 5. Adapter : GeForce RTX 2080 SUPER/PCIe/SSE2 Vendor ID: 4318. Device ID : Driver : 4.6.0 NVIDIA 440.82. API : OpenGL V.4.6. Max texture size : 16384 * 16384. Max texture coords : 32 Shader versions supported (Vertex: 5, Geometry: 5, Pixel 5). Shader compiler profile : (Best card profile) Active stereo support available : 0 GPU Memory Limit : 8192 MB. CPU Memory Limit : 122252 MB. MultiDraw consolidation : enabled } OpenCL evaluator is attempting to initialize OpenCL. Detected 1 OpenCL Platforms: 0: NVIDIA Corporation. NVIDIA CUDA. OpenCL 1.2 CUDA 10.2.159. Supported extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics OpenCL evaluator choosing OpenCL platform NVIDIA Corporation. Choosing OpenCL Device GeForce RTX 2080 SUPER. Device Type: GPU Device is available.
#############################################################################
#############################################################################
API error detected in /home/sue.sauer/Documents/USDpython3.8/maya-usd/plugin/pxr/maya/plugin/pxrUsd/plugin.cpp at line 132 : (kFailure): Unexpected Internal Failure
API error detected in /home/sue.sauer/Documents/USDpython3.8/maya-usd/plugin/pxr/maya/plugin/pxrUsd/plugin.cpp at line 132 : (kFailure): Unexpected Internal Failure // Error: file: /usr/autodesk/maya2021/scripts/others/pluginWin.mel line 316: Plug-in, "mtoa" was compiled against too old a version of the Maya API and is thus incompatible with the current Maya version. (mtoa) // `
Thanks for all the help Sue build_log.txt
@suesauer Which version are you compiling : python2 or python3? FIWIW. Above we see errors pointing at USD with python3.8, but from your shell configuration we see export MAYA_PYTHON_VERSION=2
Try to run a shell with just MAYA_PYTHON_VERSION
and MAYA_MODULE_PATH
(the mod file should configure your env correctly)
Finally, don't add any of Arnold plugins (i.e. Arnold Render Delegate and mtoa).
Just an update, got some of the tests to run but 42 still fail. They complain about: __cxa_throw_bad_array_new_length build_log.txt
@suesauer I've just run into this issue. How did you manage to fix this? Thanks
Hi @Liametc, this error usually comes up when you're mixing DSOs compiled with incompatible versions of the gcc compiler, specifically gcc 4.8 with gcc 4.9 or above. See this post: https://stackoverflow.com/questions/29230777/program-linking-fails-when-using-custom-built-gcc Make sure you're using gcc 6.3.1 on Linux, as per our build requirements: https://github.com/Autodesk/maya-usd/blob/dev/doc/build.md Hope this helps. Cheers.
Thanks @ppt-adsk
The compiler for everything going into this build has been 6.3.1 (I'm building inside the aswf/ci-base:2019 container)
I have also rebuilt boost, usd and maya_usd with -D_GLIBCXX_USE_CXX11_ABI=0
and nothing
Specs :
Hi @Liametc, I'm by no means a Linux gcc compilation expert, so I don't want to mislead you, but I think -D_GLIBCXX_USE_CXX11_ABI=0 is incorrect, as per the Stack Overflow link I sent you. I believe that macro is for you to compile with a later gcc, but run with binaries from an earlier gcc, which is not the case here. I'm probably stretching the limits of my usefulness here :) Still hope this is useful. Cheers.
Looks like it might be that I was using mayapy and not normal python to build it seems to have sorted it. Now to wonder why -DBUILD_TESTS=OFF
is not working :thinking:
Describe the bug Please See attatched txt file. I am trying to run my build with --stage=test like this:
python build.py --maya-location /usr/autodesk/maya2021 --pxrusd-location $SCRIPT_DIR/USD --devkit-location $SCRIPT_DIR/maya_devkit/devkitBase --stages=test $SCRIPT_DIR/WorkspaceRefractor
alas it doesn't do the test, looks pretty unhappy. Not sure whats up.Attachments build_log.txt
Specs (if applicable):
Additional context First time trying this in awhile has never worked for me before. Any help would be appreciated. Sue