Bug 154378 - LibreOffice crashed when use tablet/Insert the u-disk, and the recovery destroy the saved file (Skia Vulkan)
Summary: LibreOffice crashed when use tablet/Insert the u-disk, and the recovery destr...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.6.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Julien Nabet
URL:
Whiteboard: target:7.6.0
Keywords:
Depends on:
Blocks: Skia
  Show dependency treegraph
 
Reported: 2023-03-25 11:38 UTC by meltymap
Modified: 2024-01-01 12:59 UTC (History)
4 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 meltymap 2023-03-25 11:38:31 UTC
Description:
windows 11/ Dual monitors/ wacom tablet
Writter crash when I put the pen on tablet or insert a usb drive.
I BELEVE I have save the file every 5 minutes, but the recovery recover it to 2 hours ago and covered my save file.

Steps to Reproduce:
1.open writter / calc
2.put the pen on tablet / insert a usb drive.


Actual Results:
it CRASH!

Expected Results:
it don't CRASH!


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: zh-CN
Module: TextDocument
[Information guessed from browser]
OS: Windows 11
OS is 64bit: yes
Comment 1 m_a_riosv 2023-03-26 01:51:08 UTC
Please test with a clean profile, Menu/Help/Restart in Safe Mode
Comment 2 meltymap 2023-03-26 01:58:05 UTC
It don't crash in safe mode.
I remember I used default setting when I install libreOffice.
Comment 3 QA Administrators 2023-03-26 03:23:45 UTC Comment hidden (noise, obsolete)
Comment 4 m_a_riosv 2023-03-26 03:26:47 UTC
Please test if the issue is with Menu/Tools/Options/View/Graphics output - Skia, enable.
Comment 5 meltymap 2023-03-26 03:32:03 UTC
It don't crash when I turn off the [use skia] check box.
Crash after I turn on the [use skia] again.
Comment 6 m_a_riosv 2023-03-26 03:44:55 UTC
So there is an incompatibility with the skia graphics card.

Please try updating the graphics card driver from the graphics card manufacturer.

And also attach the info in Menu/Help/About LibreOffice (there is an icon to copy).
Comment 7 Telesto 2023-03-26 07:10:20 UTC
(In reply to meltymap from comment #5)
> It don't crash when I turn off the [use skia] check box.
> Crash after I turn on the [use skia] again.

Is Force Software Rendering Checked when turning with Skia on?
Comment 8 meltymap 2023-03-26 08:48:37 UTC
Is Force Software Rendering Checked when turning with Skia on?
(In reply to Telesto from comment #7)
> (In reply to meltymap from comment #5)
> > It don't crash when I turn off the [use skia] check box.
> > Crash after I turn on the [use skia] again.
> 
> Is Force Software Rendering Checked when turning with Skia on?

Force Skia Softwear Rendering Checked -> Not crash.
Force Skia Softwear Rendering Unchecked -> crash.
Comment 9 Julien Nabet 2023-03-26 08:51:13 UTC
As Mario indicated + following https://wiki.documentfoundation.org/QA/FirstSteps#Graphics-related_issues_(_Skia_), please check you got last graphic driver.
If you still reproduce this, we need skia.log to have info to blacklist the card for hardware rendering as a workaround.
Comment 10 Telesto 2023-03-26 08:58:50 UTC
The information contained within the skia.log is likely helpful

1. Open skia.log located in C:\Users\<yourUserName>\AppData\Roaming\LibreOffice\4\cache
2. Post the content of skia.log here in the bug
Comment 11 meltymap 2023-03-26 09:10:30 UTC
update grapic driver, uncheck force skia render-> 
It shows a "reshade" banner ui on top.(?) and feel lags.
don't crash (immediately) when use tablet.
random crash after few minutes. when it restart it auto checked "force skia render".


now the version is 7.5.1.2, but i tested some other versions always has this crash.

Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: CL threaded
Comment 12 meltymap 2023-03-26 09:17:53 UTC
(In reply to Telesto from comment #10)
> The information contained within the skia.log is likely helpful
> 
> 1. Open skia.log located in
> C:\Users\<yourUserName>\AppData\Roaming\LibreOffice\4\cache
> 2. Post the content of skia.log here in the bug

Sry I update the grapic driver and donot know what the last version is and cannot reproduce the crash exactly. (The last version was installed by windows.)

In new crash the log is:

RenderMethod: vulkan
Vendor: 0x10de
Device: 0x2206
API: 1.3.236
Driver: 531.164.0
DeviceType: discrete
DeviceName: NVIDIA GeForce RTX 3080
Denylisted: no

and If it Not crash the log is:

RenderMethod: raster
Compiler: Clang
Comment 13 Julien Nabet 2023-03-26 09:24:35 UTC
Patch on gerrit for master branch:
https://gerrit.libreoffice.org/c/core/+/149617
Comment 14 Commit Notification 2023-03-26 10:29:37 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4938bbcd64e95c9b494bcc32e8a5be3706f00cfa

tdf#154378: blacklist GeForce RTX 3080 for Skia hardware rendering

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 15 Julien Nabet 2023-03-26 11:46:34 UTC
Let's put this one to FIXED even if it's just a workaround.