spimagine icon indicating copy to clipboard operation
spimagine copied to clipboard

OpenGL version issue on Windows 10

Open tlambert03 opened this issue 8 years ago • 2 comments

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,
        )
)

tlambert03 avatar Oct 26 '17 20:10 tlambert03

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.

felixwaeldchen avatar Jul 30 '18 12:07 felixwaeldchen

interesting. thanks!

tlambert03 avatar Jul 30 '18 12:07 tlambert03