[DefApp] launching WSL inside DefTerm yields “the parameter is incorrect” #13850

Closed
opened 2026-01-31 03:53:55 +00:00 by claunia · 3 comments
Owner

Originally created by @DHowett on GitHub (May 19, 2021).

As in title

Originally created by @DHowett on GitHub (May 19, 2021). As in title
Author
Owner

@miniksa commented on GitHub (May 28, 2021):

As of today, I've determined this is LxssManager.dll (inside a SvcHost.exe) failing to open a process handle to whatever process it thinks it has determined is the server/host side of the console connection as this is being set up. It says it holds the handle so the process isn't closed and recycled while the WSL stuff is running.

It could be that the fact we're chain-loading the server is messing it up here and we'll need a different strategy or to work with them to refine this code.

@miniksa commented on GitHub (May 28, 2021): As of today, I've determined this is LxssManager.dll (inside a SvcHost.exe) failing to open a process handle to whatever process it thinks it has determined is the server/host side of the console connection as this is being set up. It says it holds the handle so the process isn't closed and recycled while the WSL stuff is running. It could be that the fact we're chain-loading the server is messing it up here and we'll need a different strategy or to work with them to refine this code.
Author
Owner

@miniksa commented on GitHub (Jun 9, 2021):

This has to do with the owner PID for the client session.

The existing handoff is letting the inbox conhost.exe process end... but it looks like it might have to stick around.

@miniksa commented on GitHub (Jun 9, 2021): This has to do with the owner PID for the client session. The existing handoff is letting the inbox `conhost.exe` process end... but it looks like it might have to stick around.
Author
Owner

@ghost commented on GitHub (Jul 14, 2021):

:tada:This issue was addressed in #10415, which has now been successfully released as Windows Terminal Preview v1.10.1933.0.🎉

Handy links:

@ghost commented on GitHub (Jul 14, 2021): :tada:This issue was addressed in #10415, which has now been successfully released as `Windows Terminal Preview v1.10.1933.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.10.1933.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13850