oxwhirl / smac

SMAC: The StarCraft Multi-Agent Challenge
MIT License
1.04k stars 227 forks source link

EGL display not working, though EGL library is successfully loaded #25

Closed Mohan-Zhang-u closed 3 years ago

Mohan-Zhang-u commented 4 years ago

sorry, I think I'm having a similar problem to issue #3 on Ubuntu 18.04 as well. "python -m pysc2.bin.agent --map Simple64" works fine with GUI but "python -m smac.examples.random_agents" generates similar error message:

python -m smac.examples.random_agents

Version: B75689 (SC2.4.10)
Build: Aug 12 2019 17:16:57
Command Line: '"/home/user1/StarCraftII/Versions/Base75689/SC2_x64" -listen 127.0.0.1 -port 19757 -dataDir /home/user1/StarCraftII/ -tempDir /tmp/sc-pkx0j8ie/ -eglpath libEGL.so'
Starting up...
Startup Phase 1 complete
Startup Phase 2 complete
Attempting to initialize EGL from file libEGL.so ...
Successfully loaded EGL library!
Failed to create and initialize a valid EGL display! Devices tried: 0

CreateInitializedEGLDisplay Failed.
Failed to initialize GL framework
Creating stub renderer...
Listening on: 127.0.0.1:19757
Startup Phase 3 complete. Ready for commands.
ConnectHandler: Request from 127.0.0.1:57120 accepted
ReadyHandler: 127.0.0.1:57120 ready
Requesting to join a single player game
Configuring interface options
Configure: raw interface enabled
Configure: feature layer interface disabled
Configure: score interface disabled
Configure: render interface disabled
Launching next game.
Next launch phase started: 2
Next launch phase started: 3
Next launch phase started: 4
Next launch phase started: 5
Next launch phase started: 6
Next launch phase started: 7
Next launch phase started: 8
Game has started.
Successfully loaded stable ids: /home/user1/StarCraftII/stableid.json
Sending ResponseJoinGame
Total reward in episode 0 = 2.0625
Total reward in episode 1 = 0.9375
Total reward in episode 2 = 1.5
Total reward in episode 3 = 2.25
Total reward in episode 4 = 1.125
Total reward in episode 5 = 1.875
Total reward in episode 6 = 2.4375
Total reward in episode 7 = 1.5
Total reward in episode 8 = 2.25
Total reward in episode 9 = 1.875
RequestQuit command received.
Closing Application...
DataHandler: unable to parse websocket frame.
CloseHandler: 127.0.0.1:57120 disconnected
ResponseThread: No connection, dropping the response.

Thanks again for any possible help in this issue!

zchzch0320 commented 1 year ago

i meet the same problem.Have you fixed it?

Mohan-Zhang-u commented 1 year ago

sorry, cannot really remember, as it was 3 years ago...