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

python: /builds/florianrhiem/pyGLFW/glfw-3.3.7/src/posix_thread.c:64: _glfwPlatformGetTls: Assertion `tls->posix.allocated == 1' failed. #15

Open
DexiongYung opened this issue May 14, 2022 · 2 comments

Comments

@DexiongYung
Copy link

DexiongYung commented May 14, 2022

Getting this error

python: /builds/florianrhiem/pyGLFW/glfw-3.3.7/src/posix_thread.c:64: _glfwPlatformGetTls: Assertion `tls->posix.allocated == 1' failed.

when it gets to the env.render() function. Not sure what to do.

import dmc2gym

env = dmc2gym.make(domain_name='point_mass', task_name='easy', seed=1)

done = False
obs = env.reset()
while not done:
  action = env.action_space.sample()
  obs, reward, done, info = env.step(action)
  rgb_obs = env.render(mode='rgb_array')
@neuronphysics
Copy link

I get the same error running my script on a remote cluster:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.11.2 requires torch==1.10.1, but you have torch 1.10.2 which is incompatible.
python: /builds/florianrhiem/pyGLFW/glfw-3.3.7/src/posix_thread.c:64: _glfwPlatformGetTls: Assertion `tls->posix.allocated == 1' failed.
/var/spool/slurmd/job7624056/slurm_script: line 32:  1457 Aborted                 (core dumped) python main.py --id cheetah-run-seed-1 --seed 1 --env cheetah-run --use-regular-vae

Is there anyway to fix this error?

@longfeizhang617
Copy link

I have met the same issue, while I have tried what you have said on another site :

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so
xvfb-run -a -s "-screen 0 1400x900x24" bash

It seems not to work. I wonder whether you met the proplem on the remote server, which does not install the GLEW, because now I need to run the code on the server, not on the local , and I don't have the right to install GLEW. So , please help me to fix the issue, 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

3 participants