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

Minor: Using concat_vec_envs_v1, with num_cpus > 1 results in unnessary print outputs when calling env.close() #244

Closed
KaleabTessera opened this issue Feb 1, 2024 · 1 comment · Fixed by #245

Comments

@KaleabTessera
Copy link
Contributor

KaleabTessera commented Feb 1, 2024

Using the vectorised envs (concat_vec_envs_v1), with num_cpus >1 causes a redundant printout when calling env.close.

Code:

from pettingzoo.mpe import simple_spread_v3
import supersuit as ss

env = simple_spread_v3.parallel_env()
env = ss.pettingzoo_env_to_vec_env_v1(env)
env = ss.concat_vec_envs_v1(env, 10, num_cpus=10, base_class="gymnasium")
obs, info = env.reset()

env.close()

Output:

XIO:  fatal IO error 0 (Success) on X server ":0"
      after 89 requests (89 known processed) with 0 events remaining.
XIO:  fatal IO error 0 (Success) on X server ":0"
      after 89 requests (89 known processed) with 0 events remaining.
XIO:  fatal IO error 0 (Success) on X server ":0"
      after 89 requests (89 known processed) with 0 events remaining.
XIO:  fatal IO error 0 (Success) on X server ":0"
...

This isn't really a bug, just removes an annoying print out. @elliottower You also pointed this issue out a while back here - Farama-Foundation/PettingZoo#1017 (comment).

@elliottower
Copy link
Contributor

Sounds good thanks for this

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

Successfully merging a pull request may close this issue.

2 participants