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

Windows UI scaling is off #3228

Closed
DavisVaughan opened this issue Jul 26, 2018 · 43 comments
Closed

Windows UI scaling is off #3228

DavisVaughan opened this issue Jul 26, 2018 · 43 comments
Milestone

Comments

@DavisVaughan
Copy link

@DavisVaughan DavisVaughan commented Jul 26, 2018

System details

RStudio Edition : Desktop
RStudio Version : Preview 1.2.830
OS Version      : Windows 7 Enterprise
R Version       : 3.4.1

Computer: Lenovo ThinkPad T570
Monitor: Lenovo ThinkVision

Issue

As you can see in the image below, the Preview edition of RStudio has a scaling issue on Windows where the top file menu is not even showing. Additionally, the hover mechanic is not aligned with what is shown on screen. Example) When I try to close a script file, I have to hover below and slightly to the right of where the X close button is. cc @kevinushey since we talked about this on twitter.

  • This issue persisted through a restart of my computer
  • I do have 2 extra monitors hooked up, but it persisted on each monitor and on the laptop screen itself

rstudio-preview

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jul 26, 2018

It would also be helpful to know:

  1. What kind of monitors do you have hooked up? What resolution are they set at? Are they high DPI or regular DPI monitors?

  2. Does the issue persist if you unplug one of the monitors? Both of the monitors?

  3. Does changing the system UI scaling for these monitors make a difference? What about changing the RStudio zoom level?

Any information you can share that seems to be related to the rendering issue will be helpful.

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Jul 26, 2018

Monitors)
Lenovo ThinkVision. Specifically:
https://support.lenovo.com/us/en/solutions/pd021703

Resolution)
Monitors - 1440x900
Laptop - 1600x900 (goes up to 1920x1080 but I have it turned down a bit, turning it up makes no difference)

DPI)
Not sure but I don't think they are anything special. Wish I could tell you more but they are work monitors I know nothing about. Hopefully you can get something from the link above.

I am on the "smaller 100%" setting in Windows Control Panel -> Display. The default is "Medium 125%" but I tried switching to that as well and it does not seem to help.

Unplugging monitor)
I unplugged and restarted and the issue persists even on just my laptop.

Zoom level)
I tried zooming all the way in to see what I get and this is what it looks like on a fully zoomed in 19 inch screen:

r-zoom

What I find interesting is that I can't make the File Edit Code ... top bar show up at all. It's like it has completely disappeared. When I start up a working version of RStudio, and it does the grey screen with the circling loading bar in the middle of the screen, I can see that tool bar even before the main UI loads. In the new version it never appears.

Edit) That tool bar is definitely there though. If I click near the top of the screen but below where File would be, the menu comes up and just floats, not seemingly attached to anything. I think that may be the main issue. Without the top tool bar showing up, everything shifts up a bit visually but I think it is still in the correct place in terms of where I would be clicking if the visuals were in the correct spot. Or maybe it is there but something else has just shifted it so far upward it's now offscreen and looks to not be there.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jul 26, 2018

Thanks! Next thing worth asking: what kind of video card does your laptop have? Does it have a dedicated graphics card, or just an onboard one?

Can you try launching RStudio from a command prompt? Here's a bunch of invocations that might make a difference:

set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu-rasterization"
"C:\Program Files\RStudio\bin\rstudio.exe"

set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu-compositing"
"C:\Program Files\RStudio\bin\rstudio.exe"

set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu-early-init"
"C:\Program Files\RStudio\bin\rstudio.exe"

If you have an on-board Intel graphics card (and are at liberty to do so), it might also be worth attempting an upgrade of its drivers.

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Jul 26, 2018

Windows Device Manager tells me I have Intel(R) HD Graphics 520. An attempt at pressing the built in Update Driver... button results in Windows telling me "The best software for your device is already installed".

None of those seemed to have any effect :/

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jul 26, 2018

Darn. What kind of laptop do you have specifically? I'll see if I can reproduce on a local Windows 7 install.

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Jul 26, 2018

Sorry I had edited and posted that way at the top. Computer: Lenovo ThinkPad T570

  • 8 gb ram
  • 64 bit operating system
  • Intel core i5 6300U CPU @ 2.4GHz
  • Windows 7 Release 124 2018 04 Apr Update 3
  • Model? LENOVO 20JXS03V00

Thanks for the help, I know this is hard to debug

@kevinushey kevinushey added this to the v1.2 milestone Jul 27, 2018
@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jul 27, 2018

I wonder if the issue could be that RStudio is getting confused because the aspect ratio of your displays are different? Your external monitors are 16x9 but your laptop is 16x10.

Do you see the issue if you disconnect your laptop from the external monitors, reboot the machine, and then attempt to launch RStudio?

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Jul 27, 2018

I unplugged my monitors and restarted the computer but am still having the issue on just my laptop.

I also changed the windows zoom from the Smaller 100% to the default of Medium 125% but that didn't help either.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jul 27, 2018

Are the graphics drivers available at https://downloadcenter.intel.com/product/88355/Intel-HD-Graphics-520 newer than the ones currently installed? (Quite often Windows isn't aware of the newest available drivers for a particular graphics card; their driver database tends to lag a couple years behind)

Another avenue to try: is it possible to disable hardware acceleration for your graphics card? Or are there other similar settings that might be toggled there? (Not sure if any of the applications provided by Intel allow this to be toggled)

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Jul 27, 2018

Interestingly my Intel(R) HD Graphics 520 driver version is 21.20.16.4639 but the website lists the newest version for Windows 7 as 15.45.23.4860. Mine says the Driver Date is 3/22/2017.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jul 27, 2018

Doh. Let's scratch that then.

I'm out of ideas for now :-/

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Jul 27, 2018

I followed this tutorial on turning off hardware acceleration for windows 7. I had to manually change the registry key as described there when "your current display driver does not allow you to change the hardware acceleration". I restarted my computer. It still did not help unfortunately.

https://www.thewindowsclub.com/hardware-acceleration-windows-7

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Jul 27, 2018

I got it!!!

Control Panel -> Display -> Screen Resolution -> Advanced Settings

Should pop up a properties menu. One of the headers is Monitor, click that.

At the bottom you can choose "Colors:" and my options are:

  • True Color (32 bit)
  • High Color (16 bit)

It was on True Color, changing it to High Color makes my screen flicker for a second and then it instantly comes in correctly and RStudio now looks correctly sized and incredibly clear compared to what it was in the images attached in this issue.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jul 27, 2018

🎉 🎉 🎉 🎉 🎉

Phew! It's completely bizarre to me that using true color here would cause the rendering issue, but I guess stranger things in software have happened.

Does the issue reproduce if you switch back to True Color? Does switching back to High Color seem to be a consistently-working fix for this issue?

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Jul 27, 2018

Yes the issue reproduces if I switch back to True Color.

Yes switching to High Color seems to be a consistent fix that does not seem to affect the rest of the computer in a noticeable way.

One other thing to note is that changing the resolution of, say, my laptop screen, changes it back to True Color automatically and I have to make that change again. Luckily I rarely do that.

@ghost
Copy link

@ghost ghost commented Jul 29, 2018

I'm having a similar issue. Here's my screen with version 1.2.830
capture

Of note, beyond the zooming issue, is the grey square on the bottom right. The grey square disappears when I switch to a light theme.

This screenshot is taken from my laptop monitor, a Lenovo Carbon X1, with screen resolution 1920x1080 running on Windows 10 Pro. I've attempted your command prompts here and they didn't make a difference.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jul 30, 2018

@philstraforelli : what is your IDE zoom level set at? Does zooming (Ctrl + -, Ctrl + +) help re-scale things to a reasonable size?

@ghost
Copy link

@ghost ghost commented Jul 30, 2018

My initial screenshot was after zooming out 3 times from the original zoom level. Here's what it's set to when I have it set to "Original Size" (Ctrl + 0). capture

Here's how it looks like when I zoom out 3 times from there, shown for easier comparison (not ideal, but doable):
capture3

And now, if I zoom out one more time (too zoomed out for my taste):
capture2

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Jul 30, 2018

Perhaps we need to adjust the zoom level dynamically based on the UI scale level?

Note to self:

double getDpiZoomScaling()
{
// TODO: because Qt is already high-DPI aware and automatically
// scales in most scenarios, we no longer need to detect and
// apply a custom scale -- but more testing is warranted
return 1.0;
}

@ghost
Copy link

@ghost ghost commented Jul 30, 2018

It definitely isn't an issue with version 1.1.456.

The Lenovo laptop is my work laptop. My personal laptop is an Acer VN7-592G and it has version 1.2.830 running without these issues. Maybe some issue specific to Lenovo?

EDIT: The Lenovo laptop has an Intel UHD Graphics 620 integrated graphics card, if that further helps.

@martj42
Copy link

@martj42 martj42 commented Jul 30, 2018

I have the same issue as @philstraforelli documented here: #2487

It is also on a Lenovo laptop.

@haydenjeune
Copy link

@haydenjeune haydenjeune commented Aug 1, 2018

I have the same issue when I run RStudio with Intel HD Graphics 530. When I run the application with the discrete graphics card (GTX 960M) the UI behaves as expected. I'm using a Dell laptop, sounds like a problem with the integrated graphics?

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Aug 6, 2018

Does upgrading the graphics card drivers for the integrated card help at all?

@ghost
Copy link

@ghost ghost commented Aug 6, 2018

I have upgraded my drivers a couple of days ago, and it hasn't made a difference for me.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Aug 6, 2018

Some more 'magic' invocations to try. From a command terminal (cmd.exe), you can try the following:

set "QT_OPENGL=angle"
"C:\Program Files\RStudio\bin\rstudio.exe"

If that doesn't work, then next try:

set "QT_OPENGL=angle"
set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu"
"C:\Program Files\RStudio\bin\rstudio.exe"

@DavisVaughan would you also be willing to give this a shot, with your default (32bit True Color) configuration?

@ghost
Copy link

@ghost ghost commented Aug 7, 2018

No difference on my end after trying those commands.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Aug 7, 2018

@philstraforelli I think the issue you're seeing is distinct from the one reported by @DavisVaughan; that is, there are two classes of rendering issues here:

  1. The actual rendered screen is 'off', as though the rendered screen has been shifted from the 'actual' UI items on the screen;

  2. The UI scaling is off, such that RStudio is over-scaled (or under-scaled).

I think your issue falls into class two, and I suspect it's an artifact of you having high Windows scaling (e.g. 200% or maybe 250%). This is still something we need to fix but want to just emphasize that there are different classes of rendering issues being tracked in this ticket.

For scrollbars, see #3272.

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Aug 7, 2018

Oh shoot @kevinushey this actually worked for me on True Color 32 bit.

  1. Switched to True color 32 bit
  2. Opened RStudio from command line without changing QT_OPENGL. The scaling issue was present.
  3. Closed RStudio and the command line.
  4. Opened RStudio from command line and changed QT_OPENGL. The scaling issue was fixed.
set "QT_OPENGL=angle"
"C:\Program Files\RStudio\bin\rstudio.exe"

Do you know what version of OpenGL you use? My graphics card says it supports OpenGL version 4.4 but it seems like it goes up to 4.6. But I guess using angle means that my Direct X API is working?
https://www.khronos.org/opengl/wiki/History_of_OpenGL

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Aug 7, 2018

In theory, RStudio (or more accurately, the underlying engines in Qt + Chromium) should only be using OpenGL 2.x and 3.x, but in practice it might be mis-detecting support for some set of OpenGL APIs in certain video cards and getting these sorts of rendering issues. It's hard to say; my understanding is that the world of hardware accelerated graphics is effectively a lawless saloon in a city abandoned by its sheriffs.

For now, the plan is to:

  1. Provide some UI to let users select different rendering backends, to work around these kinds of issues;

  2. Cross our fingers that newer versions of Qt + Chromium better handle some of these onboard graphics cards; and

  3. Cross our fingers that newer drivers are released for these on-board graphics cards that find their way into Windows Update and hence onto the user's machines.

We'll keep our eyes open for better solutions but it feels unlikely that there will be any single catch-all solution that can fix all of the rendering problems seen across the different permutations of components across user's machines.

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Aug 8, 2018

Thought you might want a look at the before and after of my GPU diagnostic section with the new RStudio daily build.

Before applying set "QT_OPENGL=angle" (bad version):

Graphics Feature Status
Canvas: Hardware accelerated
CheckerImaging: Disabled
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Rasterization: Unavailable
Video Decode: Hardware accelerated
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Driver Bug Workarounds
clear_uniforms_before_first_program_use
decode_encode_srgb_for_generatemipmap
disable_accelerated_vpx_decode
disable_delayed_copy_nv12
disable_direct_composition
disable_discard_framebuffer
disable_dxgi_zero_copy_video
disable_framebuffer_cmaa
exit_on_context_lost
msaa_is_slow
scalarize_vec_and_mat_constructor_args
Problems Detected
GPU rasterization should only be enabled on NVIDIA and Intel DX11+, and AMD RX-R2 GPUs for now.: 643850
Disabled Features: gpu_rasterization
Some drivers are unable to reset the D3D device in the GPU process sandbox
Applied Workarounds: exit_on_context_lost
Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use
Always rewrite vec/mat constructors to be consistent: 398694
Applied Workarounds: scalarize_vec_and_mat_constructor_args
On Intel GPUs MSAA performance is not acceptable for GPU rasterization: 527565
Applied Workarounds: msaa_is_slow
Framebuffer discarding can hurt performance on non-tilers: 570897
Applied Workarounds: disable_discard_framebuffer
Direct composition flashes black initially on Win <10: 588588
Applied Workarounds: disable_direct_composition
Zero copy DXGI video hangs on shutdown on Win < 8.1: 621190
Applied Workarounds: disable_dxgi_zero_copy_video
Use GL_INTEL_framebuffer_CMAA on ChromeOS: 535198
Applied Workarounds: disable_framebuffer_cmaa
Disable KHR_blend_equation_advanced until cc shaders are updated: 661715
Applied Workarounds: disable(GL_KHR_blend_equation_advanced), disable(GL_KHR_blend_equation_advanced_coherent)
Decode and Encode before generateMipmap for srgb format textures on Windows: 634519
Applied Workarounds: decode_encode_srgb_for_generatemipmap
VPx decoding isn't supported well before Windows 10 creators update.: 616318, 667532
Applied Workarounds: disable_accelerated_vpx_decode
VPx decoding is too slow on Intel Broadwell, Skylake, and CherryView: 616318
Applied Workarounds: disable_accelerated_vpx_decode
Delayed copy NV12 crashes on Intel on Windows <= 8.1.: 727216
Applied Workarounds: disable_delayed_copy_nv12
Don't expose disjoint_timer_query extensions to WebGL: 808744
Native GpuMemoryBuffers have been disabled, either via about:flags or command line.
Disabled Features: native_gpu_memory_buffers
Checker-imaging has been disabled via finch trial or the command line.
Disabled Features: checker_imaging
Version Information
Data exported	2018-08-08T11:34:43.730Z
Chrome version	rstudio/1.2.882.0
Operating system	Windows NT 6.1.7601 SP1
Software rendering list URL	https://chromium.googlesource.com/chromium/src/+/926d27280b919a1aeb0091392d56f63a38d2bc0b/gpu/config/software_rendering_list.json
Driver bug list URL	https://chromium.googlesource.com/chromium/src/+/926d27280b919a1aeb0091392d56f63a38d2bc0b/gpu/config/gpu_driver_bug_list.json
ANGLE commit id	unknown hash
2D graphics backend	Skia/65 35ee3617fcb08e0d79e6b9e6c05db23cc9416d4f-
Command Line	"C:\Program Files\RStudio\bin\rstudio.exe" --enable-viewport --disable-renderer-accessibility --browser-subprocess-path="C:\Program Files\RStudio\bin\QtWebEngineProcess.exe" --no-sandbox --enable-threaded-compositing --disable-zero-copy --disable-gpu-memory-buffer-compositor-resources --disable-gpu-memory-buffer-video-frames --disable-mojo-local-storage --disable-es3-gl-context --enable-features=AllowContentInitiatedDataUrlNavigations --disable-features=SurfaceSynchronization --disable-features=SurfaceSynchronization,TouchpadAndWheelScrollLatching --create-default-gl-context --use-gl=desktop --in-process-gpu --gpu-preferences=KAAAAAAAAAAiBwAAAQAAAAAAAAAAAGAAAAAAAAAAAAAIAAAAAAAAACgAAAAEAAAAIAAAAAAAAAAoAAAAAAAAADAAAAAAAAAAOAAAAAAAAAAQAAAAAAAAAAAAAAAKAAAAEAAAAAAAAAAAAAAACwAAABAAAAAAAAAAAQAAAAoAAAAQAAAAAAAAAAEAAAALAAAA --use-gl=desktop --gpu-vendor-id=0x8086 --gpu-device-id=0x1916 --gpu-driver-vendor="Intel Corporation" --gpu-driver-version=21.20.16.4639 --gpu-driver-date=3-22-2017 --disable-direct-composition --disable-direct-composition
Driver Information
Initialization time	8
In-process GPU	true
Passthrough Command Decoder	false
Direct Composition	false
Supports overlays	false
Sandboxed	false
GPU0	VENDOR = 0x8086, DEVICE= 0x1916 *ACTIVE*
Optimus	false
Optimus	false
AMD switchable	false
Desktop compositing	Aero Glass
Diagonal Monitor Size of \\.\DISPLAY3	18.9"
Diagonal Monitor Size of \\.\DISPLAY2	18.9"
Diagonal Monitor Size of \\.\DISPLAY1	18.9"
Driver vendor	Intel Corporation
Driver version	21.20.16.4639
Driver date	3-22-2017
Pixel shader version	4.40
Vertex shader version	4.40
Max. MSAA samples	16
Machine model name	
Machine model version	
GL_VENDOR	Intel
GL_RENDERER	Intel(R) HD Graphics 520
GL_VERSION	4.4.0 - Build 21.20.16.4639
GL_EXTENSIONS	GL_3DFX_texture_compression_FXT1 GL_AMD_depth_clamp_separate GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_cl_event GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compatibility GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_derivative_control GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_fragment_shader_interlock GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_post_depth_coverage GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_draw_parameters GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shading_language_100 GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARB_window_pos GL_ATI_separate_stencil GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_direct_state_access GL_EXT_draw_buffers2 GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_polygon_offset_clamp GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shader_framebuffer_fetch GL_EXT_shader_integer_mix GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_compression_s3tc GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod_bias GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_sRGB_decode GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_storage GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_IBM_texture_mirrored_repeat GL_INTEL_conservative_rasterization GL_INTEL_fragment_shader_ordering GL_INTEL_framebuffer_CMAA GL_INTEL_map_texture GL_INTEL_multi_rate_fragment_shader GL_INTEL_performance_query GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_debug GL_KHR_texture_compression_astc_hdr GL_KHR_texture_compression_astc_ldr GL_NV_blend_square GL_NV_conditional_render GL_NV_primitive_restart GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays GL_WIN_swap_hint WGL_EXT_depth_float WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_framebuffer_sRGB WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_pixel_format_packed_float WGL_EXT_create_context_es_profile WGL_EXT_create_context_es2_profile WGL_NV_DX_interop WGL_INTEL_cl_sharing WGL_NV_DX_interop2 WGL_ARB_create_context_robustness
Disabled Extensions	GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent
Disabled WebGL Extensions	EXT_disjoint_timer_query EXT_disjoint_timer_query_webgl2
Window system binding vendor	
Window system binding version	
Window system binding extensions	WGL_EXT_depth_float WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_framebuffer_sRGB WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_pixel_format_packed_float WGL_EXT_create_context_es_profile WGL_EXT_create_context_es2_profile WGL_NV_DX_interop WGL_INTEL_cl_sharing WGL_NV_DX_interop2 WGL_ARB_create_context_robustness
Direct rendering	Yes
Reset notification strategy	0x8261
GPU process crash count	0
Compositor Information
Tile Update Mode	One-copy
Partial Raster	Enabled
GpuMemoryBuffers Status
ATC	Software only
ATCIA	Software only
DXT1	Software only
DXT5	Software only
ETC1	Software only
R_8	Software only
R_16	Software only
RG_88	Software only
BGR_565	Software only
RGBA_4444	Software only
RGBX_8888	GPU_READ, SCANOUT
RGBA_8888	GPU_READ, SCANOUT
BGRX_8888	Software only
BGRX_1010102	Software only
BGRA_8888	Software only
RGBA_F16	Software only
YVU_420	Software only
YUV_420_BIPLANAR	Software only
UYVY_422	Software only
Display(s) Information
Info	Display[2528732444] bounds=-1440,0 1440x900, workarea=-1440,0 1440x900, scale=1, external
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
Bits per color component	8
Bits per pixel	24
Info	Display[2779098405] bounds=1440,0 1440x900, workarea=1440,0 1440x900, scale=1, external
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
Bits per color component	8
Bits per pixel	24
Info	Display[2841568472] bounds=0,0 1440x900, workarea=0,0 1440x860, scale=1, external
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
Bits per color component	8
Bits per pixel	24
Video Acceleration Information
Diagnostics
... loading ...

After applying the set "QT_OPENGL=angle" (good version):


Graphics Feature Status
Canvas: Software only. Hardware acceleration disabled
CheckerImaging: Disabled
Flash: Software only. Hardware acceleration disabled
Flash Stage3D: Software only. Hardware acceleration disabled
Flash Stage3D Baseline profile: Software only. Hardware acceleration disabled
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Disabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Rasterization: Software only. Hardware acceleration disabled
Video Decode: Software only. Hardware acceleration disabled
WebGL: Disabled
WebGL2: Disabled
Problems Detected
GPU process was unable to boot: GPU access is disabled through commandline switch --disable-gpu.
Disabled Features: all
Native GpuMemoryBuffers have been disabled, either via about:flags or command line.
Disabled Features: native_gpu_memory_buffers
Checker-imaging has been disabled via finch trial or the command line.
Disabled Features: checker_imaging
Version Information
Data exported	2018-08-08T11:33:57.760Z
Chrome version	rstudio/1.2.882.0
Operating system	Windows NT 6.1.7601 SP1
Software rendering list URL	https://chromium.googlesource.com/chromium/src/+/926d27280b919a1aeb0091392d56f63a38d2bc0b/gpu/config/software_rendering_list.json
Driver bug list URL	https://chromium.googlesource.com/chromium/src/+/926d27280b919a1aeb0091392d56f63a38d2bc0b/gpu/config/gpu_driver_bug_list.json
ANGLE commit id	unknown hash
2D graphics backend	Skia/65 35ee3617fcb08e0d79e6b9e6c05db23cc9416d4f-
Command Line	"C:\Program Files\RStudio\bin\rstudio.exe" --enable-viewport --disable-renderer-accessibility --browser-subprocess-path="C:\Program Files\RStudio\bin\QtWebEngineProcess.exe" --no-sandbox --enable-threaded-compositing --disable-zero-copy --disable-gpu-memory-buffer-compositor-resources --disable-gpu-memory-buffer-video-frames --disable-mojo-local-storage --disable-es3-gl-context --enable-features=AllowContentInitiatedDataUrlNavigations --disable-features=SurfaceSynchronization --disable-features=SurfaceSynchronization,TouchpadAndWheelScrollLatching --disable-gpu
Driver Information
Initialization time	0
In-process GPU	true
Passthrough Command Decoder	false
Direct Composition	false
Supports overlays	false
Sandboxed	false
GPU0	VENDOR = 0x8086, DEVICE= 0x1916
Optimus	false
Optimus	false
AMD switchable	false
Desktop compositing	Aero Glass
Diagonal Monitor Size of \\.\DISPLAY3	18.9"
Diagonal Monitor Size of \\.\DISPLAY2	18.9"
Diagonal Monitor Size of \\.\DISPLAY1	18.9"
Driver vendor	Intel Corporation
Driver version	21.20.16.4639
Driver date	3-22-2017
Pixel shader version	
Vertex shader version	
Max. MSAA samples	
Machine model name	
Machine model version	
GL_VENDOR	
GL_RENDERER	
GL_VERSION	
GL_EXTENSIONS	
Disabled Extensions	
Disabled WebGL Extensions	
Window system binding vendor	
Window system binding version	
Window system binding extensions	
Direct rendering	Yes
Reset notification strategy	0x0000
GPU process crash count	0
Compositor Information
Tile Update Mode	One-copy
Partial Raster	Enabled
GpuMemoryBuffers Status
ATC	Software only
ATCIA	Software only
DXT1	Software only
DXT5	Software only
ETC1	Software only
R_8	Software only
R_16	Software only
RG_88	Software only
BGR_565	Software only
RGBA_4444	Software only
RGBX_8888	GPU_READ, SCANOUT
RGBA_8888	GPU_READ, SCANOUT
BGRX_8888	Software only
BGRX_1010102	Software only
BGRA_8888	Software only
RGBA_F16	Software only
YVU_420	Software only
YUV_420_BIPLANAR	Software only
UYVY_422	Software only
Display(s) Information
Info	Display[2528732444] bounds=-1440,0 1440x900, workarea=-1440,0 1440x900, scale=1, external
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
Bits per color component	8
Bits per pixel	24
Info	Display[2779098405] bounds=1440,0 1440x900, workarea=1440,0 1440x900, scale=1, external
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
Bits per color component	8
Bits per pixel	24
Info	Display[2841568472] bounds=0,0 1440x900, workarea=0,0 1440x860, scale=1, external
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
Bits per color component	8
Bits per pixel	24
Video Acceleration Information
Diagnostics
... loading ...

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Aug 8, 2018

Hmm, it looks like I should be having 3 ANGLE options (linked below) because I'm on Windows, but I only see "Auto detect", "OpenGL" and "Software". Trying all 3 of those does not result in the UI scaling problem fixing itself, so I assume I need the angle option.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Aug 8, 2018

@DavisVaughan we discovered that the ANGLE renderers don't actually do what we expect on Windows (software rendering is done instead) so we removed those.

Can you try setting up software rendering once more using the latest daily build of RStudio, and let me know how it goes?

You might also try toggling the various other options added to see if they fix rendering while keeping the GPU acceleration active:

screen shot 2018-08-08 at 1 44 43 pm

For others in this thread: I don't think any of these options will help with the UI scaling issues otherwise reported; we'll be working on that next.

@DavisVaughan
Copy link
Author

@DavisVaughan DavisVaughan commented Aug 9, 2018

With the latest daily version (1.2.891), all I have to do is set Rendering engine: Software and the problem is fixed.

Leaving the option as auto-detect, and trying every combination of those 3 check boxes (along with restarts of rstudio for each combination) does not fix anything.

Can also confirm that Rendering engine: Desktop OpenGL still has the problem.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Aug 13, 2018

Dang. I was hoping at least one of those flags would've fixed the issue with OpenGL, but at least we have a way out for now. (You might notice rendering performance is not quite up to snuff with Software rendering; please let us know if you find it's unusably slow or laggy in certain contexts)

@jmcphers
Copy link
Member

@jmcphers jmcphers commented Sep 5, 2018

We have a few mechanisms now to force software rendering if you need it, and those resolve the issue, so closing this. We may still need to consider blacklisting some configurations so that users get the right render engine by default and don't have to mess with the settings (we'll track those as separate issues).

@medewitt
Copy link

@medewitt medewitt commented Feb 6, 2019

Some more 'magic' invocations to try. From a command terminal (cmd.exe), you can try the following:

set "QT_OPENGL=angle"
"C:\Program Files\RStudio\bin\rstudio.exe"

If that doesn't work, then next try:

set "QT_OPENGL=angle"
set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu"
"C:\Program Files\RStudio\bin\rstudio.exe"

@DavisVaughan would you also be willing to give this a shot, with your default (32bit True Color) configuration?

Had similar issue to original @DavisVaughan with R dailies (tried 1.2.1237 to 1.2.1268) not scaling properly and the tool bar being missing across the top of R Studio. The command line magic below fixed the issue.

set "QT_OPENGL=angle"
set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu"
C:\Program Files\RStudio\bin\rstudio.exe"

System

  • Windows 10
  • 16 gb RAM
  • i7-76660U CPU @ 2.50 GHz
  • 2 Dell external monitors at 1920x1080 32 bit 60hz
  • Graphics card Intel Iris Plus Graphics 640
  • Graphics driver 21.20.16.4664

Just wanted to give you a heads up that this still exists.

@bgall
Copy link

@bgall bgall commented Apr 11, 2019

Following up on this, the same problem has affected my install. I am on a Lenovo Yoga 920, running same resolution and zoom as the others above.

@ghost
Copy link

@ghost ghost commented May 1, 2019

This issue is also present on my Dell XPS 13 running RStudio Version 1.2.1335.

System:
OS: Windows 10 Home (10.0.17134)
Processor: Intel(R) Core (TM) i7-7560U CPU @ 2.4GHz
Installed memory (RAM): 16.0 GB (15.7 usable)
System type: 64-bit Operating System, x64-based processor

Graphics:
Intel(R) Iris(TM) Plus Graphics 640
Driver: 21.20.16.4664
Shader Version: 5.1
OpenGL: 4.4
OpenCL: 2.1
Vulkan* Version: 1.0.31
Microsoft DirectX*: Runtime 12.0, Hardware-Supported 12.0

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented May 20, 2019

I'd recommend enabling software rendering, or updating your video card drivers. See also: https://support.rstudio.com/hc/en-us/articles/360017886674-Troubleshooting-RStudio-Rendering-Errors

@medewitt
Copy link

@medewitt medewitt commented May 20, 2019

@kevinushey updating the Rendering engine in R Studio resolved the issue for me.

@Sunmisayo
Copy link

@Sunmisayo Sunmisayo commented May 18, 2021

Some more 'magic' invocations to try. From a command terminal (cmd.exe), you can try the following:

set "QT_OPENGL=angle"
"C:\Program Files\RStudio\bin\rstudio.exe"

If that doesn't work, then next try:

set "QT_OPENGL=angle"
set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu"
"C:\Program Files\RStudio\bin\rstudio.exe"

@DavisVaughan would you also be willing to give this a shot, with your default (32bit True Color) configuration?

Had similar issue to original @DavisVaughan with R dailies (tried 1.2.1237 to 1.2.1268) not scaling properly and the tool bar being missing across the top of R Studio. The command line magic below fixed the issue.

set "QT_OPENGL=angle"
set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu"
C:\Program Files\RStudio\bin\rstudio.exe"

System

  • Windows 10
  • 16 gb RAM
  • i7-76660U CPU @ 2.50 GHz
  • 2 Dell external monitors at 1920x1080 32 bit 60hz
  • Graphics card Intel Iris Plus Graphics 640
  • Graphics driver 21.20.16.4664

Just wanted to give you a heads up that this still exists.

Hi medewitt,
I'm having this same issue on my system now. However, the above commands fixes the issue but when I start the R-studio app not using the CMD interface, the issue returns. I'll like to know if yours solved the issue completely. @kevinushey

@Sunmisayo
Copy link

@Sunmisayo Sunmisayo commented May 18, 2021

Some more 'magic' invocations to try. From a command terminal (cmd.exe), you can try the following:

set "QT_OPENGL=angle"
"C:\Program Files\RStudio\bin\rstudio.exe"

If that doesn't work, then next try:

set "QT_OPENGL=angle"
set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu"
"C:\Program Files\RStudio\bin\rstudio.exe"

@DavisVaughan would you also be willing to give this a shot, with your default (32bit True Color) configuration?

Had similar issue to original @DavisVaughan with R dailies (tried 1.2.1237 to 1.2.1268) not scaling properly and the tool bar being missing across the top of R Studio. The command line magic below fixed the issue.

set "QT_OPENGL=angle"
set "RSTUDIO_CHROMIUM_ARGUMENTS=--disable-gpu"
C:\Program Files\RStudio\bin\rstudio.exe"

System

  • Windows 10
  • 16 gb RAM
  • i7-76660U CPU @ 2.50 GHz
  • 2 Dell external monitors at 1920x1080 32 bit 60hz
  • Graphics card Intel Iris Plus Graphics 640
  • Graphics driver 21.20.16.4664

Just wanted to give you a heads up that this still exists.

Hi medewitt,
I'm having this same issue on my system now. However, the above commands fixes the issue but when I start the R-studio app not using the CMD interface, the issue returns. I'll like to know if yours solved the issue completely. @kevinushey

My bad! Issue was completely resolved using the RStudio support link dropped later by @kevinushey

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented May 18, 2021

@Sunmisayo great, I'm glad to hear it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants