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

Fixes #569 (🐛 Bug) #570

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

mishmish66
Copy link
Contributor

@mishmish66 mishmish66 commented Nov 20, 2024

What this does

In python 3.12 the way that ctypes works with PyOpenGL is slightly stricter, meaning that what worked before due to a silent cast now crashes.

This addresses the issue here: #569

How it was tested

Ran the tests (they worked) and also tried the snippet on python 3.12 and 3.11 and it also worked

How to checkout & try? (for the reviewer)

Use python 3.12 and try to use the snippet I mentioned in issue #569

Copy link
Contributor

@kevin-thankyou-lin kevin-thankyou-lin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome - thanks @mishmish66!

@kevin-thankyou-lin kevin-thankyou-lin merged commit 74c6aac into ARISE-Initiative:master Nov 21, 2024
2 checks passed
@mishmish66
Copy link
Contributor Author

mishmish66 commented Nov 21, 2024

Hey! Thank you so much for merging my PR. This somehow works when there is nothing competing for the vram but it actually breaks when there is something competing for the vram besides mujoco.

We have to add a call to ctypes.pointer when we pass it to the function. This probably also affects the fix on the mujoco repo as well. I've created a second PR #574 which should fix the issue. #573

Thanks! and sorry to have introduced this issue.

@mishmish66
Copy link
Contributor Author

I updated this comment because as I noted in the issue #573 this actually didn't cause the issue.

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 this pull request may close these issues.

2 participants