Bug 144763 - icons degrade Skia Vulkan rendering on nVidia MX130 with 462.376 driver
Summary: icons degrade Skia Vulkan rendering on nVidia MX130 with 462.376 driver
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Skia
  Show dependency treegraph
 
Reported: 2021-09-28 11:45 UTC by Marta Woods
Modified: 2021-10-07 18:58 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
odt with jpegs of icons (65.79 KB, application/vnd.oasis.opendocument.text)
2021-09-28 11:51 UTC, Marta Woods
Details
Help about details. (226.85 KB, application/vnd.oasis.opendocument.text)
2021-09-29 11:45 UTC, Marta Woods
Details
skia log (144 bytes, text/plain)
2021-09-29 22:02 UTC, Marta Woods
Details
msinfo32 results (17.43 KB, application/vnd.oasis.opendocument.text)
2021-09-29 22:03 UTC, Marta Woods
Details
skia log after ndivia driver update (159 bytes, text/plain)
2021-10-01 11:16 UTC, Marta Woods
Details
results of testing done 10/7/21 (638.39 KB, application/vnd.oasis.opendocument.text)
2021-10-07 15:47 UTC, Marta Woods
Details
skia.log for testing 10/7/21 (150 bytes, text/plain)
2021-10-07 15:48 UTC, Marta Woods
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marta Woods 2021-09-28 11:45:34 UTC
Description:
If i copy and paste a jpeg into a libreOffice word document some of the icons at the top of the page at the top of the page degrade (pixlate, white bar through them).    Further if I open a spreadsheet, with the word document still open, the icons on that window are also degraded. 

I have an HP i7-8565U with 16gb ram running windows 10 pro OS build 19043.1237


Steps to Reproduce:
1. To recreate this use the windows snip tool to put a jepeg into a new document.
2. you may need to past it a couple times (i did 2) 
3. then look at all the icons at the top of the page.
4. then to look at the spreadsheet just open a new one and look at the icons.

Actual Results:
some of the icons at top of word doc and spreadsheet are degraded.  pixelated and with a white bar through them

Expected Results:
no icons should degrade


Reproducible: Always


User Profile Reset: No



Additional Info:
I thought at first it was due to the large number of sheets i had in a couple of my spreadsheets.  but i found that i could create the issue with just a few characters in a doc  and then pasting in a jpeg.
Comment 1 Marta Woods 2021-09-28 11:51:26 UTC
Created attachment 175312 [details]
odt with jpegs of icons
Comment 2 V Stuart Foote 2021-09-28 17:59:14 UTC
Please post LO build details from the Help -> About dialog

Also, could you provide the first part of the Summary, and Components -> Display from running msinfo32.exe (either Screen clip or copy paste as text is fine)--we need to know details of your Windows OS and GPU hardware.
Comment 3 Marta Woods 2021-09-29 11:45:40 UTC
Created attachment 175356 [details]
Help about details.

snips of help about and also the first part of the page after following build link
Comment 4 V Stuart Foote 2021-09-29 14:38:52 UTC
Thanks for the reply, unfortunately not quite what we needed to know.

You are one Windows 10 21H1, with 7.1.5.2 and rendering with Skia Vulkan calls.

We need to know the GPU and driver (both the Windows driver and the Vulkan driver/API). Those are recorded into the C:/users/<userName>/AppData/Roaming/LibreOffice/4/cache/skia.log

While a run of "msinfo32.exe" provides your system details on the Summary, and its Component -> Display provides the installed driver version.  Please post.

Additionally, if you disable the Vulkan rendering and use just Skia raster rendering--do the dropouts in the icons resolve?

Tools -> Options -> View  and add the check for "Force Skia software rendering"

Finally, 7.1.5.2 and the 7.1 branch is reaching EOL either update to 7.1.7 when released (7.1.6.2 has issues with Skia) or move the the 7.2.2 release--quite a bit of rework of Skia has occured.


Here is the link to the 7.2.2 rc1 if you'd care to test now.
https://downloadarchive.documentfoundation.org/libreoffice/old/7.2.2.1/win/x86_64/  open the details link and select a local mirror to download.
Comment 5 Marta Woods 2021-09-29 22:02:07 UTC
Created attachment 175381 [details]
skia log

the requested skia log
Comment 6 Marta Woods 2021-09-29 22:03:24 UTC
Created attachment 175382 [details]
msinfo32 results

the results from msinfo32.exe
Comment 7 Marta Woods 2021-09-29 22:09:04 UTC
I do not know how to disable the Vulkan rendering; hopefully it was your instructions on forcing Skia.  I did go to Tools -> Options -> View  and added the check for "Force Skia software rendering" .  That appears to have taken care of the problem.  I snipped and pasted several times into a document and neither the document nor a spreadsheet had the icon problem.



I will download 7.2.2 tomorrow using the link you provided and give it a try.
Comment 8 V Stuart Foote 2021-09-29 22:30:11 UTC
OK, thanks for posting. Seems your issue is with Skia Vulkan rendering on the nVidia M1X30 GPU. You should also have graphics support from the UHD Graphics 620 on the i7-8565U CPU, but on HP laptops it can a a challenge to assign applications to either the onboard GPU or the discrete GPU.

One thing before moving on to a 7.2.2 build might be to update the nVidia graphics driver for the MX130.  nVidia lists 472.12 as the current driver, while you look to still be on the 462.xx driver--if your HP laptop allows you to update, the more current Vulkan driver *may* help with the issues here.
 
From OPs skia.log
RenderMethod: vulkan
Vendor: 0x10de
Device: 0x174d
API: 1.2.155
Driver: 462.376.0
DeviceType: discrete
DeviceName: GeForce MX130
Denylisted: no

Otherwise, if functioning well with Skia Vulkan disabled and just using Skia software rendering as noted--you should be functional.

Let us know if there are improvements with updated drivers, and/or a move to the 7.2.2 build.  Personally I would pass on the 7.1.6 release build--we know there were build issues requiring an out of schedule 7.1.7 build and release.
Comment 9 Marta Woods 2021-09-30 13:26:53 UTC
Good morning.   I updated the NDIVIA driver this morning, then removed the force skia selection and ran a test.   I was able to paste 3 jpegs into a doc without the problem occurring and there was also no problem on a spreadsheet.   Next  I updated LibreOffice to 7.2.2 and retried the test.  That also had no problems.

So it appears that this was the old NDIVIA driver.  I have no idea why it had just started having problems.

thank you for your assistance.
Comment 10 V Stuart Foote 2021-09-30 13:33:37 UTC
@Marta, great. Could you paste the content of the new skia.log so we know the Vulkan driver that works with your MX130 GPU.
Comment 11 Marta Woods 2021-10-01 11:16:51 UTC
Created attachment 175440 [details]
skia log after ndivia driver update

here is the skia log after the NDIVIA driver update.
Comment 12 V Stuart Foote 2021-10-01 13:14:09 UTC
(In reply to Marta Woods from comment #11)
> Created attachment 175440 [details]
> skia log after ndivia driver update
> 
> here is the skia log after the NDIVIA driver update.

OK, so we have a whack-a-mole issue! This skia.log

RenderMethod: vulkan
Vendor: 0x8086
Device: 0x3ea0
API: 1.2.177
Driver: 0.402.1472
DeviceType: integrated
DeviceName: Intel(R) UHD Graphics 620
Denylisted: no

means your HP ProBook 450 G6 laptop has now shifted the LibreOffice application to its integrated Intel GPU. So we don't know if the new AMD driver has helped.  

This article [1] from HP will help you assign LibreOffice to the "discrete" AMD GPU so we would no for sure how the MX130 GPU behaves with new driver--but if you are content with the Intel GPUs performance with LibreOffice, you can let it go and leave this => WFM

=-ref-=
[1] https://support.hp.com/us-en/document/c03048374
Comment 13 Marta Woods 2021-10-06 15:49:56 UTC
The reference you sent me to is for an AMD board not an NDIVIA board.   I did pull up the NDIVIA board app and do not see any way to assign an app to it.  

From the reference you referred me to it appears I have to copy enough graphic items into the doc to cause the PC to automatically switch to the NDIVIA board.

I have not accomplished that yet.
Comment 14 V Stuart Foote 2021-10-06 16:09:43 UTC
(In reply to Marta Woods from comment #13)
> The reference you sent me to is for an AMD board not an NDIVIA board.   I
> did pull up the NDIVIA board app and do not see any way to assign an app to
> it.  
> 
> From the reference you referred me to it appears I have to copy enough
> graphic items into the doc to cause the PC to automatically switch to the
> NDIVIA board.
> 
> I have not accomplished that yet.

Sorry, right you are!  Here is link for the HP guide for Intel/nVidia "Optimus", control is via the nVidia control panel -> manage 3D settings -> program settings

https://support.hp.com/us-en/document/c03519217

and a general blurb...

https://support.hp.com/us-en/document/c02731962
Comment 15 V Stuart Foote 2021-10-06 17:28:58 UTC
(In reply to V Stuart Foote from comment #14)

> Sorry, right you are!  Here is link for the HP guide for Intel/nVidia
> "Optimus", control is via the nVidia control panel -> manage 3D settings ->
> program settings
> 
> https://support.hp.com/us-en/document/c03519217
> 
> and a general blurb...
> 
> https://support.hp.com/us-en/document/c02731962

And, you'll probably need to add a profile entry for the "C:\Program Files\LibreOffice\program\soffice.exe" executable, I did.

While the https://github.com/Orbmu2k/nvidiaProfileInspector utility is pretty helpful then to tweak things including the Optimus toggle.
Comment 16 Marta Woods 2021-10-07 15:47:30 UTC
Created attachment 175577 [details]
results of testing done 10/7/21
Comment 17 Marta Woods 2021-10-07 15:48:02 UTC
Created attachment 175578 [details]
skia.log for testing 10/7/21
Comment 18 Marta Woods 2021-10-07 15:49:28 UTC
Thank you for the links to the correct instructions.  There is still some distortion of icons.  please review "results of testing done 0/7/21"  I provided a list of actions and results.  the skia log is also attached.
Comment 19 V Stuart Foote 2021-10-07 18:58:14 UTC
Ok Marta, despite the updated drivers (and challenges of getting nVidia Optimus control over the Intel or the discrete GPU) with updated driver you still have issues with Skia Vulkan rendering.

RenderMethod: vulkan
Vendor: 0x10de
Device: 0x174d
API: 1.2.175
Driver: 472.48.0
DeviceType: discrete
DeviceName: NVIDIA GeForce MX130
Denylisted: no


Meaning, simply avoid Vulkan and use Skia software raster rendering instead:

Tools -> Options -> View  and add the check for "Force Skia software rendering"

See if doing so behaves (for either GPU).