[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-25 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

V Stuart Foote  changed:

   What|Removed |Added

 Resolution|--- |NOTABUG
 Status|NEW |RESOLVED

--- Comment #13 from V Stuart Foote  ---
(In reply to colourfuldesu from comment #10)
> https://youtu.be/lXYnAcrZVzI
> 
> I tested a bit, if I disable "use skia for all rendering", I can launch
> LibreOffice just as if I enable "use skia for all rendering" and "force skia
> software rendering" but this time 0:20, I cant launch LibreOffice if I just
> disable skia at all
> 
> 0:40 then I try to using dgpu then switch to igpu, no change
> 
> 1:20 I enable force skia through config and LibreOffice can launch
> 
> so the fix is if I disable skia, it launch. If I enable skia AND force skia,
> it launch. but I need to do the 2nd solution to make libre launch with
> disabled skia.
> 
> somehow if I force enable skia in safe mode, the settings just reverts back
> that I need to configure it though config file.
> 
> I dont know how do I make my dgpu RX5500M came up in vulkan mode, I would
> prefer it to be the other igpu for battery life reasons
> 
> sorry for the late reply, iam just really lazy in college hahaha

The "Switchable Graphics" of making LibreOffice a High Performance is not
helping as the Skia Vulkan rendering for the dGPU is failing graphics tests
just as the iGPU on the APU is.

Simply put, it looks like you will not be able to run LibreOffice with Skia /
Vulkan vector shaders. Might improve with an AMD Vulkan driver change, or not.

Otherwise, stay out of the SafeMode for doing configuration--it doesn't
persist. And, your LibreOffice install behaves as expected.  

Editing the registrymodification.xcu to copy in the UseSkia and ForceSkiaRaster
stanzas at the 1:18 mark is all that you need.

Edit to toggle the ForceSkiaRaster "True" at 5:10 mark is where you need to be
for running LibreOffice.

You can edit it to "False" to test the Vulkan rendering (with either GPU set
from "Switchable Graphics"). And if/when the Vulkan graphics tests fail, the
stanza will be reset to "True"--leaving you with UseSkia and ForceSkiaRaster
both true.

You can set both "False" to force GDI rendering paths, non-Skia.

To be able to denylist your AMD RX 5500M dGPU (which actually only avoids
running the Vulkan graphics testing and sets ForceSkiaRaster) we add the device
and Vulkan driver details to the denylist. We have both the iGPU, and dGPU
details in comment 7 from GLview, just a little reluctant to deny both as we've
had other OpenGL era and Vulkan issues with AMD "Switchable Graphics"
(Adrenaline, or Win10/11 integrated) and nVidia "Optimus" (nVidia control
panel, or Win10/11 integrated).

So, I think you are good for now--but check your drivers from time to time and
see if Vulkan behaves.

Setting => NAB as the Skia tests are doing what they should, and we can't
really control the Vulkan driver support per GPU.

p.s. -- noticed you have the Java based Nonlinear Solver extension enabled in
your install, you can uncheck it in the install wizard and that will save
several seconds of config during LO launch.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-25 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

--- Comment #12 from Julien Nabet  ---
(In reply to colourfuldesu from comment #11)
> for the vulkan thingy, idk what's the benefit but it shows as OpenCl in that
> LibreOffice\4\cache folder
> 
> https://imgur.com/a/spGUe12

Just for the record, Vulkan is related to "openGL", "openCL" is another
unrelated thing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-25 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

--- Comment #11 from colourfuld...@gmail.com ---
for the vulkan thingy, idk what's the benefit but it shows as OpenCl in that
LibreOffice\4\cache folder

https://imgur.com/a/spGUe12

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-25 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

--- Comment #10 from colourfuld...@gmail.com ---
https://youtu.be/lXYnAcrZVzI

I tested a bit, if I disable "use skia for all rendering", I can launch
LibreOffice just as if I enable "use skia for all rendering" and "force skia
software rendering" but this time 0:20, I cant launch LibreOffice if I just
disable skia at all

0:40 then I try to using dgpu then switch to igpu, no change

1:20 I enable force skia through config and LibreOffice can launch

so the fix is if I disable skia, it launch. If I enable skia AND force skia, it
launch. but I need to do the 2nd solution to make libre launch with disabled
skia.

somehow if I force enable skia in safe mode, the settings just reverts back
that I need to configure it though config file.

I dont know how do I make my dgpu RX5500M came up in vulkan mode, I would
prefer it to be the other igpu for battery life reasons

sorry for the late reply, iam just really lazy in college hahaha

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

--- Comment #9 from V Stuart Foote  ---
(In reply to V Stuart Foote from comment #8)
> Please test and let us know.

And if you can get the Radeon RX 5500M (Navi 14) to come up in Vulkan rendering
mode, as listed in the skia.log, please post that here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

--- Comment #8 from V Stuart Foote  ---
(In reply to V Stuart Foote from comment #7)
> Pertinent details from the GLview 7.0 run 7-zip archive, in attachment
> 193809 [details]
> 
> For some reason, system is reporting two GPUs to GLview:
> 

OK, this makes more sense now. The Ryzen 5 5600H APU has integrated graphics,
and the laptop also has discrete GPU Radeon RX 5500M (Navi 14).

So you can use the AMD Radeon Settings and use the "Switchable Graphcis" tab to
assign the LibreOffice program (soffice.exe/soffice.bin) to always run in "High
Performance". Restart, verify the settings. Then launch LibreOffice again.

May still get the graphics test assert and fallback, but you should be able to
manually adjust the LibreOffice profile for 'UseSkia' and 'ForceSkiaRaster' to
check behavior with Skia / Vulkan rendering or forced Skia / Raster rendering.

Please test and let us know.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

V Stuart Foote  changed:

   What|Removed |Added

 Status|NEEDINFO|NEW

--- Comment #7 from V Stuart Foote  ---
Pertinent details from the GLview 7.0 run 7-zip archive, in attachment 193809

For some reason, system is reporting two GPUs to GLview:


AMD Radeon(TM) Graphics
1.3.260
1638
1002
2.0.279

and oddly, also


Radeon RX 5500M
1.3.277
7340
1002
2.0.299

resources assigned to the first are minimal, while the second Radeon RX 5500M
should be primary APU for this laptop.

The "successful" LO launch/skia.log is for the first generic Radeon Graphics
device. So could be Vulkan calls passed into that GPU are causing the
assert/fallback.

Not apparent that our simple deny list process can accommodate?  Meanwhile,
edit the LO user profile 'registrymodifications.xcu' [1] and set the Skia
stanzas UseSkia and ForceSkiaRaster to "True" [2]


=-ref-=
[1] defaults into user %APPDATA%  so normally
C:\Users\\AppData\Roaming\LibreOffice\4\User
[2] these stanzas in the .XCU to force Skia / raster rendering
true
true

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

V Stuart Foote  changed:

   What|Removed |Added

 Attachment #193809|application/xml |application/x-7z-compressed
  mime type||

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

--- Comment #6 from colourfuld...@gmail.com ---
If LibreOffice can launch, the cache says:
RenderMethod: raster
Compiler: Clang

Oterwise:
RenderMethod: vulkan
Vendor: 0x1002
Device: 0x1638
API: 1.3.260
Driver: 2.0.279
DeviceType: integrated
DeviceName: AMD Radeon(TM) Graphics
Denylisted: no

https://imgur.com/a/UaoYutK

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

--- Comment #5 from colourfuld...@gmail.com ---
Created attachment 193809
  --> https://bugs.documentfoundation.org/attachment.cgi?id=193809=edit
idk, just export of openGL viewer

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160757] cant start libre office except in safe mode (Skia / Vulkan)

2024-04-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160757

V Stuart Foote  changed:

   What|Removed |Added

 Blocks||129062
Summary|cant start libre office |cant start libre office
   |except in safe mode |except in safe mode (Skia /
   ||Vulkan)

--- Comment #4 from V Stuart Foote  ---
Your new video shows the issue is with the Skia / Vulkan accelerated vector
graphics failing graphics testing on startup.

After that failure, relaunch or next launch will be with Vulkan GPU
acceleration disabled.

The "Force Skia software rendering" still uses the Skia libs to control GPU but
shifts to a raster frame based rendering.

Unchecking both Skia related items, reverts to GDI based graphics rendering.
That can be CPU only or Hardware accelerated. So there are actually four (4)
rendering paths.

The Safe Mode... dialog is a little unclear. When it launches it opens with GDI
rendering, with Hardware Acceleration controlled by CPU. 

IIUC the 'Configure' section to 'Disable hardware acceleration (OpenGL, OpenCL,
Vulkan)' will shift from Vulkan vector to raster frame based GPU--but is more
directed to not use OpenCL for Calc formulas or OpenGL calls in Impress
animations.

And of course resetting to Factory settings and restarting sends you back
through the GPU test loops.

There is a QA/dev option to denylist specific GPU hardware and Vulkan driver
combinations.  That prevents the initial testing of the GPU with Skia Vulkan
calls and launches directly into Skia lib raster frame mode.

We would need the content of the skia.log from %APPDATA%\LibreOffice\4\cache
when the Vulkan details are written. Something like this (from my nVidia GPU)

RenderMethod: vulkan
Vendor: 0x10de
Device: 0x1380
API: 1.3.277
Driver: 552.48.0
DeviceType: discrete
DeviceName: NVIDIA GeForce GTX 750 Ti
Denylisted: no

But can't use it if your skia.log says:
RenderMethod: raster
Compiler: Clang

Which will happen when the Vulkan graphics tests fail, then on restart you fall
back to skia raster rendering--or if you have forced raster rendering from the
Tools -> Options -> View panel

Please post what you have, or can figure out for your GPU and Vulkan driver.
We have found the GLView utility [1] from realtech-vr.com to provide usable
details.

=-ref-=
[1] https://www.realtech-vr.com/home/?page_id=1402


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=129062
[Bug 129062] [META] Skia library bugs
-- 
You are receiving this mail because:
You are the assignee for the bug.