Bug 153538 - Writer freezes and crashes without any error message
Summary: Writer freezes and crashes without any error message
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2023-02-10 22:22 UTC by Marcin Segit
Modified: 2024-02-12 21:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Skia logs (463 bytes, application/x-zip-compressed)
2023-03-07 19:08 UTC, Marcin Segit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Segit 2023-02-10 22:22:37 UTC
Description:
From time to time Writer first freezes and then crashes without any error message or apparent reason. I'm able to recover the files but this is becoming quite annoying. Usually the freeze and crash happens during scrolling longer texts but it also happened while copy/pasting text, deleting or even while simply writing something (happened 5 mins ago). Is there any way I can investigate deeper/provide more data?
I did reset the profile, re-installed everything and did as much clean-up as possible, nothing helps.

Steps to Reproduce:
Unable to provide, the crashes appear completely random with a bit higher probability during scrolling long texts (200 pages) or during intensive copy-pasting sessions.

Actual Results:
see above

Expected Results:
see above


Reproducible: Sometimes


User Profile Reset: Yes

Additional Info:
Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 1 Julien Nabet 2023-02-12 08:42:51 UTC
Just in case it's Skia related, you can try https://wiki.documentfoundation.org/QA/FirstSteps#Graphics-related_issues_.28_Skia_.29
Comment 2 Steve Benting 2023-02-23 22:18:55 UTC
I just updated to 7.5.0.3 and found this same behavior.  Occasional crashes on Windows while writing a doc.  The issues I've found have been in much smaller documents than the initial report (one and two pages).  There's no obvious trigger -- in both cases I was just typing.

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Just noticed the "please try" comment below so will review/try that.
Comment 3 Marcin Segit 2023-02-27 20:09:23 UTC
(In reply to Steve Benting from comment #2)
> Just noticed the "please try" comment below so will review/try that.

I tired switching to forced Skia software rendering and it is noticeably slower than the hardware one. I'll try it out for some time and see what happens.

Just an observation: I've removed LO from my system, cleaned the profile folder and installed 7.5 from scratch. I believe that now it crashes less frequently but the crashes still occur.
Comment 4 Steve Benting 2023-02-28 05:38:25 UTC
I also switched to force raster.  I haven't had a problem since then with about as much usage.  Performance isn't noticeably worse with my setup.
Comment 5 Julien Nabet 2023-02-28 16:58:02 UTC
(In reply to Marcin Segit from comment #3)
> (In reply to Steve Benting from comment #2)
> > Just noticed the "please try" comment below so will review/try that.
> 
> I tired switching to forced Skia software rendering and it is noticeably
> slower than the hardware one. I'll try it out for some time and see what
> happens.
> ...
Didn't you mean you "tired to force disabling Skia"?
If you already checked you've got last graphic driver, we need skia.log (see https://wiki.documentfoundation.org/QA/FirstSteps#Graphics-related_issues_(_Skia_)) in order to have required info to blacklist this specific driver and or card.


If you really meant "tired to force enabling Skia", if Skia is disabled by default on your machine, no need to force Skia 
rendering except if you want to try to debug ; it's disabled for some driver/cards because it's buggy.
Comment 6 Marcin Segit 2023-03-01 09:49:35 UTC
(In reply to Julien Nabet from comment #5)
> Didn't you mean you "tired to force disabling Skia"?

I don't have much familiarity with Skia. What I did was selecting "Force Skia software rendering". My understanding is that this is "software rendering" in opposition to "hardware rendering" but I guess I'm wrong. :) Anyway, help/about screen now says "UI render: Skia/Raster".

> If you already checked you've got last graphic driver, we need skia.log (see
> https://wiki.documentfoundation.org/QA/FirstSteps#Graphics-
> related_issues_(_Skia_)) in order to have required info to blacklist this
> specific driver and or card.

Drivers are up to date. I'll be working throughout the rest of the week and see if Writer crashes or not and provide the log afterwards.
Comment 7 Julien Nabet 2023-03-01 10:13:42 UTC
(In reply to Marcin Segit from comment #6)
> (In reply to Julien Nabet from comment #5)
> > Didn't you mean you "tired to force disabling Skia"?
> 
> I don't have much familiarity with Skia. What I did was selecting "Force
> Skia software rendering". My understanding is that this is "software
> rendering" in opposition to "hardware rendering" but I guess I'm wrong. :)
> Anyway, help/about screen now says "UI render: Skia/Raster".
You're right. I suppose Skia/Vulkan corresponds to hardware rendering then.
In this case, it would be useful we have the skia.log so you wouldn't have to check this checkbox each time your recreate your LO profile.

> 
> > If you already checked you've got last graphic driver, we need skia.log (see
> > https://wiki.documentfoundation.org/QA/FirstSteps#Graphics-
> > related_issues_(_Skia_)) in order to have required info to blacklist this
> > specific driver and or card.
> 
> Drivers are up to date. I'll be working throughout the rest of the week and
> see if Writer crashes or not and provide the log afterwards.
Ok, so it seems to confirm some buggy behavior of Skia Vulkan with your specific card model or at least, the up-to-date version driver of your graphic card.
Comment 8 Marcin Segit 2023-03-07 19:08:06 UTC
Created attachment 185824 [details]
Skia logs
Comment 9 Marcin Segit 2023-03-07 19:08:30 UTC
(In reply to Julien Nabet from comment #7)
> > > If you already checked you've got last graphic driver, we need skia.log (see

I'm attaching two log files:
1) skia.log with no forced software rendering
2) skia_raster.log with forced software rendering turned on

With forced software rendering I was not able to reproduce the crash.
Without forced software rendering Writer still crashes but as I wrote before with version 7.5+ this happens less often.

As to the performance with software rendering turned on I notice degradation with two or more 200+ pages docs open at the same time. Other than that it's barely noticeable.
Comment 10 Julien Nabet 2023-03-07 21:36:51 UTC
Thank you for the feedback.
I've submitted this patch to gerrit:
https://gerrit.libreoffice.org/c/core/+/148447

The goal is just to automatically force Skia software rendering instead of using by default Skia hardware rendering.
In brief, it's just a workaround, not a real fix.
Comment 11 Marcin Segit 2023-03-07 21:52:54 UTC
(In reply to Julien Nabet from comment #10)
> In brief, it's just a workaround, not a real fix.

Thanks! Any chance that this can get a proper fix one day? Or should I get a new gfx card? ;)
Comment 12 Commit Notification 2023-03-08 05:38:36 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c0ed486d96fca70704a7f7e24199de9c663003cc

tdf#153538: blacklist GeForce GTX 1070 Ti 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 13 Julien Nabet 2023-03-08 07:41:59 UTC
Patch waiting for review for 7.5 branch here:
https://gerrit.libreoffice.org/c/core/+/148409
Comment 14 Julien Nabet 2023-03-08 07:44:16 UTC
(In reply to Marcin Segit from comment #11)
> (In reply to Julien Nabet from comment #10)
> > In brief, it's just a workaround, not a real fix.
> 
> Thanks! Any chance that this can get a proper fix one day? Or should I get a
> new gfx card? ;)

No idea, first thing is I don't know if the bug comes from the graphic card driver or Skia or Skia implementation in LO.
The pb is we've got no news about the main dev of Skia implementation in LO since several months.

Anyway, let's put this one to FIXED even if it's just a workaround.
Comment 15 Marcin Segit 2023-03-08 08:13:14 UTC
(In reply to Julien Nabet from comment #14)
> Anyway, let's put this one to FIXED even if it's just a workaround.

Sure, thank you very much for your help!
As a side note, I think that my issues started with LO 7.4, so with the workaround I can wait for a proper fix. :) Have a good day!
Comment 16 Commit Notification 2023-03-09 15:05:19 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "libreoffice-7-5":

https://git.libreoffice.org/core/commit/dc4c79b80d8ec24e54744841b2e2ce815e3ace2f

tdf#153538: blacklist GeForce GTX 1070 Ti for Skia hardware rendering

It will be available in 7.5.2.

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 17 Marcin Segit 2023-03-19 15:22:05 UTC
I know that this is marked already as resoled/fixed but wanted to add that the freeze/crash happened again with Skia software rendering turned on. All I did was to Alt+Tab to an open Write document (22 pages long). I think the problem is still there, however, its occurrence is now very limited.
Comment 18 Julien Nabet 2023-03-19 20:38:02 UTC
Ok let’s reopen this one.
However i got no idea then so uncc myself.
Comment 19 Marcin Segit 2024-02-12 20:58:49 UTC
I think this one can be closed. No major crashes so far.