-
Notifications
You must be signed in to change notification settings - Fork 74
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
Processes not cleared when shutting down through close button #105
Comments
I only saw this behavior so far when running the debug mode and restarting from the built-in function, but I will check whether I can reproduce it outside the debug mode as well. In general, the clean-up happens in the "exit" event of the process. Looks like this event is interrupted/skipped whenever the sub-processes remain active. |
Thanks for investigating, Philipp! Even more annoying, on my system the Python processes use 100% CPU once the app is closed and the only way to continue is to manually kill them... My current workaround is to Ctrl+C the roslaunch, but that doesn't feel like a proper solution. |
Thinking about it, I guess it kind of makes sense: Closing the window does not exit the process, so the shutdown/close functions are not called. I added it also to the "close" event of the window on the above commit (separate branch), does this resolve the issue? |
I can confirm that the |
Released with flexbe_app 2.2.4 |
Steps to reproduce
python
only yields processes related to FlexBE.roslaunch flexbe_app flexbe_full.launch
Expected behavior
The processes disappear as soon as the app is closed.
Actual behavior
The processes remain, and stack up: if you relaunch FlexBE and close using the same steps as above, additional processes will be created.
Additional info
Processes are mostly similar, take up between 0 and 3% CPU (~30% one core) and around 43MiB of memory. This adds up pretty quick on compute/memory limited devices. One such process has the following 'command line' field:
The log on STDOUT doesn't show any difference, except for
[flexbe_app-3] process has finished cleanly
. The log file is empty.The text was updated successfully, but these errors were encountered: