Blizzard / s2client-proto

StarCraft II Client - protocol definitions used to communicate with StarCraft II.
MIT License
3.76k stars 431 forks source link

SC2_x86 crashed when using CollectMineralShards MAP #45

Closed zzhang1987 closed 6 years ago

zzhang1987 commented 6 years ago

Hi

The SC2_x86 binary crashed when using the mini-game map CollectMineralShards (https://github.com/deepmind/pysc2/releases/download/v1.0/mini_games.zip).

Below is the detailed information.

uname -a Linux zzhangPowerLap 4.12.12-1-ARCH #1 SMP PREEMPT Sun Sep 10 09:41:14 CEST 2017 x86_64 GNU/Linux

cat /etc/lsb-release LSB_VERSION=1.4 DISTRIB_ID=Arch DISTRIB_RELEASE=rolling DISTRIB_DESCRIPTION="Arch Linux"

Crash details:

python train_mineral_shards.py Version: B56787 (SC2.3.17) Build: Aug 25 2017 15:00:49 Command Line: '"/home/zzhang/StarCraftII/Versions/Base56787/SC2_x64" -listen 127.0.0.1 -port 18537 -dataDir /home/zzhang/StarCraftII/ -tempDir /tmp/sc-tcrplguy/ -displayMode 0' Starting up... Startup Phase 1 complete Startup Phase 2 complete Creating stub renderer... Listening on: 127.0.0.1:18537 (18537) Startup Phase 3 complete. Ready for commands. Requesting to join a single player game Configuring interface options Configure: raw interface enabled Configure: feature layer interface enabled Configure: score interface enabled Configure: render interface disabled Entering load game phase. 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. Sending ResponseJoinGame Error signal: '11' Backtrace: /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0x659853] /usr/lib/libc.so.6(+0x34920)[0x7f4e227e4920] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0x1239271] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0x12391d9] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0x123a295] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0x123ad34] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0xff3b7c] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0xfd5cdf] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0xfd5e42] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0x1a073a2] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0x1a0b096] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0x5f3db5] /usr/lib/libc.so.6(__libc_start_main+0xea)[0x7f4e227d0f6a] /home/zzhang/StarCraftII/Versions/Base56787/SC2_x64[0x5f3bb9] Traceback (most recent call last): File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/protocol.py", line 61, in catch_websocket_connection_errors yield File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/protocol.py", line 152, in _read response_str = self._sock.recv() File "/home/zzhang/.local/lib/python3.6/site-packages/websocket/_core.py", line 293, in recv opcode, data = self.recv_data() File "/home/zzhang/.local/lib/python3.6/site-packages/websocket/_core.py", line 310, in recv_data opcode, frame = self.recv_data_frame(control_frame) File "/home/zzhang/.local/lib/python3.6/site-packages/websocket/_core.py", line 323, in recv_data_frame frame = self.recv_frame() File "/home/zzhang/.local/lib/python3.6/site-packages/websocket/_core.py", line 357, in recv_frame return self.frame_buffer.recv_frame() File "/home/zzhang/.local/lib/python3.6/site-packages/websocket/_abnf.py", line 340, in recv_frame self.recv_header() File "/home/zzhang/.local/lib/python3.6/site-packages/websocket/_abnf.py", line 288, in recv_header header = self.recv_strict(2) File "/home/zzhang/.local/lib/python3.6/site-packages/websocket/_abnf.py", line 375, in recvstrict bytes = self.recv(min(16384, shortage)) File "/home/zzhang/.local/lib/python3.6/site-packages/websocket/_core.py", line 427, in _recv return recv(self.sock, bufsize) File "/home/zzhang/.local/lib/python3.6/site-packages/websocket/_socket.py", line 93, in recv "Connection is already closed.") websocket._exceptions.WebSocketConnectionClosedException: Connection is already closed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "train_mineral_shards.py", line 51, in main() File "train_mineral_shards.py", line 24, in main visualize=True) as env: File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/env/sc2_env.py", line 180, in init static_data = self._controller.data() File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/remote_controller.py", line 151, in data return static_data.StaticData(self.data_raw()) File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/remote_controller.py", line 80, in _valid_status return func(self, *args, kwargs) File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/stopwatch.py", line 197, in _stopwatch return func(args, kwargs) File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/remote_controller.py", line 147, in data_raw ability_id=True, unit_type_id=True)) File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/protocol.py", line 127, in send res = self.send_req(sc_pb.Request(kwargs)) File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/protocol.py", line 113, in send_req return self.read() File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/stopwatch.py", line 197, in _stopwatch return func(args, kwargs) File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/protocol.py", line 86, in read response = self._read() File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/protocol.py", line 152, in _read response_str = self._sock.recv() File "/usr/lib/python3.6/contextlib.py", line 99, in exit self.gen.throw(type, value, traceback) File "/home/zzhang/.local/lib/python3.6/site-packages/pysc2/lib/protocol.py", line 63, in catch_websocket_connection_errors raise ConnectionError("Connection already closed. SC2 probably crashed. " pysc2.lib.protocol.ConnectionError: Connection already closed. SC2 probably crashed. Check the error log.

The installed software is in the attachment pacman.txt.

pacman.txt

Best,

KevinCalderone commented 6 years ago

This is the same issue as: https://github.com/deepmind/pysc2/issues/53

The fix will be out soon in the 3.18 patch. Please reopen this if it still persists in that patch.

If you want to workaround it in the meantime, you can revert back to the 3.16.1 linux build.