Bug 161988 - cannot select or revise objects on Calc pages on second monitor
Summary: cannot select or revise objects on Calc pages on second monitor
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Skia
  Show dependency treegraph
 
Reported: 2024-07-10 18:28 UTC by spamnot
Modified: 2024-07-11 17:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Dell Inspiron 16 Plus 7620 external monitor display settings (86.32 KB, image/png)
2024-07-11 12:21 UTC, spamnot
Details
Dell Inspiron 16 Plus 7620 internal display settings (86.19 KB, image/png)
2024-07-11 12:25 UTC, spamnot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description spamnot 2024-07-10 18:28:47 UTC
Description:
I installed newer LibreOffice version 4.2.4.2 on my Dell Inspiron 16 7620 Plus laptop computer with LG 32GN600-B monitor attached.  I previously was using an earlier 4.2.x version of LibrOffice.  When I run Calc, it runs normally when the Calc screen is positioned on the laptop screen, but when the Calc screen is positioned on the LG 32GN600-B monitor, my cursor will not successfully select cells, and the drop-down menus are blank when trying to select any menu item from the Calc screen.  I downloaded a new version and re-installed LibreOffice 4.2.4.2, thinking it might have been corrupted software, but the identical problem remains.  This problem did not occur with earlier versions of LibreOffice.

Steps to Reproduce:
1.Run LibreOffice 4.2.4.2 Calc on my computer, with the Calc window in my second monitor.
2.
3.

Actual Results:
I am unable to select objects, and drop-down menus are blank, in the Calc window in a second monitor.

Expected Results:
I expected Calc to run normally on the second monitor, as it does on the laptop screen, as it has done on earlier versions of LibreOffice.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.4.2 (X86_64) / LibreOffice Community
Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2
CPU threads: 20; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 m_a_riosv 2024-07-10 21:09:42 UTC
I never have had such issue, even with two external monitors.
Version: 24.2.5.1 (X86_64) / LibreOffice Community
Build ID: 2ccb78ad6bdfe3f3356a7a7f294ec388775c5816
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Please test modifying Skia options.
Menu/Tools/Options/LibreOffice/View.

Try to update the graphics driver from the vendor.

What is the resolution used on the second monitor?
Comment 2 spamnot 2024-07-10 22:46:19 UTC
The resolution of my LG 32GN600-B monitor is set to 2560x1440 (recommended).
I investigated the issue without changing any settings, and the Calc window would work properly on the laptop screen, but would malfunction as described when dragged over to the external monitor, and then then after the Calc window was dragged back to the laptop screen, it worked properly again.
I re-booted a few times, with identical results.
(While the Calc window was on the laptop screen)
I used Tools-Options-View to examine the 'Graphics Output' settings.
I toggled 'Use Skia for all rendering' and 'Force Skia software rendering' and ran 'Run Graphics Tests', with a result of:
Graphics Backend used: skia
Passed Tests: 53
Quirky Tests: 51
Failed Tests: 0
Skipped Tests: 5
I cancelled the toggled 'Graphics Output' settings, moved around the Calc window from the laptop screen to the LG 32GN600-B monitor, and the issue was resolved, with no other action on my part.
I re-booted my computer, and the issue was basically still resolved.
The only small quirk remaining, inconsequential to me, is when I use Tools-Options-View to toggle 'Use Skia for all rendering' and 'Force Skia software rendering' the check marks take many seconds to register, and when I use 'Run Graphics Tests' the drop-down menu is sometimes blank.
I would say that my complaint was resolved, and unless some LibreOffice developer is still messing around with Skia and could be introducing worse quirks, that you can close the bug, as far as I am concerned.
Comment 3 spamnot 2024-07-10 23:02:34 UTC
For reference, it is possible that my particular transient issue with the external monitor could be because my Dell Inspiron 16 Plus 7620 laptop computer has both an internal Intel graphics chip and a nVidia RTX 3060 card.  The internal Intel graphics chip drives the laptop screen, and the nVidia RTX 3060 card drives the external monitor.  Both Intel graphics chip drivers and nVidia RTX 3060 drivers are installed on the computer, and are used by the respective hardware. I have not experienced any similar problems with previous versions of LibreOffice, but maybe Skia on LibreOffice has started assuming that only one graphics hardware and drivers are being used on a single computer.
Comment 4 V Stuart Foote 2024-07-11 11:50:28 UTC
Hmm, so another instance of user misconfigured nVidia Optimus GPU switching?

Additionally, believe you'll find both GPUs--the Intel integrated iGPU and the nVidia discrete dGPU--are logically connected to *both* monitors. Normally only on a desktop MB and a CPU with no integrated GPU could you have split monitors to two different dGPU. Not the case for vast majority of laptops, both GPUs (iGPU, dGPU) calculate display for both monitors.

The OS controls which GPU renders which application, so I'd first look to the application settings for LibreOffice. Check the Windows WDM assigned "high performance" or "power saving" state for LibreOffice (soffice.exe) and the GPU it will use. 

Use "⊞+i" and "graphics settings" (not the nVidia control panel) to check the settings.

