-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Graceful shutdown does not seems to happen with default profile that launches PowerShell #13582
Comments
Interesting! So, there's something strange afoot here. Look at this: In orange, the PowerShell prompt comes back. In green, however, the application continues producing output. If I had to guess, it's that OpenRefine spawns a subprocess that is attached to the same console as the original/root OpenRefine process. Further, that root process is terminating with the Now, Terminal tracks the root process and terminates the connection when that process exits. When there's a shell, Terminal ends up keeping the connection open until the shell exits. When OpenRefine is running directly inside Terminal, and it gets a This is an area in which we're a bit deficient: we don't track an entire process tree the way the console used to, so we are susceptible to a little bit of a behavioral difference in process lifetime and teardown order. There's a couple ways to fix this. One is going to be to wait for us to fix it -- we have some plans here -- which might take a while. The other is for OpenRefine to effectively join/wait-for its child process to terminate after getting the signal before exiting the parent. Thoughts? |
As an aside - when you run openrefine.exe, the profile that gets used isn't the profile set as the |
So, the suggestion to fix on our end or your end is...? What is the timeline fix on your end...about a year or less? Then that might be fine for us actually. |
Sorry, this must've gotten lost in the queue.
I don't know for sure what Dustin was talking about here - he's being a little too coy for me to decipher this time. He might have meant the Does that work more as expected/? If not, then I'm not really sure about the other idea he was talking about. |
Tested |
Windows Terminal version
1.15.2002.0
Windows build number
10.0.22622.0
Other Software
OpenRefine 3.6
Please work with our developers to help understand this issue more, as we want the best Windows 11 experience for our OpenRefine users.
Our mailing list dev thread for this issue is here: https://groups.google.com/g/openrefine-dev/c/f8krfDFGaQg/m/tj2SX0vRAgAJ
Steps to reproduce
openrefine.exe
(bottom left screen)ctrl+c
on my keyboard and the process is exited immediately with no graceful shutdown (likely because the signals sent to the application are different now?).\openrefine.exe
it will run and if I pressctrl-c
on my keyboard, then it seems the correct signals are sent and OpenRefine begins it's graceful shutdown as it has done consistently in conhost.exe and cmd.exe since Windows 98."closeOnExit": "graceful"
and save (bottom right screen) and test the default profile again by double-clicking onopenrefine.exe
ctrl+c
to attempt to gracefully shutdown, but notice that it continues to exhibit an immediate exit and display code (oxc000013a) and seemingly not sending the same signals as it does if the application is launched by running the command line.\openrefine.exe
.Expected Behavior
I would expect that since PowerShell is being used in both the default profile in the run app context (double clicking
openrefine.exe
and the manually launched Terminal in the command line context (.\openrefine.exe
), that it would result in the same termination behavior, but it does not.Actual Behavior
the default profile with PowerShell seems to exhibit slightly different termination signals sent to the application when in the context of a command-line (
.\openrefine.exe
) or a run behavior (double-clicking onopenrefine.exe
icon)We are not confident that the same signals are being sent in both contexts, such as historically $? = 128 + SIGINT = 130
The text was updated successfully, but these errors were encountered: