Open shibukawa opened 3 years ago
I searched other issued and this has same error message. But I used prebuild kernel installed by wsl --update
.
Thanks for your report, this one is a bit odd. It looks like mstsc.exe might have crash on the Windows host and we couldn't successfully connect Weston's RDP backend to the RDP client on Windows.
Could you shutdown wsl (wsl --shutdown from an elevated command prompt). Open task manager, go to the details tab. Launch your WSL distro again, do you see mstsc.exe appears there? does it appear and go away, come back, etc... with different PID every time?
Yes. You are right. mstsc.exe changes its PID every three seconds.
https://user-images.githubusercontent.com/564612/116554652-699a9a80-a936-11eb-903d-bc86bc70e646.mp4
Would you please go to Settings -> Diagnostics & feedback -> View diagnostics data -> click Open Diagnostics Data Viewer (you will need to slide to "on" first then install viewer if you haven't, it redirects to Microsoft Store app automatically). and launch Diagnostics Viewer, click "Problem reports" icon on left side bar, and find if any mstsc.exe (or remote desktop ...) shows up in middle pane. If there is select it, then the right pane will show some information, please find "Bucket ID" in there, and please share that ID with us, (and after this, you can back to "off" at Diagnostics viewer option at Settings app) thanks!
There is no report related to mstsc.exe or Remote Desktop in Problem reports pane.
Diagnostics Data pane has many data related to mstsc.exe. Do they help you?
Unfortunately that's not quite the information we were looking for. Could you try this instead. Open the Feedback Hub (type "feedback in the start menu"), open a new issue and write something like below. The bug will find itself to us and we should be able to look at the crash history for your system and retrieved any crash dump from mstsc that should have gotten uploaded.
I sent just now.
Hi, we have received the feedback report from you and now analyzing it, once we know more or need more information from you, we will update here, thanks!
"mstsc.exe" repeated restart, keep my CPU fan spinning, and generate tons of error reports. I have tried "sfc /scannow" and "DISM /Online /Cleanup-Image /RestoreHealth" but no help.
@shibukawa , I looked at the feedback from you, and there are errors logged from Hyper-V socket layer and this is preventing mstsc from connecting to WSLg, thus mstsc terminated immediately and WSLg relaunching it, this repeats.
@kyaru92 , would you please file report using Feedback Hub, too ? more reports might help us to get more clues on this, thanks!
@shibukawa , I looked at the feedback from you, and there are errors logged from Hyper-V socket layer and this is preventing mstsc from connecting to WSLg, thus mstsc terminated immediately and WSLg relaunching it, this repeats.
@kyaru92 , would you please file report using Feedback Hub, too ? more reports might help us to get more clues on this, thanks!
at first I thought it was a system problem due to update to 21370 so I reported this problem using feedback hub yesterday. after read this issue i recognized that it may cause by wslg and I uninstalled that. So now only some of the previous logs are left, and I don't know which ones will help you.
------update Oh, uninstallation does not help at all. WSLg Preview has been quietly installed on my computer...
------update I followed the steps above and submitted, please take a look if it is what you need
@shibukawa, @kyaru92, sorry for late to follow up. Do you still experience this issue? We have extended the logging for this issue in Feedback Hub, so if you are still seeing mstsc.exe is repeatedly restarting, would you please report using Feedback Hub. Please make sure select "Developer Platform" and "Subsystem for Linux", so proper logging will be enabled, thanks!
I tried on Windows 10 Insider Preview 21370.1 and WSLg 1.0.22, GUI applications works perfectly. Thank you.
@kyaru92 could you close this issue if you confirm on you computer?
@spronovo @hideyukn88 I'm seeing this same behavior with latest WSL (and previous version as well):
WSL version: 0.61.8.0
Kernel version: 5.10.102.1
WSLg version: 1.0.39
MSRDC version: 1.2.3213
Direct3D version: 1.601.0
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.169
$ cat /mnt/wslg/versions.txt
WSLg ( x86_64 ): 1.0.39+Branch.main.Sha.cdbed82a21d382b5c74367c48a32ef4736cc8735
Mariner: VERSION="2.0.20220426"
mesa:
mesa:
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
FreeRDP: c574044a10003e50453acb4cf42801c5833fb572
weston: 4e99bb16dd44fc6daf4a45c46ba3e053c0637afa
$ tail /mnt/wslg/weston.log
[10:22:23.154] CreateWndow(): rdp_peer is not initalized
[10:22:23.154] CreateWndow(): rdp_peer is not initalized
[10:22:23.154] CreateWndow(): rdp_peer is not initalized
[10:22:23.154] CreateWndow(): rdp_peer is not initalized
[10:22:23.154] CreateWndow(): rdp_peer is not initalized
[10:22:23.154] CreateWndow(): rdp_peer is not initalized
[10:22:23.154] CreateWndow(): rdp_peer is not initalized
[10:22:23.182] app_list_monitor_thread: loadIconEvent is signalled. gedit
[10:22:23.182] app_list_monitor_thread: entry 0x7f9ca40023d0, image (nil)
[10:22:23.182] set_window_icon(): rdp_peer is not initalized
I submitted diagnostics via Feedback Hub following your earlier guidance in this issue.
@dpiet, thanks for feedback report and I looked at it. Do you install any TerminalWorks products, such as TSPrint? If so, would you please uninstall any products from them completely and try again? It looks some DLL from that product is being loaded into msrdc.exe process (which is used with WSLg) and causing buffer overrun, and as it's detected by OS, msrdc.exe is forcibly terminated. (For internal reference, bucket: 73895a7a-72ed-176e-0176-ffaee0eb1194). If the product is essential to you, you might want to make sure it's up to date. Thanks!
Yes I did have TSPrint and TSScan installed. Uninstalling TSPrint didn't help but uninstalling TSScan seems to have fixed it. Thanks! Disregard the Feedback submission, which happened after the TSPrint uninstall but before the TSScan.
I tried on two computers. One computer works perfectly (Dell XPS12), but another one doesn't (ASUS Zephyrus G14).
Environment
Host OS: Microsoft Windows [Version 10.0.21364.1000] Guest OS: Ubuntu 20.04, 21.04 PC: ASUS Zephyrus G14 (Ryzen + GeForce RTX 2060)
Steps to reproduce
WSL logs:
weston.log versions.txt pulseaudio.log
Expected behavior
Application icon appears on task bar and application window appears on desktop.
Actual behavior
Do nothing (no icon on taskbar, xeyes command stuck on bash)