Bug 150645 - Writer crashes after longer usage session
Summary: Writer crashes after longer usage session
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Skia
  Show dependency treegraph
 
Reported: 2022-08-28 15:00 UTC by Poolitzer
Modified: 2022-09-28 14:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Poolitzer 2022-08-28 15:00:06 UTC
Description:
EDITING

I have been unable to find a trigger for the crashes, they happen often enough though to warrant opening an issue.

They happened thus far while using writer as well as draw.

Steps to Reproduce:
Use the writer for an extended period of time.

Actual Results:
The system freezes. After some time writer closes itself.

Expected Results:
 No crashes


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 6; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL
Comment 1 V Stuart Foote 2022-08-28 16:49:13 UTC
See if things are more stable if you disable the Skia Vulkan GPU rendering and just use the Skia software (aka raster) based rendering.

Tools -> Options -> View and check the 'Force Skia software rendering' so that it and the preceding 'Use Skia for all rendering' are both checked & restart LO
Comment 2 Poolitzer 2022-08-28 16:51:40 UTC
Thanks, will give it a shot and report back.
Comment 3 V Stuart Foote 2022-08-28 16:57:03 UTC
And if that improves things, please copy paste content of the skia.log from the LO user cache taken while Vulkan GPU is enabled.

Content we need look like these:

RenderMethod: vulkan
Vendor: 0x8086
Device: 0x8a52
API: 1.2.151
Driver: 0.402.661
DeviceType: integrated
DeviceName: Intel(R) Iris(R) Plus Graphics
Denylisted: no
Comment 4 Poolitzer 2022-09-20 18:52:44 UTC
(In reply to V Stuart Foote from comment #3)
> And if that improves things, please copy paste content of the skia.log from
> the LO user cache taken while Vulkan GPU is enabled.
> 
> Content we need look like these:
> 
> RenderMethod: vulkan
> Vendor: 0x8086
> Device: 0x8a52
> API: 1.2.151
> Driver: 0.402.661
> DeviceType: integrated
> DeviceName: Intel(R) Iris(R) Plus Graphics
> Denylisted: no

Sorry for the long wait time, yes, it definitely improved things. I have tried finding the skia.log file, but was unable to, where would it be?
Comment 5 V Stuart Foote 2022-09-20 19:10:28 UTC
(In reply to Poolitzer from comment #4)

> 
> Sorry for the long wait time, yes, it definitely improved things. I have
> tried finding the skia.log file, but was unable to, where would it be?

On Windows it would be %APPDATA%\LibreOffice\4\cache (or C:\Users\<yourusername>\AppData\Roaming\LibreOffice\4\cache). 

But you may need to first try renable Skia Vulkan rendering briefly so the skia.log gets populated with the Vulkan details--otherwise is will just show:
RenderMethod: raster
Compiler: Clang

which is what the non-accelerated raster only software libs for Skia will show.

The Vulkan related stanzas are what we need to judge a denylist action or possibly additional dev effort.
Comment 6 Poolitzer 2022-09-20 20:00:06 UTC
So only the first checkbox ('Use Skia for all rendering') got activated, which produces the log, but with the clang result...
Comment 7 V Stuart Foote 2022-09-20 20:32:23 UTC
(In reply to Poolitzer from comment #6)
> So only the first checkbox ('Use Skia for all rendering') got activated,
> which produces the log, but with the clang result...

OK, believe that will happen if your GPU fails some graphics testing on startup--to give you a usefull fall-back to Skia lib software rendering (the other check-box will toggle checked).

If you are inclined, a third party utility like RealTech-VR.com's glview [1] utility has a Vulkan test module that can provide the same details as our internal Vulkan module tests.

=-ref-=

[1] https://www.realtech-vr.com/home/glview
Comment 8 Poolitzer 2022-09-20 20:41:32 UTC
The other checkbox does not appear checked, no, but I can imagine that this is the reason using the software.

Running that software is fine, what exactly do you want me to do there? The rendering test?
Comment 9 V Stuart Foote 2022-09-20 20:54:35 UTC
Just need the first from the OpenGL Report, and down to the Device ID: stanza in the Vulkan report.

So for my nVidia K2000 daily driver:

Renderer: Quadro K2000/PCIe/SSE2
Vendor: NVIDIA Corporation
Version: 4.6.0 NVIDIA 473.81
Shading language version: 4.60 NVIDIA
Vulkan Layer (1)
Quadro K2000
API Version: 1.2.175
Driver Version: 473.324.0
Vendor ID: 10deh
Device ID: ffeh



as compared to the LibreOffice generated skia.log 

RenderMethod: vulkan
Vendor: 0x10de
Device: 0xffe
API: 1.2.175
Driver: 473.324.0
DeviceType: discrete
DeviceName: Quadro K2000
Denylisted: no
 
So hope you can see what we'd need from the GLView utility reports.
Comment 10 Poolitzer 2022-09-28 06:53:57 UTC
Hey there, I think I got it \o/

Renderer: AMD Radeon(TM) Graphics
Vendor: ATI Technologies Inc.
Version: 4.6.14830 Core Profile Forward-Compatible Context 21.10.02.03 27.20.21002.3000
Shading language version: 4.60
API Version: 1.2.170
Driver Version: 2.0.179
Vendor ID: 1002h
Device ID: 1636h
Device Type: INTEGRATED_GPU
Comment 11 V Stuart Foote 2022-09-28 13:20:44 UTC
(In reply to Poolitzer from comment #10)

OK, thanks! 

Shows it to be an AMD 1636 Renoir GPU [1], and Vulkan driver 2.0.179 (21.10.02.03 27.20.21002.3000).
 
The combination of AMD GPU and Vulkan driver older than 2.0.198 is already LibreOffice "denylisted" [2] for bug 146402, so this "fixed" by deny listing.
 
You could try updating to current 2.0.233 driver [3] and see if stability with Vulkan rendering improves and report back here. Otherwise continue to operate with Skia raster software rendering.

=ref-=
[1] https://pci-ids.ucw.cz/read/PC/1002
[2] https://opengrok.libreoffice.org/xref/core/vcl/skia/skia_denylist_vulkan.xml
[3] https://gpuopen.com/version-table/
Comment 12 Poolitzer 2022-09-28 14:30:53 UTC
Thanks for figuring this out. I will update the driver and report back.