PixarAnimationStudios / OpenUSD

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

hdEmbree issues on dev branch (black screen for testHdEmbree; one unit test fails) #3022

Open optseb opened 1 month ago

optseb commented 1 month ago

Description of Issue

A black screen window appears when running (from build/): ./pxr/imaging/plugin/hdEmbree/testHdEmbree. Expected: Some graphical output rendered by embree.

Also, if I run ./pxr/imaging/plugin/hdEmbree/testHdEmbree --offscreen then the program memory leaks up to the limit of the installed RAM on my laptop.

Also, failure of the Embree unit test:

1210 - testUsdImagingGLAovVisualization_Embree_normal (Failed)

(This unit test segfaults)

(Also, the following tests FAILED, but these may not be related to embree: 1187 - testUsdImagingGLGeomSubsets_Medium (Failed) 1192 - testUsdImagingGLGeomSubsets_Medium_SceneIndex (Failed))

Steps to Reproduce

  1. build OpenUSD on Ubuntu Linux machine from the dev branch at commit 8d56cde3d . I’ve switched on the building of the embree plugin. I’ve first compiled the various necessary dependencies, including embree (at version 3.13.5), OpenImageIO and oneTBB (at version tbb2020Update3).
  2. Run make test and see Test 1210 fail.
  3. Run ./pxr/imaging/plugin/hdEmbree/testHdEmbree and see black screen window appear.

System Information (OS, Hardware)

Intel Core i7 CPU and RTX3060 GPU (Dell G15 laptop). Ubuntu 23.10, gcc 13.2.0, NVidia driver 535.161.07 installed and active.

Package Versions

compiled locally: oneTBB, embree, OpenImageIO, Imath, openexr, libjpeg-turbo, OpenSubdiv, ptex. Package managed versions of libtiff-dev, libjpeg-dev, libxxf86vm-dev installed. boost 1.81 locally installed (not packaged managed).

Build Flags

Default build flags - cmake call to usd was:

cmake .. -DPYTHON_EXECUTABLE=/home/seb/src/usd/usd_pyenv/bin/python3.11 -DPXR_BUILD_EMBREE_PLUGIN=TRUE

jesschimein commented 1 month ago

Filed as internal issue #USD-9498

optseb commented 1 month ago

Please let me know if you need more specific information about library versions etc.

optseb commented 1 month ago

I have the same problem on a second machine which runs Ubuntu 23.04. I have also demonstrated the black testHdEmbree window from the release branch of OpenUSD (commit f941bce34 / tag v24.03)

If anyone could hint at where I should find the 2D image data that should be displayed in the Window, that would help me debug this.