kcleal / gw

Genome browser and variant annotation
MIT License
282 stars 7 forks source link

Cannot initialize GLFW3 #46

Open pwh124 opened 3 months ago

pwh124 commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

When trying to run gw, GLFW3 cannot be initialized.

To Reproduce Steps to reproduce the behavior:

Installation

mamba create -n gw
mamba activate gw
mamba install -c bioconda -c conda-forge gw

Running

gw
# then entered 0 for ce11 genome

Expected behavior A clear and concise description of what you expected to happen.

gw runs

Screenshots If applicable, add screenshots to help explain your problem.

Screen Shot 2024-08-06 at 10 45 07 AM

System (please complete the following information):

Additional context Add any other context about the problem here.

Two other people in my lab can run this (installed from conda) on the same remote server

kcleal commented 3 months ago

Hi @pwh124, The conda recipie has just been updated, would you mind trying the install again just to double check if the latest change has resolved it? Also, Ive noticed that the order of conda channels can sometimes resolve install issues:

mamba install -c condo-forge -c bioconda gw

The previous conda recipe was not including the "core dependency tree" libraries, so for minimal installations (miniforge) this lead to missing libraries. I have updated the recipe, but I have not had a chance to test it yet.

Alternatively, if the conda package is not yet fixed, building from source should work:

mamba install -c conda-forge -c bioconda htslib glfw
git clone https://github.com/kcleal/gw && cd gw
make prep
CONDA_PREFIX=/pathTo/mamba make -j4
kcleal commented 3 months ago

Hi @pwh124, I believe v1.0.2 fixes this issue. Let me know if this is not the case and I will re-open!

pwh124 commented 3 months ago

Apologies for not checking up on this sooner.

I have reinstalled gw v1.0.2 on a fresh server in a fresh mamba environment.

I receive the same error:

GLFW Error: Failed to detect any supported platform
ERROR: could not initialize GLFW3
terminate called without an active exception
Aborted (core dumped)
kcleal commented 3 months ago

OK thanks @pwh124.

I will add some more debugging code to try and help resolve this. Thanks for your patience

pwh124 commented 3 months ago

No worries! Happy to try to help run stuff to see if it works.

kcleal commented 3 months ago

Hi @pwh124, v1.0.3 has been released might help debug the issue. Ive added some details in issue #38

Your issue is slightly different though and occurs when creating a window. GLFW3 library indicates that it cannot detect any supported platform. I suspect this is because the correct X11 lib cannot be found, or perhaps you may be running a Wayland session?

Happy to provide more details if needs be.