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

Editor has a dynamic grey box #94971

Closed
jxe142 opened this issue Apr 11, 2020 · 21 comments
Closed

Editor has a dynamic grey box #94971

jxe142 opened this issue Apr 11, 2020 · 21 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@jxe142
Copy link

jxe142 commented Apr 11, 2020

Issue Type: Bug

Each time I use the editor there is a grey box that moves around on the screen as I type, where there is usally black text editor

VS Code version: Code 1.44.0 (2aae1f2, 2020-04-07T23:31:18.860Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.75GB (8.56GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (8)
Extension Author (truncated) Version
es7-react-js-snippets dsz 2.7.1
prettier-vscode esb 4.2.0
vscode-styled-components jpo 0.0.29
python ms- 2020.3.71659
remote-wsl ms- 0.44.2
LiveServer rit 5.6.1
code-spell-checker str 1.8.0
JavaScriptSnippets xab 1.7.2
@jxe142
Copy link
Author

jxe142 commented Apr 11, 2020

image

@RMacfarlane
Copy link
Contributor

@jxe142 Does this reproduce when extensions are disabled as well? You can temporarily disable them with the Developer: Reload with Extensions Disabled command

@RMacfarlane RMacfarlane added the info-needed Issue requires more information from poster label Apr 11, 2020
@jxe142
Copy link
Author

jxe142 commented Apr 11, 2020 via email

@gjsjohnmurray
Copy link
Contributor

@jxe142 try launching with the --disable-gpu option on the command line

code --disable-gpu

@jxe142
Copy link
Author

jxe142 commented Apr 11, 2020 via email

@RMacfarlane
Copy link
Contributor

@jxe142 Can you run Developer: Toggle Developer Tools and use the inspector tool to find the HTML that defines the gray box? What does it look like?

@bytemain
Copy link
Contributor

try #85452 (comment)

disable hardware acceleration

@RMacfarlane RMacfarlane self-assigned this Apr 13, 2020
@jxe142
Copy link
Author

jxe142 commented Apr 16, 2020

@RMacfarlane Here is a line of HTML that has a grey box

<div style="top:988px;height:19px;" class="view-line"><span><span>&nbsp;</span></span></div>

image

@jxe142
Copy link
Author

jxe142 commented Apr 16, 2020

@lengthmin We gave that a shot and it did not seem to work

@gjsjohnmurray
Copy link
Contributor

@jxe142 does #95675 (comment) help you?

@jxe142
Copy link
Author

jxe142 commented Apr 24, 2020

@gjsjohnmurray Unfortunately, no it did not seem to work.

@Sejsel
Copy link

Sejsel commented May 5, 2020

I also have this issue, and #12473 used to be the exact same thing.

I have the same CPU, so I am guessing the integrated gpu drivers cause this. No extensions.

CPUs Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)
GPU Status 2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

@makluv
Copy link

makluv commented May 6, 2020

I have the exact same issue and also have the i7-1065G7 like @Sejsel. It is not just grey boxes that are an issue but also that the entire viewport seems to be dark.

@jxe142
Copy link
Author

jxe142 commented May 6, 2020

Agreed @makluv the whole viewport seems way darker than the rest of my applications. I had a feeling it was with the new iris plus graphics.

@Sejsel
Copy link

Sejsel commented May 13, 2020

This seems to only happen if "Play HDR games and apps" is enabled in "Windows HD Color Settings". Disabling that fixes it, and also removes the annoying dynamic brightness changes that I've been seeing with this.

@jxe142
Copy link
Author

jxe142 commented May 13, 2020

@Sejsel You're right that does work now. Which is odd since it didn’t work before. I was having the same issue with chrome and it fixed some of the bugs as well. Mainly taking screenshots were blown out.

@bryanhunwardsen
Copy link

bryanhunwardsen commented May 31, 2020

I have this issue as well (threadripper+rx7 - so its not an intel proc/gpu or integrated drivers issue)
I had this issue once before maybe a year or 2 ago on insiders build on a lenovo x1carbon, --disable-gpu worked then, eventually a new build came and the flag was nolonger required.

Once i recalled the --disable-gpu flag I tried it again, and again the issue stopped, I then tried disabling HDR (3x 4kHDR Monitors) via DisplayProperties for a single monitor, but it did not work on that or any monitor, I then disabled just the "Stream HDR Video" but kept "Use HDR" for the default first listed #1 display in "Windows HD Color Settings" which immediately stopped the issue.

Of course I turned it back on, posting here to get eyes on because disabling gpu, or turning HDR off is not a solution.

CPUs AMD Ryzen Threadripper 2920X 12-Core Processor (24 x 3493)
VS Code version: Code - Insiders 1.46.0-insider (cd41dd1, 2020-05-29T05:51:32.662Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs AMD Ryzen Threadripper 2920X 12-Core Processor (24 x 3493)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.89GB (20.98GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (23)
Extension Author (truncated) Version
EditorConfig Edi 0.15.1
prettier-vscode esb 4.7.0
code-sync gol 2.7.2
vscode-line-endings jha 0.2.0
solidity Jua 0.0.73
csharpfixformat Leo 0.0.84
rainbow-csv mec 1.7.0
render-crlf med 1.5.3
git-graph mhu 1.23.0
nc-gcode ML 0.13.0
vscode-cosmosdb ms- 0.13.0
csharp ms- 1.22.0
mssql ms- 1.9.0
python ms- 2020.5.80290
remote-wsl ms- 0.44.2
azure-account ms- 0.8.11
cpptools ms- 0.28.1
powershell ms- 2020.4.0
azure-hdinsight msh 1.1.9
sqltools mtx 0.22.2
platformio-ide pla 1.10.0
usql-vscode-ext usq 0.2.15
highlight-bad-chars wen 0.0.3

image

@remidebette
Copy link

remidebette commented Jun 21, 2020

Hi, I have the same issue on VSCode 1.46.1 since I switched to a HDR screen this week.
I enabled HDR features in windows and my display, and then started to get this grey box.

The issue disappears when running VSCode with:
code --force-color-profile srgb

@JPcorona14
Copy link

JPcorona14 commented Jul 29, 2020

@remidebette what I did to help get around this was create a cmd file that launches code.exe with start Code.exe --force-color-profile srgb. It was the only way to get around it besides having to toggle HDR every time I wanted to game or code which I didn't like. Having this cmd file and then creating a shortcut to it seemed to be the best options and hasn't gave me any issues as of yet. Hope this helps out anyone else.

@gjsjohnmurray
Copy link
Contributor

#88491 (comment) gives details of how argv.json can be used to do this. And a recent update on that issue reports the problem is fixed in Insiders, which will become the new general release in August.

@github-actions
Copy link

github-actions bot commented Aug 5, 2020

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@github-actions github-actions bot closed this as completed Aug 5, 2020
@pmqs pmqs mentioned this issue Sep 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

9 participants