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

Random blue-ish squares appear on screen #13640

Closed
asineth0 opened this issue Jul 31, 2022 · 18 comments
Closed

Random blue-ish squares appear on screen #13640

asineth0 opened this issue Jul 31, 2022 · 18 comments
Assignees
Labels
Area-Windowing Window frame, quake mode, tearout Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Priority-1 A description (P1) Product-Conpty For console issues specifically related to conpty Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@asineth0
Copy link

Windows Terminal version

1.14.1963.0

Windows build number

10.0.22000.795

Other Software

GPU: AMD Radeon 5700 XT
GPU Driver: 31.0.12015.2001 (7/13/2022)

I can confirm this happens with no other apps open.

Steps to reproduce

Open Microsoft Terminal, and wait a few minutes. Minimizing and unminimizing the window makes a different set of squares appear in the bottom left of the screen.

Expected Behavior

No squares should be randomly rendered to the screen.

Actual Behavior

The square that appears in the top-left of the window:

image

The squares that appear in the bottom left of my screen when the window is minimized:

image

@asineth0 asineth0 added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jul 31, 2022
@ghost ghost added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jul 31, 2022
@zadjii-msft
Copy link
Member

zadjii-msft commented Aug 1, 2022

Is there any sort of overlay software that's running as a part of your graphics card/? Those boxes don't look like anything the Terminal would ever draw on its own...

This vaguely reminds me of those NVidia ShadowPlay threads - but obviously not the case here.

Maybe something like:

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Aug 1, 2022
@237dmitry
Copy link

Try to play with:

experimental.rendering.forceFullRepaint true or false (default)
experimental.rendering.software true or false (default)

@asineth0
Copy link
Author

asineth0 commented Aug 3, 2022

I've tested with all possible combinations of those two options and the issue still remains. I think it may only happen with more than one tab if that helps.

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 3, 2022
@zadjii-msft
Copy link
Member

For what it's worth, those experimental rendering settings don't hot-reload (from what I remember). You'd need to open a new tab.

I think it may only happen with more than one tab if that helps.

That's weird for sure. Does that box stay aligned with the top left of the Terminal window, as you move the Terminal window around/?

You might be able to use WinSpy to figure out what that box is, if it's an actual HWND. Use the little finder tool to drag over that box. I'll be stumped if that doesn't find some sort of HWND there (other than the Terminal)

@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Aug 3, 2022
@DHowett
Copy link
Member

DHowett commented Aug 4, 2022

@zadjii-msft those look like pseudowindows...!

In the old days, when you minimized something it actually became Iconic. Like, the window itself changed to rendering just an icon and a name.

After the old days, windows became very tiny. In Windows 95, if you killed Explorer you would see stacks of minimized windows, 60x16 pixels wide, accumulated at the bottom of the screen.

This looks like what might happen if you make a pseudoconsole window visible and minimize it....

@DHowett
Copy link
Member

DHowett commented Aug 4, 2022

@asineth0 are you using any third party window management software?

@asineth0
Copy link
Author

asineth0 commented Aug 4, 2022

I did a bit of testing and can confirm it goes away with software rendering. Had to completely close out Terminal and reopen it for it to be fixed.

In terms of window management software, the only one I have installed is PowerToys (not sure if that counts).
I tested with it uninstalled and the issue persisted.

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 4, 2022
@DHowett
Copy link
Member

DHowett commented Aug 4, 2022

Wow, I'm baffled. All of the regions you pointed out are outside the part of Terminal to which software rendering even applies.

Thanks for testing!

@zadjii-msft
Copy link
Member

confirm it goes away with software rendering

That kinda backs up my theory that this is a graphics card issue. Switching to software rendering got the GPU and any other software out of the way, and the problem went away?

Not sure how we wanna go about this one. We don't' have the hardware to repro and ID the root cause ourselves, and you've got a viable workaround - you okay if we close this out?

@zadjii-msft zadjii-msft added Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Product-Terminal The new Windows Terminal. labels Aug 4, 2022
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Aug 4, 2022
@zadjii-msft zadjii-msft added Needs-Tag-Fix Doesn't match tag requirements and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Aug 4, 2022
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Aug 4, 2022
@asineth0
Copy link
Author

asineth0 commented Aug 5, 2022

Yeah, that's fine.

@asineth0 asineth0 closed this as completed Aug 5, 2022
@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 5, 2022
@zadjii-msft zadjii-msft added Product-Conpty For console issues specifically related to conpty Priority-1 A description (P1) Area-Windowing Window frame, quake mode, tearout and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. labels Aug 16, 2022
@zadjii-msft
Copy link
Member

zadjii-msft commented Aug 16, 2022

Holy shit I've got a live repro, at least temporarily. It's on my slaptop, no external displays, rs_wdx_dxp.220811. It's almost definitely a pseudoconsole window, and it's positioned at (0,0)-(18,18), and it's WS_VISIBLE (full styles is 0x94cf0000).

Look real carefully, it's the window frame corners:
image
image

Minimizing the terminal makes the box disappear, and restoring brings it back. Only flag it toggles here is WS_MINIMIZE.

I wonder how we got WS_VISIBLE. We shouldn't ever get that, and we should like, always just suppress that.

@asineth0
Copy link
Author

Great! Was starting to think I was crazy since I couldn't pick it up with WinSpy (I probably just don't know what I'm doing lol).

It stopped happening for a few days, but came back. Now I can actually see a window close button.

When not minimized:

dWJ1wASJBJ

When minimized:

explorer_k803gjmQ5Q

@zadjii-msft
Copy link
Member

You know what, we've gotten enough feedback at this point that I'm pretty confident that this and #13388 are actually the same thing, just different symptoms. I'll use that thread for tracking. Thanks!

/dup #13388

@zadjii-msft zadjii-msft closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2022
@ghost
Copy link

ghost commented Sep 1, 2022

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Sep 1, 2022
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Needs-Tag-Fix Doesn't match tag requirements labels Sep 1, 2022
@asineth0
Copy link
Author

This is still an issue as of 05/14/24 on the latest version. Often happens with any terminal I leave open maximized, doesn't happen with windows that are just floating.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Windowing Window frame, quake mode, tearout Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Priority-1 A description (P1) Product-Conpty For console issues specifically related to conpty Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

4 participants