-
Notifications
You must be signed in to change notification settings - Fork 834
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
Output from WSL command pipeline is randomly truncated #4082
Comments
That won't run at all unless you've got a MSYS/Cygwin
|
By
I mean running |
I think I experienced the same problem. I was using the WSL let me down on this line of code:
But I also experienced the problem with these commands:
Sometimes the output file would just stop in the middle breaking the whole pipeline. |
Alright; appreciate the me2 that helps. Note this issue is most likely chirping crickets on the "old" (in WSL terms, 17134) Win10 build cited in the OP. If people are seeing Windows->WSL pipe problems on 1903 aka 18362 aka 19H1 aka "May 2019 update" (or later) probably wanna speak up. Use Your |
I'm on 18362 so I guess, it should work. I also changed my script to use But could you re-iterate on why my usage of |
I can confirm the original problem still occurs on Win10 1903 aka 18362 aka 19H1 aka "May 2019 update". |
Because you are crossing a separation of concerns boundary for no reason. You have no idea if that The guidance isn't for your use case specifically. Doing a
Maybe:
But mostly, from a "Native Tools Command Prompt for VS 2019"...
Which is demonstrably a hack of a lot easier. Or if MSVS isn't your soup, install Windows |
Also reproducing on I have the issue with
I was trying to implement a windows git.exe that runs the |
I am observing a similar issue on 18362.535 (also with git output, but that doesn't seem to be related). This seems to be triggered by "fast writer slow reader", like in #610. Expected output (Linux / when executed inside WSL / WSL2):
Actual output (ubuntu.exe, 18362.535):
|
I can't repro the OP test scenario on 19551, WSL1+WSL2. There has been some water under the bridge since 18362. If I can get a second from someone on Insiders I'll close "mysterious reasons". |
The issue is still reproduced for me, I'm on Windows 10 Pro Insider Preview Build 19569.rs_prerelease.200214-1419. For reproducing, just run outlined by @AMPivovarov python script using WSL v1 and WSL v2. Result for WSL v1:
Result for WSL v2:
|
…d" (microsoft/WSL#4082) GitOrigin-RevId: a90961d328ab5992196bed25c0361a7a2b53c8a2
…e is randomly truncated" microsoft/WSL#4082 GitOrigin-RevId: 1a69a2430f9bc9aa05ca6f493226ed7f9422d2ef
…e is randomly truncated" microsoft/WSL#4082 GitOrigin-RevId: dc558ff48e3c63691945588b869adc7b8487a45c
Looks to still be an issue in 2022
|
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Refiled as #11111 |
Environment
Steps to reproduce
cmd.exe
and enter the following commands:Repeat the last line multiple times to repeat the problem with randomly different behavior.
Expected behavior
After the last command the terminal should display all integers from 100 to 999.
Actual behavior
After the last command the terminal only displays all integers from 100 to some random integer smaller than 999 (e.g. 978). Sometimes the last integer is not shown completely (e.g. only "97" instead of "978").
The output is truncated? One of the programs in the pipeline is aborted early? It might be a timing issue? Repeating the last command often results in the same "random" number, but sometimes it gets stops later / earlier.
Using different counts (e.g. 100 to 400 instead of 100 to 999) the problem also occurs.
Using slightly different commands the problem does not occur, e.g. this works correctly:
In issue microsoft/terminal#1078 it was suggested this is a bug in WSL.
The text was updated successfully, but these errors were encountered: