-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shader compile error on MacOS #10
Comments
@greatestape thank you for sharing the details of the error. |
@greatestape so... we have just pushed some updates! |
Thank you for replying so quickly! I pulled the latest master and unfortunately I'm still getting errors. It seems like even 150 isn't supported...
I don't know if this is anything useful, but I found some stuff online saying that MacOS does support more recent opengl versions, but you need to switch to a different "profile". I don't know what any of this stuff means. I know Python, but nothing about OpenGL or 3D graphics! Stack Overflow explaining the profile stuff: https://stackoverflow.com/a/20932820 I'd be happy to be your tester so you can validate your Mac-compatibility PRs before you merge, if that helps. PS- I found another SO post that seems to show how to configure the profile and version: https://stackoverflow.com/questions/44277975/pyqt5-choose-the-latest-opengl-version-available I applied these changes: class GLWidget(QGLWidget):
def __init__(self, parent=None):
+ fmt = QGLFormat()
+ fmt.setVersion(3, 3)
+ fmt.setProfile(QGLFormat.CoreProfile)
+ fmt.setSampleBuffers(True)
+
self.parent = parent
- QGLWidget.__init__(self, parent)
+ QGLWidget.__init__(self, fmt, parent)
self.setMinimumSize(800, 800) but it just caused different errors: Traceback (most recent call last):
File "/Users/sam/src/github.com/tsugite/setup/_GLWidget.py", line 34, in initializeGL
self.type = Types(self,fs=[[[2,0]],[[2,1]]],sax=sax,dim=dim,ang=ang, td=[dx,dy,dz], fabtol=tol, fabdia=dia, fspe=spe, fspi=spi, fabext=ext, align_ax=aax, incremental=inc, finterp=fin)
File "/Users/sam/src/github.com/tsugite/setup/Types.py", line 938, in __init__
self.vertices = self.create_and_buffer_vertices(milling_path=False) # create and buffer vertices
File "/Users/sam/src/github.com/tsugite/setup/Types.py", line 984, in create_and_buffer_vertices
self.buff.buffer_vertices()
File "/Users/sam/src/github.com/tsugite/setup/Buffer.py", line 39, in buffer_vertices
glEnableVertexAttribArray(0)
File "/Users/sam/src/github.com/tsugite/env/lib/python3.9/site-packages/OpenGL/platform/baseplatform.py", line 415, in __call__
return self( *args, **named )
File "/Users/sam/src/github.com/tsugite/env/lib/python3.9/site-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glEnableVertexAttribArray,
cArguments = (0,)
) |
Alright, we will look into it and get back to you. Thank you for volunteering to be our test user :) |
Same issue here. Is anyone aware of a workaround to run on Mac using Wine for example? |
The Windows-download version runs on a Mac VMWare Fusion instance of Windows 10. Not quite the same as Wine, but... |
When I try to run the app on my Mac I get a shader error.
Environment:
Steps to reproduce:
python3 -m vent env
source env/bin/activate
pip install requirements.txt
cd setup
python Tsugite_app.py
Actual behaviour
The inner compile error is:
The text was updated successfully, but these errors were encountered: