-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
MacOs - GL errors #1257
Comments
Thanks for reporting this issue Laurent. Looks like it is trying to compile 1.40 GLSL shaders (compatible with OpenGL 3) on MacOS. But, that should not be the case since for MacOS we should be using a GL compatibility profile (OpenGL 2) which should end up compiling the 1.2 GLSL fallback shaders. Unfortunately, we are not running into this issue on our end. One thing you can try is to verify the version of OpenGL being using in stageView.py by printing _glMajorVersion before shader compilation. Another idea could be to see if the same happens when you run the Dev branch instead of the Master branch. Finally, you can try to check what are your "Core" / "Compatibility" profile GL versions, either by writing a bit of code or just using something like the "OpenGL Extensions Viewer". Thanks Laurent. |
Filed as internal issue #USD-6205. |
Just adding own info to the ticket, in case it might be of some use. Added printing of _glMajorVersion:
Hardware model: Apple MacBook Pro 15-inch 2018
Graphic Adapter & OpenGL Versions
EDIT: I figure the following: The the naive conversion ends up converting the binary value of "2" to 50, rather than integer 2. On my system I simply replaced with:
|
I wonder if @LaurentGarcia was running into the same parsing issue.. @LaurentGarcia do you mind trying the proposed fix from @nmontmarquette? |
Also adding own info to the ticket if helpful:
System Information (OS, Hardware)Catalina 15.6, Macbook Pro Package VersionUSD 20.05 |
Hi @amotarzi, do you get the same issue listed above if you update to latest release 20.08? Also, do you mind trying the proposed fix from @nmontmarquette? Unfortunately, we can't reproduce the issue listed here on our end yet, but it would be helpful to see if your issue is the same as the one described above. |
I am back from my long holidays break!. In my case it's not working, in fact I believe is because I am using the latest version of MacOS. Apple has definitively discontinued/deprecated completely OpenGL and seems like python libraries doesn't support the newest OS. I am trying to make an easy example in Python importing basic GL stuff and I am getting: Traceback (most recent call last): Probably the best idea for the future is make a transition to Metal :-) |
@LaurentGarcia I have no problem using OpenGL 3.x core profile on the latest MAC OS 11.1 (both Intel and M1 arm). Maybe they finally dropped "compatibility" mode? |
@LaurentGarcia The issue you're facing with PyOpenGL is due to Big Sur changes in how system libraries are stored. OpenGL is still available, but the mechanism being used to load it fr PyOpenGL is incompatible. See #1372 (comment) for the fix. Python 3.9 has the necessary changes applied to work out of the box. |
We believe this is fixed in v22.05. An earlier fix for #957 addressed some aspects of this in v21.11 But the good news for v22.05 is that the Storm renderer in usdview will now use Metal on systems like yours. i.e. if you are running Catalina, Big Sur, or Monterey on a system with a discrete GPU you will have Storm for Metal in usdview. |
Closing this out per @davidgyu's comments. Thanks! |
Description of Issue
Everytime that I launch the usdview in MacOs I got in the console multiple messages with same content:
b"ERROR: 0:1: '' : version '140' is not supported\n"
b"ERROR: 0:1: '' : version '140' is not supported\n"
b'ERROR: One or more attached shaders not successfully compiled\n'
Traceback (most recent call last):
File "/opt/local/USD/lib/python/pxr/Usdviewq/stageView.py", line 1749, in paintGL
self.DrawAxis(viewProjectionMatrix)
File "/opt/local/USD/lib/python/pxr/Usdviewq/stageView.py", line 1074, in DrawAxis
glslProgram = self.GetSimpleGLSLProgram()
File "/opt/local/USD/lib/python/pxr/Usdviewq/stageView.py", line 1066, in GetSimpleGLSLProgram
["mvpMatrix", "color"])
File "/opt/local/USD/lib/python/pxr/Usdviewq/stageView.py", line 117, in init
GL.glDeleteShader(vertexShader)
File "/usr/local/lib/python3.7/site-packages/OpenGL/error.py", line 234, in glCheckError
baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
err = 1281,
description = b'invalid value',
baseOperation = glDeleteShader,
cArguments = (2,)
)
Steps to Reproduce
System Information (OS, Hardware)
Catalina , 8 Cores i9 - AMD 5500m
Package Versions
Last USD stable version
Build Flags
Installed with the python script
The text was updated successfully, but these errors were encountered: