Skip to content
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

WSLg crashes when take a screenshot with QQ #348

Closed
NijiharaTsubasa opened this issue Jul 3, 2021 · 8 comments
Closed

WSLg crashes when take a screenshot with QQ #348

NijiharaTsubasa opened this issue Jul 3, 2021 · 8 comments
Assignees
Labels
bug Something isn't working clipboard-integration Windows clipboard integration

Comments

@NijiharaTsubasa
Copy link

Environment

Windows build number: 10.0.22000.51
Your Distribution version: 20.04
Your WSLg version: 1.0.24

Steps to reproduce

  • Run anything in WSLg
  • Take a screenshot with QQ's Ctrl+Alt+A snipping tool
  • And everything crashes

Note that there's no problem with system's snipping tool, only QQ's one causing the problem.

WSL logs:

  • Attach WSLg logs from /mnt/wslg

logs.zip
core.weston.gz

Expected behavior

Everything works fine

Actual behavior

QQ截图20210703132615

@NijiharaTsubasa NijiharaTsubasa added the bug Something isn't working label Jul 3, 2021
@hideyukn88
Copy link
Member

@NijiharaTsubasa, thanks for reporting the issue, may I confirm the QQ you used is https://im.qq.com/linuxqq/index.html ? and installed the corresponding package from https://im.qq.com/linuxqq/download.html ? thanks!

@mor9x
Copy link

mor9x commented Jul 8, 2021

Not only caused by QQ , if anything try to copy image data to clipboard then WSLg crashes.

@NijiharaTsubasa
Copy link
Author

NijiharaTsubasa commented Jul 8, 2021

@NijiharaTsubasa, thanks for reporting the issue, may I confirm the QQ you used is https://im.qq.com/linuxqq/index.html ? and installed the corresponding package from https://im.qq.com/linuxqq/download.html ? thanks!

@hideyukn88 I'm using Windows QQ to take the snapshot

@hideyukn88 hideyukn88 added the clipboard-integration Windows clipboard integration label Jul 13, 2021
@hideyukn88
Copy link
Member

@NijiharaTsubasa and @sanjitako, would you please update WSLg to version 1.0.26 at https://github.com/microsoft/wslg/releases/tag/v1.0.26, and send us dump files at /mnt/wslg/dumps? thanks!

@NijiharaTsubasa
Copy link
Author

@NijiharaTsubasa and @sanjitako, would you please update WSLg to version 1.0.26 at https://github.com/microsoft/wslg/releases/tag/v1.0.26, and send us dump files at /mnt/wslg/dumps? thanks!

weston.log
core.weston.gz

Sorry for late response.

@richardlawley
Copy link

Windows build number: 10.0.22000.258
Your Distribution version: Ubuntu 20.04
Your WSLg version: 1.0.26

I've been experiencing a related version of this problem. I'm not actually using WSLg, it's just running as it was installed as part of the Windows 11 upgrade.

When I take a screenshot with Greenshot (1.2.10.6) and copy it to the clipboard, WSLg appears to die and get restarted. This shows in process explorer as mstsc processes starting and stopping every second or so:

image

This also causes system tray icons to flash once a second, and sometimes grabs focus. Clearing the clipboard (or copying some text to it) makes the problem stop.

Dump: core.zip
Log Snippet: weston-log-snippet.txt (this sequence of logs repeats with each process crash)

Additional comments:

  • Cannot reproduce by copying from Snipping Tool, Paint, paint.net
  • Not every copy from Greenshot causes the problem, but repeatedly copying the same image from the editor has always caused the issue within 2 or 3 copies
  • With docker desktop running, I have 3 WSLg hosts, copying an image from greenshot doesn't always affect all of them - repeatedly copying the same image might affect another one. I can easily get all 3 hosts affected.

@liyafe1997
Copy link

I have this issue too, seems the clipboard sharing feature crashes mstsc.exe when QQ screenshot or some other tools copy images into the clipboard. But Win+Shift+S works fine.

@hideyukn88
Copy link
Member

@richardlawley, @liyafe1997, this issue should be fixed by newer release of WSLg from aka.ms/wslstorepage, please update, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clipboard-integration Windows clipboard integration
Projects
None yet
Development

No branches or pull requests

5 participants