phy icon indicating copy to clipboard operation
phy copied to clipboard

GLError - clusterview OK but waveforms or other views are not displayed

Open YuNangoChen opened this issue 3 years ago • 13 comments

Hi phy team,

I was going to do the soring with phy on my ''klustaed'' spikes but found whenever I chose the clusters, all the ''view'' windows are blank (see attached picture). Therefore I reinstalled the whole environment and the problem still occurred. I am using a computer with AMD graphic card for this. I also checked the phy.log, and found this error looping: [90m15:57:37.855 [D] base:702 Exception in paintGL: GLError( err = 1282, description = b'invalid operation', baseOperation = glClearColor, cArguments = (0, 0, 0, 10) )[0m [90m15:57:37.855 [D] base:675 Exception in initializetGL: GLError( err = 1282, description = b'invalid operation', baseOperation = glClearColor, cArguments = (0, 0, 0, 0)

Could you have a look and tell me what actions should be taken? Thanks!

YuNangoChen avatar Sep 30 '21 14:09 YuNangoChen

Screenshot 2021-09-30 164345

YuNangoChen avatar Sep 30 '21 14:09 YuNangoChen

Hello @YuNangoChen and Phy Team,

I do have the same error and the same layout issue. I have been successfully installing and using Phy2 for 2 years until last spring but it's not working anymore now. My diagnosis is that between the spring and now, my MacOs was updated from Mojave to BigSur and that there might be OpenGL incompatibilities? Is the GLSL version (1.20?) called by Phy a version that is incompatible with the OpenGL version of MacOS BigSur (which would be 4.1 from what I read on the web)?

Please @rossant can you confirm whether Phy2 is compatible or not with BigSur? Is my only chance to keep using Phy2 to get a Linux box? Thank you for your help! I'm stuck with half of my data sorted with Phy2 and the rest of it waiting to be sorted :-\

The error Phy throws is:

base:675             Exception in initializetGL: GLError(
	err = 1280,
	description = b'invalid enumerant',
	baseOperation = glEnable,
	cArguments = (GL_POINT_SPRITE,)
)
Error in Vertex shader 558 (<string>)
 -> '' :  version '120' is not supported

julieelie avatar Oct 22 '21 06:10 julieelie

Note that I also tried to revert to previous versions of pyqt5 and pyqtwebengine. Specifically I tried versions 5.12 following the solution found for issue #1113 which I thought was related in the first place. Reverting to these earlier versions indeed rescued all the views BUT clusterView and similarity view.... Not sure if that helps in understanding what's going on!

julieelie avatar Oct 22 '21 06:10 julieelie

Hello, we are experiecing the exact same issue with physiology and Mac with macOS Big Sur. The cluster view and similarity view are blank. You can click on them with the mouse and "blindly" change cluster, but obviously it is an issue. Any suggestion?

vincisLab avatar Nov 17 '21 19:11 vincisLab

I have the same issue, getting either everything except ClusterView and SimilarityView, OR only those two views.. Also on a Mac, OS Big Sur 11.6 (Graphics AMD Radeon Pro 5500M 8 GB and Intel UHD Graphics 630 1536 MB). I'm actually running phy on an Ubuntu server and using x2go and XQuartz, but the fact that others can run phy from this same server makes me think this is a local issue related to my Mac.

Has anyone made any progress solving this issue?

Here is the terminal output I get (currently only getting the ClusterView and SimilarityView): (phy) john@alz1:~/spikesorting/Kilosort_2020-08-03_140330$ phy template-gui params.py 09:28:55.189 [W] model:591 Unreferenced clusters found in templates (generally not a problem) 09:28:55.231 [W] model:613 Unreferenced clusters found in spike_clusters (generally not a problem) 09:28:55.376 [W] model:655 Skipping spike waveforms that do not exist, they will be extracted on the fly from the raw data as needed. qt.qpa.xcb: X server does not support XInput 2 qt.qpa.xcb: QXcbConnection: XCB error: 1 (BadRequest), sequence: 169, resource id: 213, major code: 130 (Unknown), minor code: 47

In phy.log I get similar output as described above, lots of "Exception in PaintGL: Attempt to retrieve context when no valid context".

jjtukker avatar Jan 04 '22 09:01 jjtukker

I still do not have a solution for this problem, but I would just like to report that updating the OS to Monterey (12.1) did NOT solve this problem. However, when I run phy on an Ubuntu server and use VNC viewer to connect with my Mac, it works! I am able to see all the windows. So to summarize:

  • when I run phy on an Ubuntu server and connect to Mac via X2go, I see ONLY the ClusterView and SimilarityView.
  • when I run phy locally on my Mac, I see all windows EXCEPT the ClusterView and SimilarityView.
  • when I run phy on an Ubuntu server and connect to Mac via VNC Viewer, I see all windows and Phy works (except for an annoying inability to rescale the overall phy window below a minimum size that is still larger than my screen, but that is a separate issue I can live with for now).

I hope this helps someone figure out what is going on! Would be nice to be able to run phy locally on a Mac, particularly for those who do not have the option to use another machine.

jjtukker avatar Jan 06 '22 07:01 jjtukker

Hi everyone, I'm facing the same issue! Have you reached any solution? @jjtukker

farazmoradi avatar Feb 15 '22 22:02 farazmoradi

I am having the exact same issue on my MacBook

JiilKim avatar Feb 17 '22 03:02 JiilKim

I am having the same issue on my MacBook running macOS 12.2.1 (Monterey)

jlassaortiz avatar Feb 17 '22 19:02 jlassaortiz

I have the same issue on macOS Big Sur. Any solution yet?

breadnbeer avatar Mar 17 '22 20:03 breadnbeer

I just posted a potential solution (it worked for me, MacBook Pro running MacOS 12.2.1 (Monterey)) here: #1113

I have copied the response below. Hope this helps!!

Short Version I upgraded to python 3.9, installed phy as usual, then manually uninstalled/reinstalled pyqt and pyqtengine as per #1122 .

Details/Code

# create env
conda create -n spikeSorting python=3.9

# install phy
pip install phy --pre --upgrade

# uninstall/reinstall relevant libraries
pip uninstall pyqt5
pip uninstall pyqtwebengine
pip install PyQtWebEngine==5.15
pip install PyQt5==5.15

shiralupkin avatar Mar 29 '22 15:03 shiralupkin

I just posted a potential solution (it worked for me, MacBook Pro running MacOS 12.2.1 (Monterey)) here: #1113

I have copied the response below. Hope this helps!!

Short Version I upgraded to python 3.9, installed phy as usual, then manually uninstalled/reinstalled pyqt and pyqtengine as per #1122 .

Details/Code

# create env
conda create -n spikeSorting python=3.9

# install phy
pip install phy --pre --upgrade

# uninstall/reinstall relevant libraries
pip uninstall pyqt5
pip uninstall pyqtwebengine
pip install PyQtWebEngine==5.15
pip install PyQt5==5.15

I used annaconda environment for phy and this solution solved my blank clusterview/similarityview issue!

wanghgogo avatar Jul 25 '22 15:07 wanghgogo

I just posted a potential solution (it worked for me, MacBook Pro running MacOS 12.2.1 (Monterey)) here: #1113

I have copied the response below. Hope this helps!!

Short Version I upgraded to python 3.9, installed phy as usual, then manually uninstalled/reinstalled pyqt and pyqtengine as per #1122 .

Details/Code

# create env
conda create -n spikeSorting python=3.9

# install phy
pip install phy --pre --upgrade

# uninstall/reinstall relevant libraries
pip uninstall pyqt5
pip uninstall pyqtwebengine
pip install PyQtWebEngine==5.15
pip install PyQt5==5.15

I use a MacbookPro MacOS 13.0. This method make everything well!

Thank your so much for sharing this.

zjm199502 avatar Nov 01 '22 10:11 zjm199502