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

GLFW emitted errors - Cannot Set Swap Interval and Failed to Make Context Current #2

Closed
Tomocrystal opened this issue Apr 2, 2024 · 4 comments

Comments

@Tomocrystal
Copy link

Hello,
I am reaching out to report an issue that I have encountered while working with mdapy GUI. I am facing the following errors:

  1. Cannot set swap interval without a current OpenGL or OpenGL ES context
  2. WGL: Failed to make context current: ......
    I would like to kindly request your assistance in resolving these errors. Thank you for your attention to this matter. I look forward to hearing from you soon.
@mushroomfire
Copy link
Owner

@Tomocrystal Hi, please give me more information, including your OS information, python/mdapy version. A simple example code is also helpful to reproduce the error.

@Tomocrystal
Copy link
Author

image
I started to run the GUI mode of mdapy in CMD, then the errors kept popping up as shown in the image.
OS: win10
python:3.10.14
mdapy:0.10.4

@mushroomfire
Copy link
Owner

@Tomocrystal It seems not to be a mdapy API bug, and maybe a GLFW bug. You can try to explicitly allow Python to use the Nvidia GPU. The integrated Intel GPU may do not work.
image
image

@Tomocrystal
Copy link
Author

The solution you provided worked perfectly and resolved the issue. Thank you so much for your help!

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