Farama-Foundation / Farama-Foundation/Arcade-Learning-Environment

Render window size too large and cannot be closed

Open
#500 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
477
Avg merge
11h 11m
Merged PRs (30d)
3

Description

```
import gym
env = gym.make('ALE/Assault-v5', render_mode='human')
state, info = env.reset()
for i in range(50): env.step(1)
env.reset()
env.close()
```
When the code above get executed, the rendering is normal.
However, the popped up window has a much larger resolution than my screen and cannot be resized.
In addition to that, after rendering, reset() and close() are called as suggested by the document.
But the popped up window would not close similar to the following issue. https://github.com/Farama-Foundation/Arcade-Learning-Environment/issues/499
IPython platform needs to be closed to get rid of the window.

I have:
ale-py 0.8.1
gym 0.26.2
IPython 8.16.1
OS Arch Linux

![ale_rendering](https://github.com/Farama-Foundation/Arcade-Learning-Environment/assets/66976593/31350815-792f-47f1-90b0-792d7d1ddd63)

Contributor guide

Open the contributing guide

Research direction

Reproduce the provided Python example with render_mode='human' on Arch Linux, focusing on the rendering path used by env.reset(), env.step(), and env.close(). Compare the behavior with issue 499; done means the window fits the screen, can be resized, and closes after env.close().

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
desktop, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.