-
Notifications
You must be signed in to change notification settings - Fork 98
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
Launch View: "Terminate and Relaunch" sometimes does not relaunch all processes of a Launch Group #1318
Comments
It's a race condition: GroupLaunchElement.adoptIfRunning was introduced to: "allows to skip launching that configuration in case it is already running, launched either manually or by another group. TerminateAndRelaunchAction first terminates the processes
And later uses org.eclipse.debug.core.model.RuntimeProcess.fTerminated to identify if the launch is already/still running But that flag is only set asynchronous in org.eclipse.debug.core.model.RuntimeProcess.ProcessMonitorThread after the ProcessMonitor has terminated:
solution: synchronously remember thread is terminated after terminating it |
…e-platform#1318 This was a race condition: RuntimeProcess.fTerminated was only set asynchronously, hindering relaunching the process, thinking it was already running. Happened only for GroupLaunchElement.adoptIfRunning == true fixes eclipse-platform#1318
…e-platform#1318 This was a race condition: RuntimeProcess.fTerminated was only set asynchronously, hindering relaunching the process, thinking it was already running. Happened only for GroupLaunchElement.adoptIfRunning == true fixes eclipse-platform#1318
…e-platform#1318 This was a race condition: RuntimeProcess.fTerminated was only set asynchronously, hindering relaunching the process, thinking it was already running. Happened only for GroupLaunchElement.adoptIfRunning == true fixes eclipse-platform#1318
…e-platform#1318 This was a race condition: RuntimeProcess.fTerminated was only set asynchronously, hindering relaunching the process, thinking it was already running. Happened only for GroupLaunchElement.adoptIfRunning == true fixes eclipse-platform#1318
This was a race condition: RuntimeProcess.fTerminated was only set asynchronously, hindering relaunching the process, thinking it was already running. Happened only for GroupLaunchElement.adoptIfRunning == true fixes #1318
In the launch View selecting a running launch group and choosing "Terminate and Relaunch" from the contet menu sometimes fails to relaunch the whole group or some of the processes.
After that the launch view shows two nodes for the launchgroup, both showing the same - terminated - PIDs:
Reproducable with a simple Program like:
Create 2 launches for the Program (just create 1 and duplicate it).
Create 1 launchgroup to start both launches.
Set option "adopt if runing"
"run" the launch group,
"Terminate and Relaunch" the launch group. Sometimes it is not fully relaunched:
I have only seen it failing when option "adopt if runing" was used.
The text was updated successfully, but these errors were encountered: