-
Notifications
You must be signed in to change notification settings - Fork 43
Description
expected behaviour
actual behaviour
Game has crashed!
steps to reproduce
$ sudo scbw.play --bots "PurpleWave" --human --log_level=DEBUG --log_verbose
2019-10-21 15:13:32 DEBUG docker.utils.config[12097] Trying paths: ['/home/yangjq/.docker/config.json', '/home/yangjq/.dockercfg']
2019-10-21 15:13:32 DEBUG docker.utils.config[12097] No config file found
2019-10-21 15:13:32 DEBUG docker.utils.config[12097] Trying paths: ['/home/yangjq/.docker/config.json', '/home/yangjq/.dockercfg']
2019-10-21 15:13:32 DEBUG docker.utils.config[12097] No config file found
2019-10-21 15:13:32 DEBUG scbw.bot_storage[12097] checking bot in /home/yangjq/.scbw/bots/PurpleWave
2019-10-21 15:13:32 DEBUG scbw.bot_storage[12097] found bot in /home/yangjq/.scbw/bots/PurpleWave
2019-10-21 15:13:32 DEBUG scbw.docker_utils[12097] checking docker-machine presence
2019-10-21 15:13:32 DEBUG scbw.docker_utils[12097] using docker machine version version 0.15.0, build b48dc28
Error: No machine name(s) specified and no "default" machine exists
2019-10-21 15:13:32 DEBUG scbw.docker_utils[12097] docker machine not present
2019-10-21 15:13:32 DEBUG scbw.game[12097] Using vnc host 'localhost'
2019-10-21 15:13:32 DEBUG scbw.docker_utils[12097]
docker_image=starcraft:game-1.0.4
command=['/app/play_human.sh', '--headful']
name=GAME_2F6D6640_0_human
detach=True
environment={ 'CAPTURE_MOUSE_MOVEMENT': '0',
'DROP_PLAYERS': '0',
'EXIT_CODE_REALTIME_OUTED': 2,
'GAME_NAME': 'GAME_2F6D6640',
'GAME_TYPE': 'FREE_FOR_ALL',
'HEADFUL_AUTO_LAUNCH': '0',
'HIDE_NAMES': '0',
'JAVA_DEBUG': '0',
'MAP_NAME': '/app/sc/maps/sscai/(2)Benzene.scx',
'NTH_PLAYER': 0,
'NUM_PLAYERS': 2,
'PLAYER_NAME': 'human',
'PLAYER_RACE': 'R',
'SPEED_OVERRIDE': 0,
'TM_ALLOW_USER_INPUT': '1',
'TM_LOG_FRAMETIMES': '../logs/frames.csv',
'TM_LOG_RESULTS': '../logs/scores.json',
'TM_SPEED_OVERRIDE': 0}
privileged=True
volumes={ '/home/yangjq/.scbw/bwapi-data/BWTA': { 'bind': '/app/sc/bwapi-data/BWTA',
'mode': 'rw'},
'/home/yangjq/.scbw/bwapi-data/BWTA2': { 'bind': '/app/sc/bwapi-data/BWTA2',
'mode': 'rw'},
'/home/yangjq/.scbw/games/GAME_2F6D6640/crashes_0': { 'bind': '/app/sc/Errors',
'mode': 'rw'},
'/home/yangjq/.scbw/games/GAME_2F6D6640/logs_0': { 'bind': '/app/logs',
'mode': 'rw'},
'/home/yangjq/.scbw/maps': {'bind': '/app/sc/maps', 'mode': 'rw'}}
network=sc_net
ports={'5900/tcp': 5900}
2019-10-21 15:13:32 INFO scbw.docker_utils[12097] launched HumanPlayer:human:R
2019-10-21 15:13:32 DEBUG scbw.docker_utils[12097] container name = 'GAME_2F6D6640_0_human', container id = '['cd71045249']'
2019-10-21 15:13:32 DEBUG scbw.docker_utils[12097]
docker_image=starcraft:game-1.0.4
command=['/app/play_bot.sh', '--headful']
name=GAME_2F6D6640_1_PurpleWave
detach=True
environment={ 'BOT_BWAPI': '4.1.2',
'BOT_FILE': 'PurpleWave.jar',
'CAPTURE_MOUSE_MOVEMENT': '0',
'DROP_PLAYERS': '0',
'EXIT_CODE_REALTIME_OUTED': 2,
'GAME_NAME': 'GAME_2F6D6640',
'GAME_TYPE': 'FREE_FOR_ALL',
'HEADFUL_AUTO_LAUNCH': '0',
'HIDE_NAMES': '0',
'JAVA_DEBUG': '0',
'JAVA_DEBUG_PORT': '',
'JAVA_OPTS': '',
'MAP_NAME': '/app/sc/maps/sscai/(2)Benzene.scx',
'NTH_PLAYER': 1,
'NUM_PLAYERS': 2,
'PLAYER_NAME': 'PurpleWave',
'PLAYER_RACE': 'P',
'SPEED_OVERRIDE': 0,
'TM_ALLOW_USER_INPUT': '0',
'TM_LOG_FRAMETIMES': '../logs/frames.csv',
'TM_LOG_RESULTS': '../logs/scores.json',
'TM_SPEED_OVERRIDE': 0}
privileged=True
volumes={ '/home/yangjq/.scbw/bots/PurpleWave': {'bind': '/app/bot', 'mode': 'ro'},
'/home/yangjq/.scbw/bwapi-data/BWTA': { 'bind': '/app/sc/bwapi-data/BWTA',
'mode': 'rw'},
'/home/yangjq/.scbw/bwapi-data/BWTA2': { 'bind': '/app/sc/bwapi-data/BWTA2',
'mode': 'rw'},
'/home/yangjq/.scbw/games/GAME_2F6D6640/crashes_1': { 'bind': '/app/sc/Errors',
'mode': 'rw'},
'/home/yangjq/.scbw/games/GAME_2F6D6640/logs_1': { 'bind': '/app/logs',
'mode': 'rw'},
'/home/yangjq/.scbw/games/GAME_2F6D6640/write_1/': { 'bind': '/app/sc/bwapi-data/write',
'mode': 'rw'},
'/home/yangjq/.scbw/maps': {'bind': '/app/sc/maps', 'mode': 'rw'}}
network=sc_net
ports={'5900/tcp': 5901}
2019-10-21 15:13:33 INFO scbw.docker_utils[12097] launched BotPlayer:PurpleWave:P
2019-10-21 15:13:33 DEBUG scbw.docker_utils[12097] container name = 'GAME_2F6D6640_1_PurpleWave', container id = '['b1dcf4f8ed']'
2019-10-21 15:13:33 DEBUG scbw.docker_utils[12097] checking if game has launched properly...
2019-10-21 15:13:34 INFO scbw.docker_utils[12097] launching vnc viewer for HumanPlayer:human:R on address localhost:5900
2019-10-21 15:13:34 INFO scbw.docker_utils[12097]
In headful mode, you must specify and start the game manually.
Select the map, wait for bots to join the game and then start the game.
2019-10-21 15:13:34 INFO scbw.docker_utils[12097] waiting until game GAME_2F6D6640 is finished...
2019-10-21 15:13:34 DEBUG scbw.docker_utils[12097] waiting. ['b1dcf4f8ed', 'cd71045249']
2019-10-21 15:13:37 DEBUG scbw.docker_utils[12097] removing game containers
2019-10-21 15:13:37 WARNING scbw.result[12097] Not all score files have been recorded for game 'GAME_2F6D6640'
2019-10-21 15:13:37 WARNING scbw.result[12097] Expected 2 score files, got 0
2019-10-21 15:13:37 WARNING scbw.result[12097] Assuming a crash happened.
2019-10-21 15:13:37 DEBUG scbw.game[12097] {'headless': False, 'game_name': 'GAME_2F6D6640', 'map_name': 'sscai/(2)Benzene.scx', 'game_type': <GameType.FREE_FOR_ALL: 'FREE_FOR_ALL'>, 'game_speed': 0, 'timeout': None, 'hide_names': False, 'drop_players': False, 'allow_input': False, 'auto_launch': False, 'random_names': False, 'game_dir': '/home/yangjq/.scbw/games', 'bot_dir': '/home/yangjq/.scbw/bots', 'map_dir': '/home/yangjq/.scbw/maps', 'bwapi_data_bwta_dir': '/home/yangjq/.scbw/bwapi-data/BWTA', 'bwapi_data_bwta2_dir': '/home/yangjq/.scbw/bwapi-data/BWTA2', 'vnc_base_port': 5900, 'vnc_host': 'localhost', 'capture_movement': False, 'docker_image': 'starcraft:game-1.0.4', 'docker_opts': [], 'read_overwrite': False, 'bots': ['PurpleWave'], 'is_crashed': True, 'is_gametime_outed': None, 'is_realtime_outed': False, 'game_time': 5.10200572013855, 'winner': None, 'loser': None, 'winner_race': None, 'loser_race': None}
2019-10-21 15:13:37 INFO scbw.game[12097] game GAME_2F6D6640 recorded
2019-10-21 15:13:37 INFO scbw.cli[12097] Game GAME_2F6D6640 finished in 5.10 seconds.
2019-10-21 15:13:37 INFO scbw.cli[12097] ---
2019-10-21 15:13:37 INFO scbw.cli[12097] Logs are saved here:
2019-10-21 15:13:37 INFO scbw.cli[12097] ---
2019-10-21 15:13:37 INFO scbw.cli[12097] Replays are saved here:
2019-10-21 15:13:37 INFO scbw.cli[12097] ---
2019-10-21 15:13:37 INFO scbw.cli[12097] Frame information is saved here:
2019-10-21 15:13:37 INFO scbw.cli[12097] ---
2019-10-21 15:13:37 INFO scbw.cli[12097] Game results are saved here:
2019-10-21 15:13:37 INFO scbw.cli[12097] ---
2019-10-21 15:13:37 ERROR scbw.cli[12097] Game has crashed!
operating system
linux ubuntu 19.04
Ubuntu lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
docker version
output of command docker version:
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.4
Git commit: e68fc7a
Built: Tue May 7 17:57:34 2019
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.4
Git commit: e68fc7a
Built: Tue May 7 17:57:34 2019
OS/Arch: linux/amd64
Experimental: false
scbw version
output of command scbw.play -v
1.0.4