Bug 146759 - LibreOffice crashes repeatedly using macOS 12.1 Monterey with AutoSave on, or upon default background saving
Summary: LibreOffice crashes repeatedly using macOS 12.1 Monterey with AutoSave on, or...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.0.1 rc
Hardware: Other macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 147445 (view as bug list)
Depends on:
Blocks: MacOS-Wishlist
  Show dependency treegraph
 
Reported: 2022-01-14 10:28 UTC by PeeWee
Modified: 2022-09-02 14:38 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Crash report for LO 7.2.5 (260.75 KB, application/vnd.oasis.opendocument.text)
2022-01-19 10:50 UTC, PeeWee
Details
LO 7.3.0.2 crash report (43.46 KB, text/rtf)
2022-01-27 14:19 UTC, PeeWee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PeeWee 2022-01-14 10:28:06 UTC
LibreOffice keeps crashing and shutting down.
LibreOffice does save and recover any documents that are open.
Documents that were open are two Writer files and one Impress file.

Operating system macOS 12.1 Monterey running on a Mac Mini, NOT an M1 Mac Mini.
Comment 1 Buovjaga 2022-01-14 10:53:37 UTC
What if you launch it in safe mode, I think from the terminal with

path/to/libreoffice --safe-mode

It might be due to Skia: https://wiki.documentfoundation.org/ReleaseNotes/7.3#Platform_Compatibility
Comment 2 Alex Thurgood 2022-01-14 15:58:57 UTC
@PeeWee : when it crashes, can you get any Apple Trace information ? 
e.g. from the Console.app logs ?

It crashes quite regularly for me too, but I have where possible reported the precise circumstances under which this happens.


We need more detail from you I'm afraid.
Comment 3 Telesto 2022-01-15 06:08:54 UTC
Sounds like bug 145843.. or to put it differently, I'm experiencing the same issue
Comment 4 PeeWee 2022-01-15 09:12:25 UTC
Tested LO 7.3 in Windows 10, Ubuntu, and macOS 10.15.7 Catalina.
The result was LO 7.3 operated without any crashes.

It appears the crashing problem is limited to macOS 12.1 Monterey.
Comment 5 PeeWee 2022-01-15 11:15:48 UTC
When LO 7.3 crashes on my Mac Mini, I am updating GS7306 Getting Started with Impress to version 7.3. This means that I have two Writer files and one Impress file open.

LO7.3 is stable for about 5 minutes, then starts crashing immediately I start to work on the open files. LO does recover and save the files, then LO opens the files. I try to save, but LO 7.3 immediately crashes again. This makes it impossible to use LO 7.3 on my main Mac computer running macOS 12.1 Monterey.

When LO 7.3 crashes no report is generated that I could save for further use.

Hope the above helps in solving the problem.

I am not a software expert, so would need some help if more information is required.
Comment 6 Telesto 2022-01-15 13:42:04 UTC
(In reply to PeeWee from comment #5)
As far I'm aware it's about amount of dialogs.. After 3 dialogs open the same time it getting unstable. (So Wizard at impress + tip of the day + about Window)  It's Skia related: only happens with Raster; not with Vulkan  

Reproducing it is for me not the issue.. But lacking a symbol build for a decent backtrace (and/or to check of the build environment matters for the issue to occur). However, me and LODE aren't friends, yet..
Comment 7 Alex Thurgood 2022-01-15 13:47:27 UTC
@PeeWee : have you allowed the LO 7.3 version complete disk access under macOS security preferences?

I've noticed when working with dev builds in lldb debugging sessions repeated security warnings on the console and am wondering whether there are new security requirements under Monterey that the app bundle doesn't take into account.
Comment 8 Buovjaga 2022-01-15 14:06:26 UTC
Telesto: let me know, if you need help with LODE and we can have a screensharing call. I've never set up a dev environment on macOS, but maybe I can help.
Comment 9 PeeWee 2022-01-16 08:50:40 UTC
Alex - LO 7.3 had full security access. No other software has a problem Monterey.

Telesto - do not understand your comment about dialogs. Three files open, but no dialogs open. Move the mouse cursor and LO immediately crashes.

System Integrity Protection (SIP) in macOS was switched off because I was sorting out a problem of an unwanted application that was refusing to be deleted.
Comment 10 Telesto 2022-01-16 09:29:00 UTC
(In reply to PeeWee from comment #9)
> Telesto - do not understand your comment about dialogs. Three files open,
> but no dialogs open. Move the mouse cursor and LO immediately crashes.

I can't repro my problem that easy.. so maybe it's something different.

Maybe enter "codesign -vvv --deep --strict /Applications/LibreOffice.app" in the terminal?
Comment 11 Alex Thurgood 2022-01-16 13:31:23 UTC
My bug report 146765 also relates to crashing when moving the mouse cursor in a separate window to a Writer form document - possibly related to your report.
Comment 12 PeeWee 2022-01-19 10:50:58 UTC
Created attachment 177644 [details]
Crash report for LO 7.2.5
Comment 13 PeeWee 2022-01-19 10:57:12 UTC
LO 7.2.5 crashes with 2 Writer files open on my Mac Mini running macOS 12.1 Monterey. The attached crash report was generated by my Mac Mini. This crash may be related to the crashing problem for LO 7.3.

If you go to LibreOffice > Preferences > Options > Load/Save > General and switch off "Save AutoRecovery information every" stops LO 7.2.5 from crashing. Also, the time interval between crashes on LO 7.3 increases from every 5 minutes approx to every 15 minutes approx with this option switched off.
Comment 14 PeeWee 2022-01-19 10:57:39 UTC Comment hidden (obsolete)
Comment 15 QA Administrators 2022-01-20 03:35:03 UTC Comment hidden (obsolete)
Comment 16 Alex Thurgood 2022-01-20 19:32:25 UTC
@PeeWee

Ah, this crashing on AutoSave is/was a known bug in a previous version of LO, which appears to have resurfaced - sigh.

The fact that it still crashes after 15 min or so, even when you specifically turn the autosave off is due to the automatic factory save default of file activity within the LO process, which occurs every 10 to 15 min or so (I don't remember exactly what this is, but I seem to recall that active data in the file is stored in a lockfile and it is this that gets written to every 15 min or so. Perhaps someone more knowledgable with the internal workings can chime in here.
Comment 17 PeeWee 2022-01-27 14:19:15 UTC
Created attachment 177839 [details]
LO 7.3.0.2 crash report

Testing LO 7.3.0.2 on my Mac Mini running macOS 12.2 Monterey and needless to say, LO crashed after a few minutes of operating. I have attached a crash report generated by my Mac Mini to help solving this problem
Comment 18 Telesto 2022-01-27 14:43:58 UTC
(In reply to PeeWee from comment #17)
> Created attachment 177839 [details]
> LO 7.3.0.2 crash report
> 
> Testing LO 7.3.0.2 on my Mac Mini running macOS 12.2 Monterey and needless
> to say, LO crashed after a few minutes of operating. I have attached a crash
> report generated by my Mac Mini to help solving this problem

Based on my reading of frame 31 to 21 of thread 0 I would say expect this to be bug 145843

Which is likely caused by compiler (Xcode?) used to build release builds. My own build is running fine. So it's or compiler level issue or some work around is needed at the Skia level
Comment 19 Alex Thurgood 2022-01-27 15:06:30 UTC
Unfortunately, still no repro for me with:

Version: 7.3.0.1 / LibreOffice Community
Build ID: 840fe2f57ae5ad80d62bfa6e25550cb10ddabd1d
CPU threads: 8; OS: Mac OS X 12.1; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

I set document autosave to 3 min.

Automatic Backup was not set (not sure whether that makes any difference, et not specified by OP in initial report).

Opened several other files, at the same time, switching from one to the other to make changes, then totally switching app contexts to move to a different app and back again - no crash.


Notice that the trace file provided by the OP includes this line, which is particularly pointed out by the Apple trace system in thread 0 instruction stream:

 [f3]a4 5d c3 48 39 fe 74-f9 48 01 d6 48 01 d7 48  ..].H9.t.H..H..H	<==

 
Unfortunately, I have no idea what that means.
Comment 20 Telesto 2022-01-28 15:57:22 UTC
(In reply to Alex Thurgood from comment #19)
> Unfortunately, still no repro for me with:
Try Skia software rendering/ aka Skia Raster. I'm having no issue with Vulkan.
The watchdog enables Forced software rendering by default on my Macbook
Comment 21 PeeWee 2022-01-31 12:27:07 UTC
Update on the crash problem.

LO 7.3.0.3 installed on an INTEL silicon Mac Mini running macOS 12.2 Monterey.
Open one Writer document and click once in the document and LO 7.3.0.3 immediately crashes.

LO 7.3.0.3 installed on an Apple silicon M1 MacBook Air running macOS 12.2 Monterey.
Open one Writer document and worked on the document doing several edits, copying and pasting for over 3 hours. LO did not crash and I closed LO normally.

Conclusion - looks like the crash problem only happens on INTEL powered Macs running macOS 12 Monterey.
Comment 22 bones 2022-02-03 12:36:04 UTC
I have the same problem on my iMac (Intel Proc. MacOS 12.2, LO 7.3.0.3).
 
I have unchecked in Preferences, LibreOffice, View, the option "Use Skia for all rendering" and the probmlem seems to be gone.

In another test, I activated Skia, but deactivated "Force Skia software rendering". This also seems to solve the problem.
Comment 23 Buovjaga 2022-02-03 12:41:59 UTC
Skia will be deactivated by default on macOS in 7.3.1: https://git.libreoffice.org/core/commit/290957ad1383565c97201360defdeae9ae5ef502
Comment 24 PeeWee 2022-02-03 14:12:49 UTC
I have also deactivated Skia on my Intel Mac Mini running macOS 12.2 Monterey. LO 7.3.0 appears to behave and has had no crashes so far as I work on one of the LO user guide chapters.
Comment 25 Buovjaga 2022-02-15 18:04:01 UTC
*** Bug 147445 has been marked as a duplicate of this bug. ***
Comment 26 Xisco Faulí 2022-03-09 11:47:48 UTC
Thanks for reporting this issue.
Could you please try with LibreOffice 7.3.1 from
https://www.libreoffice.org/download/download/ ?
Comment 27 PeeWee 2022-03-09 14:45:41 UTC
I am using LibreOffice downloaded from
 https://www.libreoffice.org/download/download/


(In reply to Xisco Faulí from comment #26)
> Thanks for reporting this issue.
> Could you please try with LibreOffice 7.3.1 from
> https://www.libreoffice.org/download/download/ ?
Comment 28 Xisco Faulí 2022-03-09 14:48:42 UTC
(In reply to PeeWee from comment #27)
> I am using LibreOffice downloaded from
>  https://www.libreoffice.org/download/download/
> 
> 
> (In reply to Xisco Faulí from comment #26)
> > Thanks for reporting this issue.
> > Could you please try with LibreOffice 7.3.1 from
> > https://www.libreoffice.org/download/download/ ?

Share the info from Help - About LibreOffice