Skip to content

Implement close() functionality for meshcat viewer and zmqserver that hosts the three.js webpage#138

Open
kingjin94 wants to merge 2 commits intomeshcat-dev:masterfrom
kingjin94:dev/fix_zmq_zombies
Open

Implement close() functionality for meshcat viewer and zmqserver that hosts the three.js webpage#138
kingjin94 wants to merge 2 commits intomeshcat-dev:masterfrom
kingjin94:dev/fix_zmq_zombies

Conversation

@kingjin94
Copy link

Solves #87

@kingjin94
Copy link
Author

kingjin94 commented Jun 30, 2023

Tested with:

import meshcat.visualizer
vis = meshcat.visualizer.Visualizer()
vis.close()

prior to this patch vis.close() would fail and a manual killing of vis.window.server_proc would leave various processes running with ZMQbg prefix in htop's COMM / /proc//status -> Name.

Screenshot from 2023-06-30 15-59-39

Implements closing suggest, e.g., here: https://stackoverflow.com/questions/26224179/zmq-socket-gracefully-termination-in-python

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.

1 participant