-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fixes memory leak in video recorder #3387
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
base: main
Are you sure you want to change the base?
Conversation
Should we just upgrade gymnasium to latest? |
it is not done in latest, made a PR in gymnasium |
for this purpose I think there is another style called duck-patching that can offer cleaner solution (less file edit). |
@ooctipus I didn't know about that one, can change it |
We can make our own fork of gymnasium where we put these fixes. Similar to how we handle rl-games? Wouldn't modify our source code to handle this class. Removing the class later then becomes an issue for compatibility. |
I think that is where @ooctipus suggestions comes in, just updating the code for it |
@Mayankm96 this change should now ensure that we dont have compatibility issues later |
I traced the issue few months ago and optimally the patch needs to be done in MoviePy package (see Zulko/moviepy#2437) there is an issue in its implementation. I opened an issue there and it should be corrected by now on the main branch Zulko/moviepy#2459 but no new version was released yet. I didn't test the patch but the frames should be collected automatically and no specific changes in gymnasium will be needed other than updating MoviePy later on. |
I still feel making our own fork of Gymnasium and having a fix there is a cleaner solution than modifying code at multiple places. Later once the patch on Gymnasium or moviepy is addressed, we can simply change the Gymnasium (and its dependencies) downloaded. The current solution fixes things on the IsaacLab repo side, but all scripts users have on theri extension template repo will still be affected. |
@timote-MOREAUX great! then this should fix it. Still we should avoid that memory leak for users early on without waiting for another release. @Mayankm96 make sense from that perspective, I can make a fork of gymnasium and implement the fix there |
@pascal-roth Let's try to get this in for 2.3 release? |
@Mayankm96 can u make the fork, I am missing the permission |
Description
gymanisum still doesn't clear the video frames correclty, this PR replaces the gymnasium video wrapper in the scripts until Farama-Foundation/Gymnasium#1444 is merged
Type of change
Screenshots
|


|
|
Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there