gallantlab / pycortex

Pycortex is a python-based toolkit for surface visualization of fMRI data
https://gallantlab.github.io/pycortex
BSD 2-Clause "Simplified" License
596 stars 139 forks source link

Viewer fails to load surface shader for cortex.Vertex object in Firefox #375

Open TomDLT opened 4 years ago

TomDLT commented 4 years ago

The following code fails to load the surface shader in Firefox (both 81.0 and 82.0a1).

import cortex
dataset = cortex.Vertex.empty(subject="S1", vmax=1)
cortex.webshow(dataset)

Interestingly, the following does work:

Console error: ```console THREE.WebGLProgram: Could not initialise shader. three.js:24578:12 WebGLProgram http://ato:48260/resources/js/three.js:24578 initMaterial http://ato:48260/resources/js/three.js:21968 setProgram http://ato:48260/resources/js/three.js:22041 renderBufferDirect http://ato:48260/resources/js/three.js:20304 renderObjects http://ato:48260/resources/js/three.js:21241 render http://ato:48260/resources/js/three.js:21101 drawView http://ato:48260/resources/js/mriview.js:76 draw http://ato:48260/resources/js/axes3d.js:133 _schedule http://ato:48260/resources/js/axes3d.js:5 ``` ![screenshot](https://user-images.githubusercontent.com/11065596/94883591-e35dba80-041f-11eb-8a70-4331a6375d87.png)
cchen23 commented 2 years ago

Hi @TomDLT! Do you happen to have ideas about what was causing the surface shader to fail to load for cortex.Vertex objects in firefox?

TomDLT commented 2 years ago

No idea.