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

error: XDG_RUNTIME_DIR is invalid or not set in the environment #62

Open
Syutenjyo opened this issue Oct 22, 2024 · 1 comment
Open

Comments

@Syutenjyo
Copy link

Describe the bug
When running the command gw GRCh38.fa, the following error messages are displayed: "error: XDG_RUNTIME_DIR is invalid or not set in the environment. GLFW Error: GLX: No GLXFBConfigs returned. GLFW Error: GLX: Failed to find a suitable GLXFBConfig. ERROR: glfwCreateWindow failed".

To Reproduce
(GW) [test@server test]$ gw GRCh38.fa

█▀▀ █ █ █
█▄█ ▀▄▀▄▀
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
GLFW Error: GLX: No GLXFBConfigs returned
GLFW Error: GLX: Failed to find a suitable GLXFBConfig
ERROR: glfwCreateWindow failed

System (please complete the following information):

  • GW version [1.1.0
  • OS: CentOS
@kcleal
Copy link
Owner

kcleal commented Oct 22, 2024

Hi @Syutenjyo,

How did you install gw, was this a conda install?

Currently the conda binary doesn't work with wayland sessions, so perhaps this is the cause. You can check if you are running wayland by typing echo $XDG_SESSION_TYPE. If you are using wayland you will have to build from source, or install using linuxbrew.

I think the runtime dir can be set using:

export XDG_RUNTIME_DIR=/run/user/$(id -u)

To debug the graphics config issue, you can try running:

glxinfo | grep "OpenGL"

This will tell you if OpenGL is available. If OpenGL is not working you will need to install some libraries, these might help:

sudo yum groupinstall "Development Tools"
sudo yum install mesa-libGL mesa-libGL-devel
sudo yum install glx-utils
sudo yum install libXrandr-devel
sudo yum install libXinerama-devel
sudo yum install libXcursor-devel
sudo yum install libXi-devel 

Running gw in debug mode can also be helpful, if you share the output from GW_DEBUG=1 gw hg38. 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