Repository navigation
fix: gnb power pluginand ue power plugin working with oai/ change to … - #17
Open
phine-richiB wants to merge 2 commits into
Open
phine-richiB wants to merge 2 commits into
phine-richiB wants to merge 2 commits into
Conversation
…t3512Value for free5gc for UE deallocation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactored the
UePowerPluginandgNBPowerPluginGUI plugins to resolve critical Gazebo UI freezing (thread starvation) and status flickering issues. The previous synchronous implementation usingpopento executedocker execcommands was blocking the main GUI thread, causing heavy log delays and unresponsiveness.This PR introduces an asynchronous, file-based polling architecture. Docker background commands now instantly dump process statuses to temporary files (
/tmp/*_pids.txt), which the C++ backend reads instantly. Additionally, a tick-based cooldown/debounce mechanism was added to prevent the UI from flickering between states while Docker containers are spinning up or shutting down.Changelog
[Changed]:
For free5gc changed t3512Value in amf config for UE deallocation
Replaced synchronous
popenDocker calls with asynchronous background execution (&) to completely eliminate Gazebo GUI thread starvation and freezing.Refactored Docker process tracking to use atomic file-based polling (writing to
/tmp/ue_*_pids.txtand/tmp/gnb_*_pids.txt) for instant, non-blocking C++ parsing.[Fixed]:
Fixed UI red/green flickering during start/stop transitions by implementing a tick-based debounce/cooldown mechanism (
skip_checks_countandfailed_checks).Fixed process name truncation and shell-escaping bugs by using
ps -eo pid,stat,argsand performing the zombie-process (Z) filtering directly in C++ rather than relying on brittle bash pipes.Fixed
gNBPowerPluginbuild errors by properly declaring tracking integers in the.hhheader file.[Limitations]:
Checklist