Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if Startcraft started fine #50

Open
tatref opened this issue Oct 29, 2018 · 2 comments
Open

Check if Startcraft started fine #50

tatref opened this issue Oct 29, 2018 · 2 comments

Comments

@tatref
Copy link

tatref commented Oct 29, 2018

Hi,

Trying to run the examples on CentOS 7, I got:

StarCraftII/Versions/Base60321/SC2_x64: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by StarCraftII/Versions/Base60321/SC2_x64)

It could be cool to check if the exe started. I tried implemeting a simple check here:

sc2-rs/src/instance.rs

Lines 97 to 104 in 01c6286

let mut child = cmd.spawn()?;
std::thread::sleep(std::time::Duration::from_millis(50));
if let Ok(Some(status)) = child.try_wait() {
if !status.success() {
println!("{:?}", child.wait_with_output().unwrap());
bail!(ErrorKind::CantStartExe);
}
}

Example of output:

StarCraftII/Versions/Base60321/SC2_x64: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by StarCraftII/Versions/Base60321/SC2_x64)
Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "" }
Error: StarCraft II exe couldn't start

Tell me if it's fine for you, I can submit a PR if you want.

@XinyiYS
Copy link

XinyiYS commented Nov 11, 2019

Hi any chance you resolved the issue? I have been having the same problem.
Thanks in advance.

@tatref
Copy link
Author

tatref commented Nov 22, 2019

Hi,

About the GLIBCXXX issue, this is related to the version of Linux. Centos 7 provides a too old glibc. You can try to switch to another OS (Centos8, Ubuntu...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants