gym-duckietown icon indicating copy to clipboard operation
gym-duckietown copied to clipboard

libGL error: No matching fbConfigs or visuals found when testing train_reinforcement.py

Open zhaoworking opened this issue 4 years ago • 1 comments

`(gymlab) zhao@ubuntu:~/gym-duckietown-master/learning$ python -m reinforcement.pytorch.train_reinforcement [2020-03-21 19:23:07,121] gym-duckietown 2019.0.0

[2020-03-21 19:23:07,122] Registering gym environment id: Duckietown-small_loop_cw-v0 [2020-03-21 19:23:07,122] Registering gym environment id: Duckietown-udem1-v0 [2020-03-21 19:23:07,122] Registering gym environment id: Duckietown-loop_empty-v0 [2020-03-21 19:23:07,122] Registering gym environment id: Duckietown-loop_obstacles-v0 [2020-03-21 19:23:07,122] Registering gym environment id: Duckietown-straight_road-v0 [2020-03-21 19:23:07,122] Registering gym environment id: Duckietown-4way-v0 [2020-03-21 19:23:07,122] Registering gym environment id: Duckietown-loop_dyn_duckiebots-v0 [2020-03-21 19:23:07,122] Registering gym environment id: Duckietown-small_loop-v0 [2020-03-21 19:23:07,122] Registering gym environment id: Duckietown-loop_pedestrians-v0 [2020-03-21 19:23:07,123] Registering gym environment id: Duckietown-zigzag_dists-v0 libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast [xcb] Too much data requested from _XRead [xcb] This is most likely caused by a broken X extension library [xcb] Aborting, sorry about that. python: ../../src/xcb_io.c:736: _XRead: Assertion !xcb_xlib_too_much_data_requested' failed. Aborted (core dumped) When I was testing the train_reinforcement.py through the Xshell which is linked to a remoted linux , I got this problem .It seems like a libGL problem. Can anyone help me to fix that ?

zhaoworking avatar Mar 21 '20 11:03 zhaoworking

When i used the command (gymlab) zhao@ubuntu:~/gym-duckietown-master/learning$ LIBGL_DEBUG=verbose glxinfo . I found these information as follows: name of display: localhost:12.0 libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so libGL: Can't open configuration file /home/zhao/.drirc: No such file or directory. libGL: Can't open configuration file /home/zhao/.drirc: No such file or directory. libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast display: localhost:12 screen: 0`

zhaoworking avatar Mar 21 '20 11:03 zhaoworking