Typically to use the Intel iGPU, set it to "power saving", and for use of the nVidia dGPU set it to "high performance". Or you can allow it to "let Windows decide" which for most apps is default.

And only at that point, within LibreOffice Tools -> Options -> View there are four config choices for rendering:

(1) "Use Skia for all rendering" -- this is default on Win builds and uses Skia calls to Vulkan vector based rendering

(2) "Force Skia software rendering" -- this still uses Skia libs but with calls for raster framing, reduced and simplified GPU load

(3) "Use hardware acceleration" -- with Skia disabled (both unchecked) and LibreOffice restart uses CPU and OS gdi rendering with calls to the GPU for HA (still GPU driver dependent). 

(4) unchecked hardware acceleration -- with Skia disabled (both unchecked) uses only CPU for gdi rendering.  Noticeably slower. 

Anti-aliasing is enabled by default and the Skia libs do it well, but disabling can lighten load on CPU when gdi HA is off, tradeoff in appearance of text and draw objects rendered to display.

Seems like you've now ended up with config (2).

Please check what your WDM "graphics settings" are for the LibreOffice (soffice.exe). Then maybe shuffle the settings and see if you can get LibreOffice to run reliably with config (1) and use the nVidia GPUs Vulkan driver for rendering.

If your Vulkan rendering is unstable on the laptop display or the external monitor with (1), just work with config (2).

By the way, you are on build 24.2.4.2 (June 2024) not 4.2.4 (May 2014)
Comment 5 spamnot 2024-07-11 12:21:28 UTC
Created attachment 195234 [details]
Dell Inspiron 16 Plus 7620 external monitor display settings

Dell Inspiron 16 Plus 7620 external monitor display settings from Windows 'Advanced Display Settings'
Comment 6 spamnot 2024-07-11 12:25:11 UTC
Created attachment 195235 [details]
Dell Inspiron 16 Plus 7620 internal display settings

Dell Inspiron 16 Plus 7620 internal display settings from Windows 'Advanced Display Settings'
Comment 7 spamnot 2024-07-11 12:36:06 UTC
I uploaded screen shots of the Windows 'Advanced Display Settings' for the internal display and the external monitor, showing that the internal display is only using the internal Intel Iris XE graphics and the external display is only using the nVidia GeForce RTX 3060 Laptop GPU. The LibreOffice default is enabled.  As I mentioned previously, the configuration started working, eventually, after temporarily changing and then cancelling changed Skia settings, and making no changes to the display or any graphics settings.  Now that the issue has effectively gone away for me, I am not that invested in getting to the root cause of the problem, since I normally would not mess around with Skia settings if everything I need is functioning properly.
Comment 8 V Stuart Foote 2024-07-11 13:43:31 UTC
(In reply to spamnot from comment #7)
> I uploaded screen shots of the Windows 'Advanced Display Settings' for the
> internal display and the external monitor, showing that the internal display
> is only using the internal Intel Iris XE graphics and the external display
> is only using the nVidia GeForce RTX 3060 Laptop GPU. The LibreOffice
> default is enabled.  As I mentioned previously, the configuration started
> working, eventually, after temporarily changing and then cancelling changed
> Skia settings, and making no changes to the display or any graphics
> settings.  Now that the issue has effectively gone away for me, I am not
> that invested in getting to the root cause of the problem, since I normally
> would not mess around with Skia settings if everything I need is functioning
> properly.

OK, fair enough. Just tend to imagine that if you really are moving a running application running with one set of GPU libs (e.g. Intel) to another GPU (e.g. nVidia) the application may have no way to reconfigure dynamically to use the correct drivers--would especially troublesome with the HW specific Vulkan rendering.

The Skia raster rendering might be safer configuration (it is fall back when LO chokes on Vulkan rendering and restarts) with your laptop. So just stay with both Skia boxes checked...
Comment 9 spamnot 2024-07-11 17:06:15 UTC
All four boxes under Tools-Options-View-Graphics Output are checked by default, and I have not changed any of those check boxes permanently, including when I was experiencing the issue continuously initially.
'Use hardware acceleration', 'Use anti-aliasing', 'Use Skia for all rendering', and 'Force Skia software rendering'.
The statement below those four boxes shows 'Skia is currently enabled'.
As I continue to use Calc periodically on the external monitor today, sometimes the issue where I cannot select cell objects in the Calc window, and the drop-down windows from the menus, recurs initially, but after some amount of seconds the Calc window resumes functioning normally in the external monitor screen.
I am not seriously concerned with a bug that only occurs occasionally on my external monitor, preventing work on Calc in that monitor temporarily, but can be worked around by dragging the Calc window to my laptop screen, but I figured some developer might want to know about the issue.
The odd thing is that I have used Calc for many years, and have had the same exact hardware configuration and driver configuration (Intel Irix Xe driving the laptop monitor and nVidia GeForce RTX 3060 laptop GPU driving the LG monitor) (updated driver versions once or twice) since November 2022, and the first time I experienced this issue was immediately after I updated LibreOffice to 24.2.4.2.