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

When Dora node exit unexpectedly,there will be some resources in the kernel that cannot be released. #408

Closed
RuPingCen opened this issue Jan 9, 2024 · 2 comments
Labels
bug Something isn't working cli CLI

Comments

@RuPingCen
Copy link

Describe the bug
We found a phenomenon,but i am not sure if it is a dora bug.

We created 3 nodes A, B, C in Dora. Node A is responsible for reading IMU measurements from the serial port(/dev/ttyUSB0), such as xsens mti-30. Node B receives the data from node A and prints the data to confirm that node A can read the IMU data normally. Node C is a node under development. We hope to use node C to receive the data of node A and forward it to ROS2.
Node A and node B can run normally without reporting errors.
When we were debugging node C, we found that if node C exits abnormally, it will cause dora kernel sotp (I am not sure whether the description of sotp is correct), that is, we need to start it again with the dora up command before we can continue to use dora start.

The phenomenon is like this:

Once node C fails, the dora kernel stops, node A cannot be started again, and the node will prompt that the serial port is always occupied. In other words, the serial port may not be released after dora exits abnormally.

This phenomenon has occurred several times, and we currently can only solve this problem by restarting the computer.

@github-actions github-actions bot added bug Something isn't working cli CLI labels Jan 9, 2024
@haixuanTao
Copy link
Collaborator

Do you mind sharing the errors logs that you get so that we can help you?

To kill a running node, you can use:

pkill -f 'name of your command'

It's an open issue #184 that killing node that leave for too long.

Sorry for the inconvenience.

@haixuanTao
Copy link
Collaborator

I think that this has been solved with the addition of grace duration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli CLI
Projects
None yet
Development

No branches or pull requests

2 participants