cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
304 stars 155 forks source link

OpenGL core dumped on launching phy on Ubuntu 23.04 #1209

Closed larsrollik closed 2 months ago

larsrollik commented 1 year ago

Same issue as #1196, but for Ubuntu 23.04.

Install

conda create -n phy python=3.9 -y
conda activate phy
pip install phy --pre --upgrade

Error

$ phy template-gui params.py

15:07:10.569 [W] model:603            Unreferenced clusters found in templates (generally not a problem)
15:07:10.764 [W] model:625            Unreferenced clusters found in spike_clusters (generally not a problem)
15:07:10.875 [W] model:667            Skipping spike waveforms that do not exist, they will be extracted on the fly from the raw data as needed.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
QGLXContext: Failed to create dummy context
15:07:12.359 [W] gui:671              Could not create view FeatureView.
15:07:12.393 [W] gui:671              Could not create view TraceView.
15:07:12.450 [W] gui:671              Could not create view TemplateFeatureView.
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
Aborted (core dumped)

$
zm711 commented 11 months ago

@larsrollik

Not sure if it matters any more for you, but there are new installation instructions to install from source rather than pypi, which has helped others to ensure all packages are coordinated.

Easiest thing would be to download the environment.yaml and run:

conda env create -f environment.yml
larsrollik commented 2 months ago

Thank you, @zm711 ! I ended up containerizing it to avoid these spurious issues.