Open michsiu opened 10 months ago
Filed as internal issue #USD-8878
Would love to know what those minimum requirements are. Sigh.
I'm not sure if it helps, but I came across a similar error when trying to create my own "renderer." My error occurred due to my OpenGL context not being properly set up, but that should be taken care of for usdview. I was able to find that at least for my system (USD 23.08, Windows 10, PySide6, PyOpenGL 3.1.7), it was asking for OpenGL 13
I ran into the same issue and after some print debugging, I figured out that usdview was choosing OpenGL ES 3.2 when creating the GL context for some reason, even though OpenGL 4.6 is available.
I think it's a wayland/Qt issue, as setting the environment variable QT_QPA_PLATFORM=xcb
when launching usdview fixes it. usdview launches and displays the content correctly, but interacting with the viewport spams this error message in the console:
ERROR: Usdview encountered an error while rendering.Attempt to retrieve context when no valid context
But despite that error, everything seems to work.
EDIT: just noticed the original report was on Windows 10 and not Linux, my bad!
@dinelanthony Running across the very same issue, but on Linux / Arch with Wayland and not with usdview, but when building my own. Unfortunately, it is not quite clear why it happens as the error message is not very specific about it. Did you eventually figure it out?
glxinfo | grep "OpenGL"
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Xe Graphics (TGL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.6-arch1.2
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.6-arch1.2
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.0.6-arch1.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
I guess I run into the same issue, where it is choosing OpenGL ES 3.2 because of the mentioned Wayland/Qt issue. Setting the environment variable did not fix it however. Time to do some more debugging...
Description of Issue
I have installed the USD with the build script, and add the path and python to env variables I tried to run usdview but it turns out get errors
the error information is below
Steps to Reproduce
usdview C:\Users\download\3dtest\OpenUSD-release\pxr\usdImaging\bin\testusdview\testenv\testUsdviewAdditive\test.usda
System Information (OS, Hardware)
Window10 Platform
Package Versions
Python 3.8 PyOpenGL-3.1.7-py3-none-any