Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

avoid calling glfwTerminate() inside callback#603

Open
samarth-robo wants to merge 1 commit into
openai:masterfrom
samarth-robo:patch-1
Open

avoid calling glfwTerminate() inside callback#603
samarth-robo wants to merge 1 commit into
openai:masterfrom
samarth-robo:patch-1

Conversation

@samarth-robo

Copy link
Copy Markdown

GLFW guidelines say glfwTerminate() should not be called inside an event callback, since it is not reentrant. This fixes segfault when closing the MjViewer window by pressing ESC.

[GLFW guidelines](https://www.glfw.org/docs/3.3/intro_guide.html#reentrancy) say `glfwTerminate()` should not be called inside an event callback, since it is not reentrant. This fixes segfault when closing the `MjViewer` window by pressing ESC.
@samarth-robo samarth-robo changed the title avoid calling glfwTerminate( ) inside callback avoid calling glfwTerminate() inside callback Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant