Skip to content

Fix hang with Start-UnityEditor -Quit -Wait #166

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

Merged
merged 2 commits into from
Apr 10, 2019

Conversation

jwittner
Copy link
Member

The main change is in the first commit - swapping out Start-Process for System.Diagnostics.Process.Start. For some reason Start-Process -Wait results in extra long waits after unity.exe has exited.

Current theory is that it's waiting for the handles to redirected output to close or a child process of unity.exe. Either way avoiding Start-Process -Wait has made the issue irreproducible.

The second commit includes auto-formatting that VS Code applied.

@jwittner jwittner requested a review from Ziugy April 10, 2019 00:03
@StephenHodgson
Copy link
Contributor

I had noticed this too but I couldn't pin it down.

Copy link
Contributor

@StephenHodgson StephenHodgson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Not keen on the formatting changes just bc I've got some changes coming though, but should be okay.

@jwittner jwittner merged commit 0881fff into microsoft:develop Apr 10, 2019
@jwittner jwittner deleted the fix/shutdownHang branch September 25, 2019 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants