Error when running ./all_tests on Linux

未关闭
#336 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
cpp, linux

调研方向

首先使用所述的 StarCraft II 版本复现 ./all_tests -e,并将其启动环境与手动的 SC2_x64 命令进行比较。检查 all_tests 的启动路径以及 src/sc2api/sc2_coordinator.cc:94 报告的失败。测试运行器能够在 Linux 上启动 SC2 并成功连接即表示完成。

由索引模型根据 Issue 内容生成。

描述

The following error was encountered while testing ./all_tests on Linux.

The command I run is as follow (${my_StarCraftII_path} and ${my_s2client-api_path} denote the path of my StarCraftII and s2client-api, respectively):

./all_tests -e ${my_StarCraftII_path}/Versions/Base69232/SC2_x64

And the output of this command are as follows:

Running test: sc2::TestAbilityRemap
Launched SC2 (${my_StarCraftII_path}/Versions/Base69232/SC2_x64), PID: 145940
${my_StarCraftII_path}/Versions/Base69232/SC2_x64: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by ${my_StarCraftII_path}/Versions/Base69232/SC2_x64) 
Waiting for connection.....................................................................................
................................... 
Unable to connect to game all_tests: ${my_s2client-api_path}/src/sc2api/sc2_coordinator.cc:94: bool sc2::AttachClients(sc2::ProcessSettings&, std::vector<sc2::Client*>): Assertion connected' failed.
Aborted

It's quite strange that I got "/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ${my_StarCraftII_path}/Versions/Base69232/SC2_x64)" when launching SC2, as I can start SC2 manually by following commands:

cd ${my_StarCraftII_path}/Versions/Base69232/
./SC2_x64 -listen 127.0.0.1 -port 37688

And the output of the commands are:

Version: B69232 (SC2.4.6-Publish)
Build: Oct 23 2018 01:43:04
Command Line: '"./SC2_x64" -listen 127.0.0.1 -port 37688'
Starting up...
Startup Phase 1 complete
Startup Phase 2 complete
Creating stub renderer...
Listening on: 127.0.0.1:37688
Startup Phase 3 complete. Ready for commands.

In my opinion, SC2 is started by this way in my Linux.
Besides, SC2 can also be started by other ways like python interface shown in pysc2 and smac. So I think my StarCraftII can work properly.

So, why won't StarCraft II start when I run ./all_tests?

主要语言
C++
星标
1.7k
派生
281
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Blizzard/s2client-api 的其他 Issue

查看 Blizzard/s2client-api 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。