mihahauke / VDAIC2017

:godmode: Helpful files for Visual Doom AI Competition 2017 :godmode:
http://vizdoom.cs.put.edu.pl/competition-cig-2017
MIT License
44 stars 10 forks source link

libGL error #6

Closed chendagui16 closed 7 years ago

chendagui16 commented 7 years ago

I have followed the steps to build the host image, random image, and no_host image. When I set window_visible : false, everything is OK but display the the warning log:

./run.sh no_host
 Gtk-Message: Failed to load module "canberra-gtk-module"
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"

Meanwhile, when I set window_visible: true, something fails:

./run.sh no_host 
Gtk-Message: Failed to load module "canberra-gtk-module"
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

what's wrong with the GUI in vizdoom, and how can I fix this problem?

chendagui16 commented 7 years ago

I have tried to modify the script run.sh as follow, but it didn't work.

$DOCKER_CMD run --net=host -ti --rm --name ${container_name} \
    -e LD_LIBRARY_PATH=/usr/local/nvidia-driver/nvidia_driver/375.51/lib64 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    --env="DISPLAY" --privileged \
    ${image_tag} "${@:2}"
chendagui16 commented 7 years ago

And the uid and gid in my machine is

id
uid=1000(dagui) gid=1000(dagui) groups=1000(dagui),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare),999(docker)
chendagui16 commented 7 years ago

I found when I restart my machine, it does well! Amazing!