Skip to content
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

OpenGL version issue on Windows 10 #24

Open
tlambert03 opened this issue Oct 26, 2017 · 2 comments
Open

OpenGL version issue on Windows 10 #24

tlambert03 opened this issue Oct 26, 2017 · 2 comments

Comments

@tlambert03
Copy link
Contributor

just a thread to track issues related to OpenGL version conflicts on windows 10. Here is a common traceback seen on windows 10 when attempting to show the volume viewer. it seems that windows may have multiple versions of opengl, and is defaulting to an older version with an outdated API.

Traceback (most recent call last):
  File "C:\Users\CBMF\Anaconda3\envs\spimenv\Scripts\spimagine-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\Users\CBMF\Anaconda3\envs\spimenv\lib\site-packages\spimagine\bin\spimagine_gui.py", line 122, in main
    win = MainWidget()
  File "C:\Users\CBMF\Anaconda3\envs\spimenv\lib\site-packages\spimagine\gui\mainwidget.py", line 437, in __init__
    self.onColormapChanged(0)
  File "C:\Users\CBMF\Anaconda3\envs\spimenv\lib\site-packages\spimagine\gui\mainwidget.py", line 460, in onColormapChanged
    self.glWidget.set_colormap(self.volSettingsView.colormaps[index])
  File "C:\Users\CBMF\Anaconda3\envs\spimenv\lib\site-packages\spimagine\gui\glwidget.py", line 187, in set_colormap
    self._set_colormap_array(arr)
  File "C:\Users\CBMF\Anaconda3\envs\spimenv\lib\site-packages\spimagine\gui\glwidget.py", line 198, in _set_colormap_array
    self.texture_LUT = fillTexture2d(arr.reshape((1,) + arr.shape), self.texture_LUT)
  File "C:\Users\CBMF\Anaconda3\envs\spimenv\lib\site-packages\spimagine\gui\gui_utils.py", line 140, in fillTexture2d
    GL.glTexParameterf (GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE)
  File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src\errorchecker.c:1218)
OpenGL.error.GLError: GLError(
        err = 1280,
        description = b'invalid enumerant',
        baseOperation = glTexParameterf,
        cArguments = (
                GL_TEXTURE_2D,
                GL_TEXTURE_WRAP_S,
                GL_CLAMP_TO_EDGE,
        )
)
@felixwaeldchen
Copy link

Just a side note to this: I ran into this issue on Windows 10 when using Remote Desktop to access the machine running spimagine. Turns out that running it locally works just fine.

I'm really not an expert with OpenCL, but I guess that is something to keep in mind when trying to debug this error.

@tlambert03
Copy link
Contributor Author

interesting. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants