PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
5.51k stars 1.14k forks source link

[C++ Runtime Error] Failed Verification: file format #1374

Closed shdwdln closed 3 years ago

shdwdln commented 3 years ago

Description of Issue

Steps to Reproduce

  1. Visual Studio 2017 -> New Project -> Console App
  2. Set all include dirs and libs
  3. Paste code below:

    include

define NOMINMAX

define TBB_USE_ASSERT 0

define TBB_USE_THREADING_TOOLS 0

include "pxr/usd/usd/stage.h"

int main() { pxr::UsdStage::CreateNew("Test.usda"); std::cout << "Hello World!\n"; }

  1. Compile and Runtime error is:

Coding Error: in _CreateNew at line 415 of D:\USD-20.11_SRC\pxr\usd\sdf\layer.cpp -- Failed verification: ' fileFormat ' Hello World!

System Information (OS, Hardware)

Windows 10 Pro (x64)

Package Versions

v20.11

Build Flags

set OPENCOLORIO_OPTIONS="-DOCIO_BUILD_NUKE=OFF" set OPENIMAGEIO_OPTIONS="-DNuke_ROOT=NONE"

"%CUSTOM_PY27_DIR%\python.exe" %USD_SRC%\build_scripts\build_usd.py -v --src %DEP_DOWLOAD_DIR% --inst %DEP_INSTALL_DIR% --draco --ptex --openvdb --materialx --openimageio --opencolorio --alembic --hdf5 --prman --tests --examples --tutorials --tools --generator "Visual Studio 15 2017 Win64" "D:\USD_BUILD_v20.11" --build-args OpenEXR,"-DPYILMBASE_ENABLE=ON" OpenImageIO,%OPENIMAGEIO_OPTIONS% OpenColorIO,%OPENCOLORIO_OPTIONS%

meshula commented 3 years ago

USD expects to find the file format specification files at a certain location. If you go into your usd build, and cd to the directory with sdfdump.exe, can you run sdfdump on a usd file? If so, it means your usd installation is functional. A first step in troubleshooting a problem like this could be to copy your test.exe into the same directory as sdfdump.exe and try running it there. If it works there, that will tell you that there are path issues to be resolved.

jilliene commented 3 years ago

Filed as internal issue #USD-6452

shdwdln commented 3 years ago

USD expects to find the file format specification files at a certain location. If you go into your usd build, and cd to the directory with sdfdump.exe, can you run sdfdump on a usd file? If so, it means your usd installation is functional. A first step in troubleshooting a problem like this could be to copy your test.exe into the same directory as sdfdump.exe and try running it there. If it works there, that will tell you that there are path issues to be resolved.

I am able to run the sdfdump.exe in the %USD_BUILD_DIR%\bin directory. I moved my test .EXE to that directory and it ran with no problems.

My Post-Build event is: xcopy "D:\USD_v20.11\dependencies_v20.11\dep_install\lib\boost_python27-vc141-mt-x64-1_70.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\usd.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\tf.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\kind.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\pcp.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\sdf.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\ar.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\arch.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\plug.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\vt.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\work.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\js.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\trace.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\gf.dll" "$(OutDir)" /y

What else should I add to make this binary run as though it was copied to the %USD_DIR%\bin directory? What files am I missing here?

shdwdln commented 3 years ago

Here is a clearer list of the Post-Build Evenet:

xcopy "D:\USD_v20.11\dependencies_v20.11\dep_install\lib\boost_python27-vc141-mt-x64-1_70.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\usd.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\tf.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\kind.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\pcp.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\sdf.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\ar.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\arch.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\plug.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\vt.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\work.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\js.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\trace.dll" "$(OutDir)" /y xcopy "D:\USD_v20.11\USD_BUILD_v20.11\lib\gf.dll" "$(OutDir)" /y

meshula commented 3 years ago

The dlls (usd.dll etc) need to be in your PATH variable, or they need to be in the same directory as your app.exe. The lib directory needs to be findable from app using the same relative path as from sdfdump.exe. In other words, if you don't want to put your app in the same bin directory as sdfdump you need a structure like this -

+-- YourApp
    +-- bin
            +--- yourapp.exe
            +--- all the dlls (something like dependencies.exe can tell you the complete list)
    +-- lib
            +--- usd/
                     +---- all the stuff the CMake install put here
shdwdln commented 3 years ago

I just tried this:

And it is still failing -___- Should I copy the .DLLs in the lib dir too or just the 'usd' folder?

meshula commented 3 years ago

Ah good point, you need to copy the ones in the lib dir as well. Could you try that and report back?

shdwdln commented 3 years ago

Still erroring with... ...\pxr\usd\sdf\layer.cpp -- Failed verification: ' fileFormat '

but I can run the same exe from the %USD_DIR\bin folder and it runs fine X ____ X

I even copied the sdfdump.exe to my Release\bin folder and IT is running fine. I'm dead.

meshula commented 3 years ago

It's strange that sdfdump works, but not your exe. Maybe work in the bin folder for now, I'll ping you if I have a new idea.

shdwdln commented 3 years ago

Yeah, Im not sure what the difference is. Thanks for your help

shdwdln commented 3 years ago

Anyone have any insights what is wrong or what I am doing wrong here?

rlei-weta commented 3 years ago

Hello @shdwdln - would you be able to set the environment variable TF_DEBUG to the value *, run your example program, and attach the output of the logging here?

shdwdln commented 3 years ago

pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_DEBUG_REGISTRY pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_DISCOVERY_TERSE pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_DISCOVERY_DETAILED pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_DLOPEN pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_DLCLOSE pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry TfRegistryManager: no functions to run for TfDebug TfRegistryManager: initialized TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\tf.dll TfRegistryManager: running 2 functions for TfDebug TfRegistryManager: running 2 functions for TfEnum pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_LOG_STACK_TRACE_ON_ERROR TfRegistryManager: running 6 functions for TfType pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_LOG_STACK_TRACE_ON_WARNING pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_ERROR_MARK_TRACKING pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_PRINT_ALL_POSTED_ERRORS_TO_STDERR pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_SCRIPT_MODULE_LOADER pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_TYPE_REGISTRY pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_ATTACH_DEBUGGER_ON_ERROR pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_ATTACH_DEBUGGER_ON_FATAL_ERROR pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: TF_ATTACH_DEBUGGER_ON_WARNING TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 0 functions for TfType TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\work.dll TfRegistryManager: running 2 functions for Tf_EnvSettingRegistry TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\trace.dll TfRegistryManager: running 0 functions for TfDebug TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 1 functions for TfType TfRegistryManager: running 0 functions for Tf_EnvSettingRegistry TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\plug.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: PLUG_LOAD pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: PLUG_REGISTRATION pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: PLUG_LOAD_IN_SECONDARY_THREAD pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: PLUG_INFO_SEARCH TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 4 functions for TfType TfRegistryManager: running 0 functions for Tf_EnvSettingRegistry TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\gf.dll TfRegistryManager: running 0 functions for TfDebug TfRegistryManager: running 2 functions for TfEnum TfRegistryManager: running 44 functions for TfType TfRegistryManager: running 0 functions for Tf_EnvSettingRegistry TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\vt.dll TfRegistryManager: running 0 functions for TfDebug TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 3 functions for TfType TfRegistryManager: running 1 functions for Tf_EnvSettingRegistry TfRegistryManager: running 1 functions for VtValue TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\ar.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: AR_RESOLVER_INIT TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 3 functions for TfType TfRegistryManager: running 1 functions for Tf_EnvSettingRegistry TfRegistryManager: running 0 functions for VtValue TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\sdf.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: SDF_LAYER pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: SDF_CHANGES pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: SDF_ASSET pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: SDF_ASSET_TRACE_INVALID_CONTEXT pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: SDF_FILE_FORMAT TfRegistryManager: running 7 functions for TfEnum TfRegistryManager: running 28 functions for TfType TfRegistryManager: running 2 functions for Tf_EnvSettingRegistry TfRegistryManager: running 6 functions for VtValue TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\kind.dll TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\pcp.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: PCP_CHANGES pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: PCP_DEPENDENCIES pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: PCP_PRIM_INDEX pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: PCP_PRIM_INDEX_GRAPHS pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: PCP_NAMESPACE_EDIT TfRegistryManager: running 5 functions for TfEnum TfRegistryManager: running 0 functions for TfType TfRegistryManager: running 5 functions for Tf_EnvSettingRegistry TfRegistryManager: running 0 functions for VtValue TfRegistryManager: Library C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\usd.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_CHANGES pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_CLIPS pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_COMPOSITION pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_DATA_BD pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_DATA_BD_TRY pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_INSTANCING pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_PATH_RESOLUTION pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_PAYLOADS pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_PRIM_LIFETIMES pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_SCHEMA_REGISTRATION pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_STAGE_CACHE pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_STAGE_LIFETIMES pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_STAGE_OPEN pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_STAGE_INSTANTIATION_TIME pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_VALIDATE_VARIABILITY pxrInternal_v0_20__pxrReserved__::Tf_DebugSymbolRegistry::_Register: USD_VALUE_RESOLUTION TfRegistryManager: running 7 functions for TfEnum TfRegistryManager: running 13 functions for TfType TfRegistryManager: running 6 functions for Tf_EnvSettingRegistry TfRegistryManager: running 0 functions for VtValue R:\DevQA\USD\USD_BUILD_v20.11\binPre-Stage... TfRegistryManager: no functions to run for TfDiagnosticMgr SdfLayer::CreateNew('C:\test.usda', '< >') Plug will search for plug infos under 'C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\' Will check plugin info paths Will read plugin info c:/Users/DBY1/source/repos/usd_test_01/x64/Release/bin/usd Failed to open plugin info c:/Users/DBY1/source/repos/usd_test_01/x64/Release/bin/usd Will read plugin info c:/Users/DBY1/source/repos/usd_test_01/x64/Release/plugin/usd Failed to open plugin info c:/Users/DBY1/source/repos/usd_test_01/x64/Release/plugin/usd Did check plugin info paths in 0.003184 seconds ArGetResolver(): Found asset resolver types: [ArDefaultResolver] ArGetResolver(): Using default asset resolver ArDefaultResolver ArGetResolver(): Found package resolver Usd_UsdzResolver ArGetResolver(): Skipping package resolver Usd_UsdzResolver because plugin cannot be found Sdf_FileFormatRegistry::_RegisterFormatPlugins_RegisterFormatPlugins: Type 'SdfTextFileFormat' _RegisterFormatPlugins: Type 'UsdUsdFileFormat' _RegisterFormatPlugins: Type 'UsdUsdaFileFormat' _RegisterFormatPlugins: Type 'UsdUsdcFileFormat' _RegisterFormatPlugins: Type 'UsdUsdzFileFormat'

I guess this is the line that I need to investigate?

Failed to open plugin info c:/Users/DBY1/source/repos/usd_test_01/x64/Release/plugin/usd

rlei-weta commented 3 years ago

@shdwdln - do you have the required values set in your PATH env var? (The instructions should have been printed after build_usd.py completes)

... alternatively - you could try downloading & running with NVIDIA's pre-built USD binaries: https://developer.nvidia.com/usd#bin

After extracting the archive, there is a README.txt with instructions on the exact environment variables to set up for your runtime.

shdwdln commented 3 years ago

Yeah, I run a .BAT file that sets up the final env vars recommended at the end of the usd build instructions. I use this in python, maya, and other applications with embedded python. Everything works fine--even sdfdump.exe found in the bin folder (which also won't run unless the env vars are set). So it's very confusing. Like I said, I even moved the sdfdump.exe to my release directory for this project and it runs in the same cli.

Makes me wonder if I have something not set up right in Visual Studio 2017 or something. maybe I should just try to build it with cmake.

meshula commented 3 years ago

@shdwdln the TF_DEBUG identified the problem, as you suggest.

SdfLayer::CreateNew('C:\test.usda', '< >') Plug will search for plug infos under 'C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin\' Will check plugin info paths Will read plugin info c:/Users/DBY1/source/repos/usd_test_01/x64/Release/bin/usd Failed to open plugin info c:/Users/DBY1/source/repos/usd_test_01/x64/Release/bin/usd Will read plugin info c:/Users/DBY1/source/repos/usd_test_01/x64/Release/plugin/usd Failed to open plugin info c:/Users/DBY1/source/repos/usd_test_01/x64/Release/plugin/usd Did check plugin info paths in 0.003184 seconds 

@sunyab Is there a further TF_DEBUG setting to expand on this information? I think it's not enough to say "search for plug infos under...", "will check plugin info paths...". If the output said "searching for pluginfo.json as C:/Users/DBY1/exact/path/we/are/actually/looking/in/pluginfo.json", we would have a rocket ship for debugging this issue.

shdwdln commented 3 years ago

Is there a way in the original code to set the Plugin Search path? my PATH variable has: R:\DevQA\USD\dependencies_v20.11\dep_install\lib R:\DevQA\USD\dependencies_v20.11\dep_install\bin R:\DevQA\USD\USD_BUILD_v20.11\lib R:\DevQA\USD\USD_BUILD_v20.11\bin

echo %PATH% R:\DevQA\USD\dependencies_v20.11\dep_install\lib;R:\DevQA\USD\dependencies_v20.11\dep_install\bin;R:\DevQA\USD\USD_BUILD_v20.11\lib;R:\DevQA\USD\USD_BUILD_v20.11\bin;...

When I copy this file to my "USD_BUILD_DIR\bin" and run it with TD_DEBUG on then I get:

`pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_DEBUG_REGISTRY pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_DISCOVERY_TERSE pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_DISCOVERY_DETAILED pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_DLOPEN pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_DLCLOSE pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry TfRegistryManager: no functions to run for TfDebug TfRegistryManager: initialized TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\tf.dll TfRegistryManager: running 2 functions for TfDebug TfRegistryManager: running 2 functions for TfEnum pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_LOG_STACK_TRACE_ON_ERROR TfRegistryManager: running 6 functions for TfType pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_LOG_STACK_TRACE_ON_WARNING pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_ERROR_MARK_TRACKING pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_PRINT_ALL_POSTED_ERRORS_TO_STDERR pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_SCRIPT_MODULE_LOADER pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_TYPE_REGISTRY pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_ATTACH_DEBUGGER_ON_ERROR pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_ATTACH_DEBUGGER_ON_FATAL_ERROR pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: TF_ATTACH_DEBUGGER_ON_WARNING TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 0 functions for TfType TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\work.dll TfRegistryManager: running 2 functions for Tf_EnvSettingRegistry TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\trace.dll TfRegistryManager: running 0 functions for TfDebug TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 1 functions for TfType TfRegistryManager: running 0 functions for Tf_EnvSettingRegistry TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\plug.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: PLUG_LOAD pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: PLUG_REGISTRATION pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: PLUG_LOAD_IN_SECONDARY_THREAD pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: PLUG_INFO_SEARCH TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 4 functions for TfType TfRegistryManager: running 0 functions for Tf_EnvSettingRegistry TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\gf.dll TfRegistryManager: running 0 functions for TfDebug TfRegistryManager: running 2 functions for TfEnum TfRegistryManager: running 44 functions for TfType TfRegistryManager: running 0 functions for Tf_EnvSettingRegistry TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\vt.dll TfRegistryManager: running 0 functions for TfDebug TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 3 functions for TfType TfRegistryManager: running 1 functions for Tf_EnvSettingRegistry TfRegistryManager: running 1 functions for VtValue TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\ar.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: AR_RESOLVER_INIT TfRegistryManager: running 0 functions for TfEnum TfRegistryManager: running 3 functions for TfType TfRegistryManager: running 1 functions for Tf_EnvSettingRegistry TfRegistryManager: running 0 functions for VtValue TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\sdf.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: SDF_LAYER pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: SDF_CHANGES pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: SDF_ASSET pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: SDF_ASSET_TRACE_INVALID_CONTEXT pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: SDF_FILE_FORMAT TfRegistryManager: running 7 functions for TfEnum TfRegistryManager: running 28 functions for TfType TfRegistryManager: running 2 functions for Tf_EnvSettingRegistry TfRegistryManager: running 6 functions for VtValue TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\kind.dll TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\pcp.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: PCP_CHANGES pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: PCP_DEPENDENCIES pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: PCP_PRIM_INDEX pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: PCP_PRIM_INDEX_GRAPHS pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: PCP_NAMESPACE_EDIT TfRegistryManager: running 5 functions for TfEnum TfRegistryManager: running 0 functions for TfType TfRegistryManager: running 5 functions for Tf_EnvSettingRegistry TfRegistryManager: running 0 functions for VtValue TfRegistryManager: Library R:\DevQA\USD\USD_BUILD_v20.11\lib\usd.dll TfRegistryManager: running 1 functions for TfDebug pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_CHANGES pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_CLIPS pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_COMPOSITION pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_DATA_BD pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_DATA_BD_TRY pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_INSTANCING pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_PATH_RESOLUTION pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_PAYLOADS pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_PRIM_LIFETIMES pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_SCHEMA_REGISTRATION pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_STAGE_CACHE pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_STAGE_LIFETIMES pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_STAGE_OPEN pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_STAGE_INSTANTIATION_TIME pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_VALIDATE_VARIABILITY pxrInternal_v0_20pxrReserved::Tf_DebugSymbolRegistry::_Register: USD_VALUE_RESOLUTION TfRegistryManager: running 7 functions for TfEnum TfRegistryManager: running 13 functions for TfType TfRegistryManager: running 6 functions for Tf_EnvSettingRegistry TfRegistryManager: running 0 functions for VtValue PATH: R:\DevQA\USD\dependencies_v20.11\dep_install\lib;R:\DevQA\USD\dependencies_v20.11\dep_install\bin;R:\DevQA\USD\USD_BUILD_v20.11\lib;R:\DevQA\USD\USD_BUILD_v20.11\bin;R:\DevQA\USD\Python27_Pyside2\Library\bin;R:\DevQA\USD\dependencies_v20.11\dep_install\lib;R:\DevQA\USD\dependencies_v20.11\dep_install\bin;R:\DevQA\USD\USD_BUILD_v20.11\lib;R:\DevQA\USD\USD_BUILD_v20.11\bin;R:\DevQA\USD\Python27_Pyside2\Library\bin;C:\Users\DBY1\Desktop\BUILD_USD_OPTIONAL\CUDA\Toolkit\v11.0\bin;C:\Users\DBY1\Desktop\BUILD_USD_OPTIONAL\CUDA\Toolkit\v11.0\libnvvp;C:\Program Files\Dassault Systemes\3DEXCITE\DELTAGEN2018x\DirectMayaPlugin\alternate;C:\Program Files\Dassault Systemes\3DEXCITE\DELTAGEN2018x\DirectMayaPlugin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Python27;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\Nsight Compute 2020.1.2\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\LLVM\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Users\DBY1\AppData\Local\Microsoft\WindowsApps;;C:\Users\DBY1\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\DBY1.dotnet\tools;C:\Program Files\CMake\bin

Pre-Stage... TfRegistryManager: no functions to run for TfDiagnosticMgr SdfLayer::CreateNew('T:\4_Dillon\test.usda', '< >') Plug will search for plug infos under 'R:\DevQA\USD\USD_BUILD_v20.11\lib\' Will check plugin info paths Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/plugInfo.json Globbing plugin info path r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/*/resources/ Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/ar/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usd/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/hgiGL/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/hdSt/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/hdx/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/glf/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/hd/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/ndr/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdHydra/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdGeom/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/sdf/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/ar/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdImagingGL/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usd/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/hgiGL/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdImaging/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/hdSt/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdLux/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/hdx/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/glf/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdMedia/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdRender/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdLux/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/hd/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/ndr/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdHydra/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdRi/resources/plugInfo.json Registering shared library plugin 'ar' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/ar.dll'.

Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdGeom/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/sdf/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdImagingGL/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdImaging/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdRiImaging/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdMedia/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdRender/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdRi/resources/plugInfo.json Registering shared library plugin 'usd' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usd.dll'.

Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdShade/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdRiImaging/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdVol/resources/plugInfo.json Registering shared library plugin 'hgiGL' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/hgiGL.dll'.

Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdShade/resources/plugInfo.json Registering shared library plugin 'hdSt' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/hdSt.dll'.

Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdSkelImaging/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdVol/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdSkel/resources/plugInfo.json Registering shared library plugin 'hdx' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/hdx.dll'.

Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdSkelImaging/resources/plugInfo.json Registering shared library plugin 'glf' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/glf.dll'.

Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdUI/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdSkel/resources/plugInfo.json Registering shared library plugin 'usdLux' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdLux.dll'.

Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdVolImaging/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdUI/resources/plugInfo.json Registering shared library plugin 'hd' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/hd.dll'.

Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/lib/usd/usdVolImaging/resources/plugInfo.json Registering shared library plugin 'ndr' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/ndr.dll'.

Registering shared library plugin 'usdHydra' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdHydra.dll'.

Registering shared library plugin 'usdGeom' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdGeom.dll'.

Registering shared library plugin 'sdf' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/sdf.dll'.

Registering shared library plugin 'usdImagingGL' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdImagingGL.dll'.

Registering shared library plugin 'usdImaging' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdImaging.dll'.

Registering shared library plugin 'usdMedia' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdMedia.dll'.

Registering shared library plugin 'usdRender' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdRender.dll'.

Registering shared library plugin 'usdRi' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdRi.dll'.

Registering shared library plugin 'usdRiImaging' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdRiImaging.dll'.

Registering shared library plugin 'usdShade' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdShade.dll'.

Registering shared library plugin 'usdVol' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdVol.dll'.

Registering shared library plugin 'usdSkelImaging' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdSkelImaging.dll'.

Registering shared library plugin 'usdSkel' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdSkel.dll'.

Registering shared library plugin 'usdUI' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdUI.dll'.

Registering shared library plugin 'usdVolImaging' at 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usdVolImaging.dll'.

Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/plugInfo.json Globbing plugin info path r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/*/resources/ Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdShaders/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/./resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/glfOiio/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/hdPrmanLoader/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/rmanDiscovery/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/hdStorm/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/rmanArgsParser/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/rmanOslParser/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/sdrGlslfx/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/hdxPrman/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdAbc/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdDraco/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdAbc/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdShaders/resources/plugInfo.json Failed to open plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/./resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/glfOiio/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/hdPrmanLoader/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/rmanDiscovery/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/hdStorm/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/rmanArgsParser/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/rmanOslParser/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/sdrGlslfx/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/hdxPrman/resources/plugInfo.json Will read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdMtlx/resources/plugInfo.json Registering shared library plugin 'usdAbc' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdAbc.dll'.

Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdDraco/resources/plugInfo.json Did read plugin info r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdMtlx/resources/plugInfo.json Registering shared library plugin 'usdShaders' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdShaders.dll'.

Registering shared library plugin 'glfOiio' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/glfOiio.dll'.

Registering shared library plugin 'hdPrmanLoader' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/hdPrmanLoader.dll'.

Registering shared library plugin 'rmanDiscovery' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/rmanDiscovery.dll'.

Registering shared library plugin 'hdStorm' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/hdStorm.dll'.

Registering shared library plugin 'rmanArgsParser' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/rmanArgsParser.dll'.

Registering shared library plugin 'rmanOslParser' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/rmanOslParser.dll'.

Registering shared library plugin 'sdrGlslfx' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/sdrGlslfx.dll'.

Registering shared library plugin 'hdxPrman' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/hdxPrman.dll'.

Registering shared library plugin 'usdDraco' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdDraco.dll'.

Registering shared library plugin 'usdMtlx' at 'r:/DevQA/USD/USD_BUILD_v20.11/plugin/usd/usdMtlx.dll'.

Did check plugin info paths in 0.149732 seconds ArGetResolver(): Found asset resolver types: [ArDefaultResolver] ArGetResolver(): Using default asset resolver ArDefaultResolver ArGetResolver(): Found package resolver Usd_UsdzResolver ArGetResolver(): Using package resolver Usd_UsdzResolver for usdz from plugin usd Sdf_FileFormatRegistry::_RegisterFormatPlugins_RegisterFormatPlugins: Type 'SdfTextFileFormat' _RegisterFormatPlugins: plugin 'sdf' _RegisterFormatPlugins: formatId 'sdf' _RegisterFormatPlugins: Found target for type 'SdfTextFileFormat' from type 'SdfFileFormat' _RegisterFormatPlugins: target 'sdf' _RegisterFormatPlugins: extension 'sdf' _RegisterFormatPlugins: Type 'UsdUsdcFileFormat' _RegisterFormatPlugins: plugin 'usd' _RegisterFormatPlugins: formatId 'usdc' _RegisterFormatPlugins: Found target for type 'UsdUsdcFileFormat' from type 'UsdUsdcFileFormat' _RegisterFormatPlugins: target 'usd' _RegisterFormatPlugins: extension 'usdc' _RegisterFormatPlugins: Type 'UsdUsdzFileFormat' _RegisterFormatPlugins: plugin 'usd' _RegisterFormatPlugins: formatId 'usdz' _RegisterFormatPlugins: Found target for type 'UsdUsdzFileFormat' from type 'UsdUsdzFileFormat' _RegisterFormatPlugins: target 'usd' _RegisterFormatPlugins: extension 'usdz' _RegisterFormatPlugins: Type 'UsdUsdaFileFormat' _RegisterFormatPlugins: plugin 'usd' _RegisterFormatPlugins: formatId 'usda' _RegisterFormatPlugins: Found target for type 'UsdUsdaFileFormat' from type 'UsdUsdaFileFormat' _RegisterFormatPlugins: target 'usd' _RegisterFormatPlugins: extension 'usda' _RegisterFormatPlugins: Type 'UsdUsdFileFormat' _RegisterFormatPlugins: plugin 'usd' _RegisterFormatPlugins: formatId 'usd' _RegisterFormatPlugins: Found target for type 'UsdUsdFileFormat' from type 'UsdUsdFileFormat' _RegisterFormatPlugins: target 'usd' _RegisterFormatPlugins: extension 'usd' _RegisterFormatPlugins: Type 'UsdDracoFileFormat' _RegisterFormatPlugins: plugin 'usdDraco' _RegisterFormatPlugins: formatId 'drc' _RegisterFormatPlugins: Found target for type 'UsdDracoFileFormat' from type 'UsdDracoFileFormat' _RegisterFormatPlugins: target 'usd' _RegisterFormatPlugins: extension 'drc' _RegisterFormatPlugins: Type 'UsdAbcAlembicFileFormat' _RegisterFormatPlugins: plugin 'usdAbc' _RegisterFormatPlugins: formatId 'abc' _RegisterFormatPlugins: Found target for type 'UsdAbcAlembicFileFormat' from type 'UsdAbcAlembicFileFormat' _RegisterFormatPlugins: target 'usd' _RegisterFormatPlugins: extension 'abc' _RegisterFormatPlugins: Type 'UsdMtlxFileFormat' _RegisterFormatPlugins: plugin 'usdMtlx' _RegisterFormatPlugins: formatId 'mtlx' _RegisterFormatPlugins: Found target for type 'UsdMtlxFileFormat' from type 'UsdMtlxFileFormat' _RegisterFormatPlugins: target 'usd' _RegisterFormatPlugins: extension 'mtlx' Loading plugin 'usd'. TfDlopen: [opening] 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usd.dll' (flag=0)... TfDlopen: [opened] 'r:/DevQA/USD/USD_BUILD_v20.11/lib/usd.dll' (handle=00007FFC6F550000) Sdf_LayerRegistry::FindByIdentifier('t:/4_Dillon/test.usda') => Not Found Sdf_LayerRegistry::FindByRealPath('t:\4_Dillon\test.usda') => Not Found Sdf_LayerRegistry::Find('T:\4_Dillon\test.usda') => None SdfLayer::SdfLayer('T:\4_Dillon\test.usda', 'T:\4_Dillon\test.usda') Sdf_ComputeAssetInfoFromIdentifier('T:\4_Dillon\test.usda', 'T:\4_Dillon\test.usda', '') Sdf_ComputeAssetInfoFromIdentifier: assetInfo->identifier = 't:/4_Dillon/test.usda' assetInfo->realPath = 'T:\4_Dillon\test.usda' assetInfo->repoPath = '' assetInfo->assetName = '' assetInfo->version = '' Sdf_LayerRegistry::InsertOrUpdate(SdfLayer('t:/4_Dillon/test.usda', 'T:\4_Dillon\test.usda')) SdfLayer::SdfLayer('anon:%p:test-session.usda', '') Sdf_ComputeAssetInfoFromIdentifier('anon:0000020F648EEEC0:test-session.usda', '', '') Sdf_ComputeAssetInfoFromIdentifier: assetInfo->identifier = 'anon:0000020F648EEEC0:test-session.usda' assetInfo->realPath = '' assetInfo->repoPath = '' assetInfo->assetName = '' assetInfo->version = '' Sdf_LayerRegistry::InsertOrUpdate(SdfLayer('anon:0000020F648EEEC0:test-session.usda', '')) UsdStage::Open(rootLayer=@t:/4_Dillon/test.usda@, sessionLayer=@anon:0000020F648EEEC0:test-session.usda@, load=LoadAll) UsdStage::_InstantiateStage: Creating new UsdStage UsdStage::UsdStage(rootLayer=@t:/4_Dillon/test.usda@, sessionLayer=@anon:0000020F648EEEC0:test-session.usda@) Composing prim indexes: [ / ] Computing prim index for @test.usda@,@@</> Pcp_Dependencies: Adding deps for index </>: None Usd_PrimData::ctor<,/,t:/4_Dillon/test.usda> Children empty </> UsdStage::_InstantiateStage: Time elapsed (s): 0.012935 Post-Stage... Pre-OverridePrim... TfRegistryManager: running 8 functions for SdfSpecTypeRegistration Changes to layer t:/4_Dillon/test.usda: didAddInertPrim

HandleLayersDidChange received in @t:/4_Dillon/test.usda@ changed. Adding paths that use in layer @t:/4_Dillon/test.usda@: [ /SomeSphere ] PcpChanges::DidChange Caches: @t:/4_Dillon/test.usda@,@anon:0000020F648EEEC0:test-session.usda@ Changes to layer t:/4_Dillon/test.usda: didAddInertPrim Resync following in @t:/4_Dillon/test.usda@ do not recurse on prim descendants due to Sdf site @t:/4_Dillon/test.usda@ (not restricted to existing caches): depends on Resync end Did Change Significantly: /SomeSphere Composing prim indexes: [ /SomeSphere ] Computing prim index for @test.usda@,@@ Retrieved index for </> from cache Adjusted ancestral index for SomeSphere Evaluating references at @test.usda@,@@ Evaluating payload for @test.usda@,@@ Evaluating inherits at @test.usda@,@@ Evaluating specializes at @test.usda@,@@ Evaluating variant sets at @test.usda@,@@ Pcp_Dependencies: Adding deps for index : None Recomposing: /SomeSphere Usd_PrimData::ctor<,/SomeSphere,t:/4_Dillon/test.usda> Children all new </> Children empty Post-OverridePrim... Pre-Save... Post-Save... Hello World! UsdStage::~UsdStage(rootLayer=@t:/4_Dillon/test.usda@, sessionLayer=@anon:0000020F648EEEC0:test-session.usda@) Destroying </> SdfLayer::~SdfLayer('anon:0000020F648EEEC0:test-session.usda') Destroying Sdf_LayerRegistry::Erase(SdfLayer('anon:0000020F648EEEC0:test-session.usda', '')) => Success SdfLayer::~SdfLayer('t:/4_Dillon/test.usda') Sdf_LayerRegistry::Erase(SdfLayer('t:/4_Dillon/test.usda', 'T:\4_Dillon\test.usda')) => Success ~Usd_PrimData::dtor<,/,prim is invalid/expired>`

shdwdln commented 3 years ago

I figured it out: Because I did the xcopy with those DLLs at the beginning it forced

TfRegistryManager: no functions to run for TfDiagnosticMgr SdfLayer::CreateNew('T:\4_Dillon\test.usda', '< >') Plug will search for plug infos under 'C:\Users\DBY1\source\repos\usd_test_01\x64\Release\bin' Will check plugin info paths ...

instead of

Plug will search for plug infos under 'R:\DevQA\USD\USD_BUILD_v20.11\lib'

shdwdln commented 3 years ago

When I delete those DLLs from the directory, then everything works fine... Is there a way in the code to set up the ENV VARS search path will resolve correctly in the code itself? For example, if I were writing my own USD Plugin for some DCC then would I need to launch that DCC from cli with all those env vars set first or could I wrap all that stuff up in C++ code?

Like this: _putenv("PATH=R:\\DevQA\\USD\\USD_BUILD_v20.11\\bin");

meshula commented 3 years ago

@sunyab belay my question, TF_DEBUG is outputting what I would hope to see.