-
Notifications
You must be signed in to change notification settings - Fork 1
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
Closing some Yarp ports from Node.js explicitly fails #59
Comments
The problem is specific to the port It even crashes the terminal stdout. |
Checks:
For some unknown reason, calling directly This is probably an old issue already happening when we were stopping the process with Analyzing... |
I could not reproduce this issue anymore and didn't find anything relevant happening in https://github.com/robotology/yarp.js/blob/ceddda861b1b29478d3bc389d83765fed7297196/yarp.js#L231-L246. So for now I'm closing the issue, until it happens again. |
Reopened because it's frequently happening again when we are closing the telemetry server through a |
On C++ bindings and C++ addons
The Non-blocking operations requirement(https://github.com/nodejs/worker/blob/master/doc/api/addons.md))
The idea is to delegate the ports closure to one of those worker threads, within a limited time, i.e. stopping that thread after a reasonable timeout and running a "yarp clean" afterwards if necessary. |
Actually, the issue occurs also with All connections are properly closed, during the server closure breakdown tasks, in
The issue occurs when the Node.js Event Loop thread calls the port closure through the following call tree:
and the failure occurs when calling The issue occurs in the Moving the issue to repository https://github.com/robotology/yarp.js. |
Couldn't move the issue. There is some problem with the conditions required to do it. for moving an issue from repo A to repo B:
@traversaro, I guess that "owner" means maintainer/admin? fact: I can move issues between this repo and |
…iding blocking call to _port.close() - Refer to issue ami-iit/yarp-openmct#59.
Proceeding the analysis here...The simplest and fastest way to avoid this issue while looking for a proper solution is to remove all-together the Workaround implemented in robotology/yarp.js#27. |
Will further analyze the issue and provide a fix later. |
We try to close all the YARP ports opened by the iCubTelemetryServer process, by running the following commands from Node.js (for instance via REPL):
The last command hangs. The port is actually closed but the Javascript binding call never returns the hand to the terminal).
The text was updated successfully, but these errors were encountered: