Bug 147967 - Libreoffice Writer crashes after trying to insert a formula via the formula editor (macOS)
Summary: Libreoffice Writer crashes after trying to insert a formula via the formula e...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.1 rc
Hardware: All macOS (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0
Keywords: bibisected, bisected, haveBacktrace, regression
: 149791 (view as bug list)
Depends on:
Blocks: macOS-UI-polish
  Show dependency treegraph
 
Reported: 2022-03-13 18:36 UTC by Gustavo
Modified: 2022-12-20 10:25 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
LLdb debug backtrace (21.52 KB, text/plain)
2022-03-29 10:37 UTC, Alex Thurgood
Details
Screencast of hang when attempting to insert a formula object into Writer (2.93 MB, video/quicktime)
2022-05-03 08:12 UTC, Alex Thurgood
Details
macOS crash log (11.39 KB, text/plain)
2022-07-12 19:29 UTC, Oliver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo 2022-03-13 18:36:02 UTC
Description:
I've tried a clean install of 7.3.1 and 7.2.6 for macOS (intel)

After I create or edit a formula, when I clic anywhere to exit the formula editor and continue working on the document, the app crashes.

It's not something new, I've been experiencing for months...


Steps to Reproduce:
1.Insert a formula
2.Exit the formula editor by clicking anywhere
3.

Actual Results:
Crashes everytime

Expected Results:
Return to the document


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
I've tried clean installs, with no language packs nor extensions (7.2.6 and 7.3.1)

Tried also in safe mode, same result
Comment 1 Gustavo 2022-03-28 18:11:58 UTC
I have recorded a video of the bug, hope it helps

https://www.youtube.com/watch?v=KMtiFyoBnnQ
Comment 2 Alex Thurgood 2022-03-29 09:55:42 UTC Comment hidden (obsolete)
Comment 3 Alex Thurgood 2022-03-29 09:56:32 UTC
Also check to see whether automatic backups are turned on, and try turning them off.
Comment 4 Alex Thurgood 2022-03-29 09:58:13 UTC Comment hidden (obsolete)
Comment 5 Alex Thurgood 2022-03-29 10:02:40 UTC
Ahh, I thought you meant File > New > Formula, but instead you meant :

1) Open a Writer document
2) Menu Insert > Object > Insert Formula Object.
3) Click anywhere in the document space > Crash


Confirming.

Version: 7.3.1.3 / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 8; OS: Mac OS X 12.2.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 6 Alex Thurgood 2022-03-29 10:32:19 UTC
Reproducible also in daily master dev build

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 60fc8c31beae4e822601ab9e7ea1cb0191c6f66b
CPU threads: 8; OS: Mac OS X 12.2.1; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded
Comment 7 Alex Thurgood 2022-03-29 10:37:09 UTC
Created attachment 179183 [details]
LLdb debug backtrace

Output from lldb debug backtrace
Comment 8 Aron Budea 2022-03-31 04:35:48 UTC
No crash here with LO 7.4.0.0.alpha0+ (4015b22d) / macOS.

In the screencast in comment 1, I can see a strange placement of the selection, I wonder if the crash somehow depends on that.
Comment 9 Xisco Faulí 2022-04-01 10:41:57 UTC
I can't reproduce it in

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 4015b22dbc10bc246a3ef704d8b75e8f8cdca519
CPU threads: 8; OS: Mac OS X 11.6.2; UI render: default; VCL: osx
Locale: en-US (en_ES.UTF-8); UI: en-US
Calc: threaded
Comment 10 Commit Notification 2022-04-01 10:48:16 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "master":

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

tdf#147967 macos crash on insert formula

It will be available in 7.4.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 11 Xisco Faulí 2022-04-01 14:28:25 UTC
hi Gustavo, Alex,
In approximately 10-20 hours from now there will be a new daily build available including Noel's blind fix for this issue.
Could you please download it from https://dev-builds.libreoffice.org/daily/master/current.html, install it and test it ?
Thanks in advance
Comment 12 Alex Thurgood 2022-04-01 15:22:32 UTC
(In reply to Xisco Faulí from comment #11)
> hi Gustavo, Alex,
> In approximately 10-20 hours from now there will be a new daily build
> available including Noel's blind fix for this issue.
> Could you please download it from
> https://dev-builds.libreoffice.org/daily/master/current.html, install it and
> test it ?

Just my luck, I downloaded this morning's dev build :-)
If I remember over the weekend, I'll give the latest version a spin.
Comment 13 Gustavo 2022-04-01 18:21:48 UTC
(In reply to Xisco Faulí from comment #11)
> hi Gustavo, Alex,
> In approximately 10-20 hours from now there will be a new daily build
> available including Noel's blind fix for this issue.
> Could you please download it from
> https://dev-builds.libreoffice.org/daily/master/current.html, install it and
> test it ?
> Thanks in advance

I'll give a try tomorrow

Thanks!
Comment 14 Gustavo 2022-04-02 17:43:13 UTC
I've just tested and the problem is still there, I've made a better video this time.

https://youtu.be/8t0PDqxFZX4
Comment 15 Xisco Faulí 2022-04-04 08:25:07 UTC
(In reply to Gustavo from comment #14)
> I've just tested and the problem is still there, I've made a better video
> this time.
> 
> https://youtu.be/8t0PDqxFZX4

Please, share the info from Help - About LibreOffice
Comment 16 Gustavo 2022-04-04 12:35:31 UTC
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: a3b141624930b6eb96b3273fee8396476db6d116
CPU threads: 8; OS: Mac OS X 12.3.1; UI render: Skia/Metal; VCL: osx
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded

I have recently updated to Monterey, with Catalina was exactly the same...
Comment 17 Alex Thurgood 2022-04-04 15:26:43 UTC
Confirming that the crash still occurs with

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: d925d1ca9e03863650dd3e450331598624f21724
CPU threads: 8; OS: Mac OS X 12.2.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded
Comment 18 Oliver 2022-04-04 22:27:01 UTC
(In reply to Alex Thurgood from comment #17)
> Confirming that the crash still occurs with
> 
> Version: 7.4.0.0.alpha0+ / LibreOffice Community


Same here!
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: d925d1ca9e03863650dd3e450331598624f21724
CPU threads: 2; OS: Mac OS X 10.13.6; UI render: Skia/Raster; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

=> Crash!



I could track it down - 7.1.8.1 is working fine, 

first version with bug is 7.2.0.1 (did not check the alpha versions...)

Version: 7.2.0.1 / LibreOffice Community
Build ID: 32efc3b7f3a71cfa6a7fa3f6c208333df48656cc
CPU threads: 2; OS: Mac OS X 10.13.6; UI render: default; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

=> Crash!
Comment 19 Oliver 2022-04-29 15:52:08 UTC
any updates on this topic?
Comment 20 Alex Thurgood 2022-05-03 08:11:49 UTC
Unfortunately, it is even worse with the latest daily dev build from master :

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 69f412459257398a7d779541dad95aa7227a5e74
CPU threads: 8; OS: Mac OS X 12.2.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded

See attached screencast.

For some unexplained reason, the text box for character entry is displayed outside of the formula display, leaving another, presumably background window in the display area.

The app hangs almost instantaneously, as soon as the cursor is moved into the display area. Unfortunately, the Quicktime screen cast tool doesn't show the spinning beachball.
Comment 21 Alex Thurgood 2022-05-03 08:12:22 UTC
Created attachment 179895 [details]
Screencast of hang when attempting to insert a formula object into Writer
Comment 22 Gustavo 2022-06-07 18:25:35 UTC
Any news about the bug, I'm using parallels in order to work without FC every time I edit a formula (maths teacher...)
Comment 23 Alex Thurgood 2022-06-08 10:14:04 UTC
(In reply to Gustavo from comment #22)
> Any news about the bug, I'm using parallels in order to work without FC
> every time I edit a formula (maths teacher...)

@Gustavo : Unfortunately, there are no macOS-specific developers/contributors within the project (to my knowledge). This means that it can take some time before a bug that only affects macOS gets any attention, especially in a less-commonly used module such as LO Math (the same is true of LO Base).

For example, Collabora Office (in the AppStore)
Version: 21.06.29.1
Build ID: 900891c3b42e80e8d3970fd5fc02b67022ae3795
CPU threads: 8; OS: Mac OS X 12.2.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

doesn't appear to have this bug (yet), so you might want to try that instead.
Comment 24 Xisco Faulí 2022-06-30 14:29:13 UTC
*** Bug 149791 has been marked as a duplicate of this bug. ***
Comment 25 Aron Budea 2022-07-01 03:41:02 UTC
I'm still not able to reproduce with a Macmini8,1. If someone who can would be interested in bibisecting it, that would be helpful. For those unfamiliar with the procedure, this involves doing a git bisect on a repository full of binary builds, for each source commit. It involves downloading a git repository ~8-10 GB in size.

The general instructions are at [1], the Mac repos (one per version are at [2]. Based on the information so far, bibisect-mac64-7.2 should have the change responsible for this bug. The start script in [3] might be useful.

[1] https://wiki.documentfoundation.org/QA/Bibisect
[2] https://wiki.documentfoundation.org/QA/Bibisect/macOS#Versions
[3] https://wiki.documentfoundation.org/Installing_in_parallel/macOS
Comment 26 Oliver 2022-07-03 15:54:06 UTC
> If someone who can would
> be interested in bibisecting it, that would be helpful. 

I hope I find some free time this week - if so, I'll give it a try!
Comment 27 Oliver 2022-07-07 22:37:08 UTC
hej there!

Results of bibisect:

 8b3cc81bf81e8a79b21eccc3c50f3bb2c8bb780c is the first bad commit
commit 8b3cc81bf81e8a79b21eccc3c50f3bb2c8bb780c
Author: libreoffice <libreoffice@libreoffices-Mac-mini.local>
Date:   Sat Jun 12 05:50:01 2021 +0200

    source 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac

    source 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac

:040000 040000 0898605d41f94988fbe102e3aca0f75f64177b06 315482b38a08e6ca90089efaaa266e90d300a912 M	LibreOffice.app


$ git bisect log
# bad: [20651168152192ab9e0f9d12a94228b24125b0d4] source 3d311c6d63eafbe2f76d6f1768dc3f675970a55a
# good: [7ae9dc0eb055b3d88573a247cf3f756b06ad5cad] source 738bcf5e9a8c443d60c29c3a8068e8c16c72638a
git bisect start 'latest' 'oldest'
# good: [50ad231e1dd92826b8c9a931769630ad0d0b6073] source c056b630ef97aab139625d0a7c085825c8a9eb7f
git bisect good 50ad231e1dd92826b8c9a931769630ad0d0b6073
# good: [7b3ed1b6e3f4da5b55a2ea4f41444f7671cabb6a] source 452fcbe0792aa10042bb8cd2cfd6cd29ca754be5
git bisect good 7b3ed1b6e3f4da5b55a2ea4f41444f7671cabb6a
# good: [6da75219ab58a7254eed23e57ab8545b5e19f83e] source 2634bc59092b24217d984a5845365d703bdb08d2
git bisect good 6da75219ab58a7254eed23e57ab8545b5e19f83e
# bad: [9b12bb46b8be875020c9748c9875f62f7dc3cec9] source 168c1df143ac493d554ea4c2bff5314b67581b51
git bisect bad 9b12bb46b8be875020c9748c9875f62f7dc3cec9
# good: [9fb3e8344c6a845916c45a0759f2b4e7f021b7f8] source f1d68d82ae5a2de18708bf71a93e4d4a42dfa45b
git bisect good 9fb3e8344c6a845916c45a0759f2b4e7f021b7f8
# bad: [fbb9b29486fa47b794f4f70baa83b376fa5dd2fd] source 936af331ba6f5073aeaa0f10f5f2af1def1d74c6
git bisect bad fbb9b29486fa47b794f4f70baa83b376fa5dd2fd
# good: [f43bafbe1a4990403b6c8346e5237578ccb6a9e6] source e4b5aaade285ecad39332ad8b195738feb51151a
git bisect good f43bafbe1a4990403b6c8346e5237578ccb6a9e6
# bad: [4a56ca29a76a318a98133546cda6914d2f0b8c38] source 8ee22cb0bd6e741a553ef7d5b78cedc7ca669939
git bisect bad 4a56ca29a76a318a98133546cda6914d2f0b8c38
# bad: [44429fd576425419a646c5a0c9a73209349590b7] source d47ac2ebdb495b025eb26e17cbbe2509797c31f0
git bisect bad 44429fd576425419a646c5a0c9a73209349590b7
# bad: [d5a7e05d75acac18b405dcb7d97d52afa0840f94] source be6111c0679b9c5249250ada2814b1a00c8d8c0a
git bisect bad d5a7e05d75acac18b405dcb7d97d52afa0840f94
# bad: [e2be10bc47ffd65d386b7b68477c46b14b0ec00f] source 1d15f180a6e6a45b74b602402176f0d6e4372cc6
git bisect bad e2be10bc47ffd65d386b7b68477c46b14b0ec00f
# bad: [8b3cc81bf81e8a79b21eccc3c50f3bb2c8bb780c] source 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac
git bisect bad 8b3cc81bf81e8a79b21eccc3c50f3bb2c8bb780c
# good: [7cc5a5e50011763913f61301333339354f495950] source 30aa33e6a6b9fb230af96f619db27fcaf31ef914
git bisect good 7cc5a5e50011763913f61301333339354f495950
# first bad commit: [8b3cc81bf81e8a79b21eccc3c50f3bb2c8bb780c] source 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac
Comment 28 Aron Budea 2022-07-08 00:36:13 UTC
Thanks for that! So the source sha is the following commit:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac
author		Noel Grandin <noel.grandin@collabora.co.uk>	2021-05-29 08:34:28 +0200
committer	Noel Grandin <noel.grandin@collabora.co.uk>	2021-05-29 13:37:25 +0200

IsDisposed->isDisposed in vcl/../window
Comment 29 Noel Grandin 2022-07-09 16:50:59 UTC
I can reproduce this on my macbook, can someone trigger this with a debug build and get a backtrace please?
Comment 30 Oliver 2022-07-12 19:21:52 UTC
(In reply to Noel Grandin from comment #29)
> I can reproduce this on my macbook, can someone trigger this with a debug
> build and get a backtrace please?

Not a full backtrace as I don't have a debug version of LO (sorry, no build chain here. )-: ), but the stack macOS gives me after the crash:

--------------------------------------------------------

Date/Time:       2022-07-12 21:14:49 +0200
OS Version:      Mac OS X 10.13.6 (Build 17G14042)
Architecture:    x86_64
Report Version:  26

Data Source:     Stackshots

Command:         soffice
Path:            /Volumes/*/LibreOffice.app/Contents/MacOS/soffice
Identifier:      org.libreoffice.script
Version:         7.3.4.2 (7.3.4.2)
Parent:          bash [756]
Responsible:     iTerm2 [396]
PID:             14942

Event:           hang
Duration:        2.09s (process was unresponsive for 44 seconds before sampling)
Steps:           21 (100ms sampling interval)

Hardware model:  iMac10,1
Active cpus:     2

Time Awake Since Boot: 110000s
Time Since Wake: 1500s

Fan speed:       998 rpm

--------------------------------------------------
Timeline format: stacks are sorted chronologically
Use -i and -heavy to re-report with count sorting
--------------------------------------------------

Heaviest stack for the main thread of the target process:
  21  start + 1 (libdyld.dylib + 4117) [0x7fff50fe8015]
  21  main + 16 (soffice + 16224) [0x1039edf60]
  21  ??? (<5FD710A5-964F-301C-AAC7-175B3CCD2713> + 229576) [0x103aaf0c8]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4267549) [0x1069e0e1d]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 157458) [0x10bae6712]
  21  NSApplicationMain + 804 (AppKit + 23098) [0x7fff272cea3a]
  21  -[NSApplication run] + 812 (AppKit + 223357) [0x7fff272ff87d]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 377101) [0x10bb1c10d]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 149132) [0x10bae468c]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4267579) [0x1069e0e3b]
  21  ??? (<5FD710A5-964F-301C-AAC7-175B3CCD2713> + 43262) [0x103a818fe]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4238983) [0x1069d9e87]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 151102) [0x10bae4e3e]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 210423) [0x10baf35f7]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4174847) [0x1069ca3ff]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 151889) [0x10bae5151]
  21  -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 (AppKit + 8224308) [0x7fff27aa0e34]
  21  _DPSNextEvent + 2085 (AppKit + 268859) [0x7fff2730aa3b]
  21  _BlockUntilNextEventMatchingListInModeWithFilter + 64 (HIToolbox + 194692) [0x7fff2905d884]
  21  ReceiveNextEventCommon + 366 (HIToolbox + 195087) [0x7fff2905da0f]
  21  RunCurrentEventLoopInMode + 286 (HIToolbox + 195990) [0x7fff2905dd96]
  21  CFRunLoopRunSpecific + 487 (CoreFoundation + 530311) [0x7fff29d18787]
  21  __CFRunLoopRun + 2848 (CoreFoundation + 533824) [0x7fff29d19540]
  21  __CFRunLoopDoSource1 + 533 (CoreFoundation + 567221) [0x7fff29d217b5]
  21  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41 (CoreFoundation + 567401) [0x7fff29d21869]
  21  mshMIGPerform + 212 (HIServices + 26261) [0x7fff285d3695]
  21  _XCopyElementAtPosition + 385 (HIServices + 192261) [0x7fff285fbf05]
  21  _AXXMIGCopyElementAtPosition + 301 (HIServices + 152472) [0x7fff285f2398]
  21  CopyElementAtPosition + 139 (AppKit + 4344123) [0x7fff276ed93b]
  21  -[NSApplication(NSApplicationAccessibility) accessibilityHitTest:] + 277 (AppKit + 4596820) [0x7fff2772b454]
  21  -[NSWindow(NSWindowAccessibility) accessibilityHitTest:] + 499 (AppKit + 9593753) [0x7fff27bef399]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 319081) [0x10bb0de69]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 320445) [0x10bb0e3bd]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 320445) [0x10bb0e3bd]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 320445) [0x10bb0e3bd]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 320445) [0x10bb0e3bd]
  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 319934) [0x10bb0e1be]
  21  ??? (<3740C1FB-872C-3437-B1C4-2873FC378D27> + 109250) [0x1822a8ac2]
  21  ??? (<3740C1FB-872C-3437-B1C4-2873FC378D27> + 108926) [0x1822a897e]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 991582) [0x1066c115e]
  21  ImageLoaderMachOCompressed::findShallowExportedSymbol(char const*, ImageLoader const**) const + 91 (dyld + 113483) [0x10d909b4b]
  21  _sigtramp + 26 (libsystem_platform.dylib + 8026) [0x7fff512f6f5a]
  21  ??? (<7D8212D1-7267-3F44-A3EA-F2FEC9FAED71> + 224762) [0x103a30dfa]
  21  ??? (<7D8212D1-7267-3F44-A3EA-F2FEC9FAED71> + 25017) [0x103a001b9]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4272823) [0x1069e22b7]
  21  ??? (<5FD710A5-964F-301C-AAC7-175B3CCD2713> + 28974) [0x103a7e12e]
  21  ??? (<5FD710A5-964F-301C-AAC7-175B3CCD2713> + 30094) [0x103a7e58e]
  21  ??? (<C965D493-1FF8-3E67-BE75-11CB261631E7> + 1892082) [0x10511cef2]
  21  ??? (<C965D493-1FF8-3E67-BE75-11CB261631E7> + 1890205) [0x10511c79d]
  21  ??? (<C965D493-1FF8-3E67-BE75-11CB261631E7> + 582704) [0x104fdd430]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4313494) [0x1069ec196]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 183372) [0x1065fbc4c]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4108660) [0x1069ba174]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4093604) [0x1069b66a4]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 190315) [0x1065fd76b]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 201071) [0x10660016f]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 264119) [0x10660f7b7]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 201071) [0x10660016f]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 264084) [0x10660f794]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 255421) [0x10660d5bd]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 943040) [0x1066b53c0]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 938512) [0x1066b4210]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 3939865) [0x106990e19]
  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4176457) [0x1069caa49]
  21  std::__1::mutex::lock() + 9 (libc++.1.dylib + 236671) [0x7fff4ef6fc7f]
  21  _pthread_mutex_lock_slow + 253 (libsystem_pthread.dylib + 5320) [0x7fff512fe4c8]
  21  __psynch_mutexwait + 10 (libsystem_kernel.dylib + 117318) [0x7fff51138a46]
 *20  psynch_mtxcontinue + 0 (pthread + 31325) [0xffffff7f8108ba5d] (blocked by pthread mutex owned by this thread)


Process:         soffice (LibreOffice) [14942]
Path:            /Volumes/*/LibreOffice.app/Contents/MacOS/soffice
Architecture:    x86_64
Parent:          bash [756]
Responsible:     iTerm2 [396]
UID:             501
Task size:       287.09 MB
CPU Time:        <0.001s (1256.4K cycles, 389.7K instructions, 3.22c/i)
Note:            Suspended for 1 sample
Note:            Terminated (zombie) for 1 sample
Note:            Unresponsive for 44 seconds before sampling
Note:            1 idle work queue thread omitted

  Thread 0x33cb4e           DispatchQueue 1           21 samples (1-21)         priority 31-46 (base 31-46)
  <thread QoS user interactive (requested user interactive, requested override user interactive), process unclamped, process received importance donation from WindowServer [220], IO tier 0, priority 46 (46)>
  21  start + 1 (libdyld.dylib + 4117) [0x7fff50fe8015] 1-21
    21  main + 16 (soffice + 16224) [0x1039edf60] 1-21
      21  ??? (<5FD710A5-964F-301C-AAC7-175B3CCD2713> + 229576) [0x103aaf0c8] 1-21
        21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4267549) [0x1069e0e1d] 1-21
          21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 157458) [0x10bae6712] 1-21
            21  NSApplicationMain + 804 (AppKit + 23098) [0x7fff272cea3a] 1-21
              21  -[NSApplication run] + 812 (AppKit + 223357) [0x7fff272ff87d] 1-21
                21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 377101) [0x10bb1c10d] 1-21
                  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 149132) [0x10bae468c] 1-21
                    21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4267579) [0x1069e0e3b] 1-21
                      21  ??? (<5FD710A5-964F-301C-AAC7-175B3CCD2713> + 43262) [0x103a818fe] 1-21
                        21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4238983) [0x1069d9e87] 1-21
                          21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 151102) [0x10bae4e3e] 1-21
                            21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 210423) [0x10baf35f7] 1-21
                              21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4174847) [0x1069ca3ff] 1-21
                                21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 151889) [0x10bae5151] 1-21
                                  21  -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 (AppKit + 8224308) [0x7fff27aa0e34] 1-21
                                    21  _DPSNextEvent + 2085 (AppKit + 268859) [0x7fff2730aa3b] 1-21
                                      21  _BlockUntilNextEventMatchingListInModeWithFilter + 64 (HIToolbox + 194692) [0x7fff2905d884] 1-21
                                        21  ReceiveNextEventCommon + 366 (HIToolbox + 195087) [0x7fff2905da0f] 1-21
                                          21  RunCurrentEventLoopInMode + 286 (HIToolbox + 195990) [0x7fff2905dd96] 1-21
                                            21  CFRunLoopRunSpecific + 487 (CoreFoundation + 530311) [0x7fff29d18787] 1-21
                                              21  __CFRunLoopRun + 2848 (CoreFoundation + 533824) [0x7fff29d19540] 1-21
                                                21  __CFRunLoopDoSource1 + 533 (CoreFoundation + 567221) [0x7fff29d217b5] 1-21
                                                  21  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41 (CoreFoundation + 567401) [0x7fff29d21869] 1-21
                                                    21  mshMIGPerform + 212 (HIServices + 26261) [0x7fff285d3695] 1-21
                                                      21  _XCopyElementAtPosition + 385 (HIServices + 192261) [0x7fff285fbf05] 1-21
                                                        21  _AXXMIGCopyElementAtPosition + 301 (HIServices + 152472) [0x7fff285f2398] 1-21
                                                          21  CopyElementAtPosition + 139 (AppKit + 4344123) [0x7fff276ed93b] 1-21
                                                            21  -[NSApplication(NSApplicationAccessibility) accessibilityHitTest:] + 277 (AppKit + 4596820) [0x7fff2772b454] 1-21
                                                              21  -[NSWindow(NSWindowAccessibility) accessibilityHitTest:] + 499 (AppKit + 9593753) [0x7fff27bef399] 1-21
                                                                21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 319081) [0x10bb0de69] 1-21
                                                                  21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 320445) [0x10bb0e3bd] 1-21
                                                                    21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 320445) [0x10bb0e3bd] 1-21
                                                                      21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 320445) [0x10bb0e3bd] 1-21
                                                                        21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 320445) [0x10bb0e3bd] 1-21
                                                                          21  ??? (<B88CCB16-D201-328B-AA77-F4444B0D733E> + 319934) [0x10bb0e1be] 1-21
                                                                            21  ??? (<3740C1FB-872C-3437-B1C4-2873FC378D27> + 109250) [0x1822a8ac2] 1-21
                                                                              21  ??? (<3740C1FB-872C-3437-B1C4-2873FC378D27> + 108926) [0x1822a897e] 1-21
                                                                                21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 991582) [0x1066c115e] 1-21
                                                                                  21  ImageLoaderMachOCompressed::findShallowExportedSymbol(char const*, ImageLoader const**) const + 91 (dyld + 113483) [0x10d909b4b] 1-21
                                                                                    21  _sigtramp + 26 (libsystem_platform.dylib + 8026) [0x7fff512f6f5a] 1-21
                                                                                      21  ??? (<7D8212D1-7267-3F44-A3EA-F2FEC9FAED71> + 224762) [0x103a30dfa] 1-21
                                                                                        21  ??? (<7D8212D1-7267-3F44-A3EA-F2FEC9FAED71> + 25017) [0x103a001b9] 1-21
                                                                                          21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4272823) [0x1069e22b7] 1-21
                                                                                            21  ??? (<5FD710A5-964F-301C-AAC7-175B3CCD2713> + 28974) [0x103a7e12e] 1-21
                                                                                              21  ??? (<5FD710A5-964F-301C-AAC7-175B3CCD2713> + 30094) [0x103a7e58e] 1-21
                                                                                                21  ??? (<C965D493-1FF8-3E67-BE75-11CB261631E7> + 1892082) [0x10511cef2] 1-21
                                                                                                  21  ??? (<C965D493-1FF8-3E67-BE75-11CB261631E7> + 1890205) [0x10511c79d] 1-21
                                                                                                    21  ??? (<C965D493-1FF8-3E67-BE75-11CB261631E7> + 582704) [0x104fdd430] 1-21
                                                                                                      21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4313494) [0x1069ec196] 1-21
                                                                                                        21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 183372) [0x1065fbc4c] 1-21
                                                                                                          21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4108660) [0x1069ba174] 1-21
                                                                                                            21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4093604) [0x1069b66a4] 1-21
                                                                                                              21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 190315) [0x1065fd76b] 1-21
                                                                                                                21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 201071) [0x10660016f] 1-21
                                                                                                                  21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 264119) [0x10660f7b7] 1-21
                                                                                                                    21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 201071) [0x10660016f] 1-21
                                                                                                                      21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 264084) [0x10660f794] 1-21
                                                                                                                        21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 255421) [0x10660d5bd] 1-21
                                                                                                                          21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 943040) [0x1066b53c0] 1-21
                                                                                                                            21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 938512) [0x1066b4210] 1-21
                                                                                                                              21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 3939865) [0x106990e19] 1-21
                                                                                                                                21  ??? (<A88B1ACF-9F5E-3D1D-8EF2-E5D8FA1F2BD7> + 4176457) [0x1069caa49] 1-21
                                                                                                                                  21  std::__1::mutex::lock() + 9 (libc++.1.dylib + 236671) [0x7fff4ef6fc7f] 1-21
                                                                                                                                    21  _pthread_mutex_lock_slow + 253 (libsystem_pthread.dylib + 5320) [0x7fff512fe4c8] 1-21
                                                                                                                                      21  __psynch_mutexwait + 10 (libsystem_kernel.dylib + 117318) [0x7fff51138a46] 1-21
                                                                                                                                       *20  psynch_mtxcontinue + 0 (pthread + 31325) [0xffffff7f8108ba5d] (blocked by pthread mutex owned by this thread) 1-20
  <thread QoS unspecified, priority 31 (31)>
                                                                                                                                       *1   psynch_mtxcontinue + 0 (pthread + 31325) [0xffffff7f8108ba5d] (runnable, suspended) 21

[*** snipped tons of non related processes ***]
--------------------------------------------------------
Hope that helps!
Comment 31 Oliver 2022-07-12 19:29:30 UTC
Created attachment 181240 [details]
macOS crash log

sorry for last (mis-aligned) post - here's the crash log in a file!
Comment 32 Alex Thurgood 2022-09-20 13:06:29 UTC
Unsurprisingly, crash also reproduced in the version available in the macOS app store:


Version: 7.3.6.2 / LibreOffice Community
Build ID: c28ca90fd6e1a19e189fc16c05f8f8924961e12e
CPU threads: 8; OS: Mac OS X 12.6; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded


I also get a misleading and irrelevant message when the crash occurs:

"Unfortunately, LibreOffice needs to be restarted manually after installation or update."


This is somewhat of a showstopper for me, as for my work I fairly often have to prepare documents in Writer (e.g. patent applications, analysis reports) for which I have to insert formula objects.
Comment 33 Noel Grandin 2022-09-20 13:53:30 UTC
Alex, if you can do a debug build and get a better stacktrace for me, I can probably fix this.
Comment 34 Emil Prpic 2022-09-20 14:33:59 UTC
Just confirming that bug is still present in version 7.4.1.2

I have no idea how to do a debug build and a better stacktrace, but if there are some instructions how to do it (and it doesn't involve ruining normal functionality), maybe I can try?
Comment 35 Alex Thurgood 2022-09-21 21:03:46 UTC
(In reply to Noel Grandin from comment #33)
> Alex, if you can do a debug build and get a better stacktrace for me, I can
> probably fix this.

Noel, unfortunately I haven't built LO on macOS since I switched to Arm silicon, let alone a debug-enabled build.
Comment 36 Alex Thurgood 2022-12-19 14:36:56 UTC
This works again now, without crashing, in

Version: 7.6.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: ad387d5b984c6666906505d25685065f710ed55d
CPU threads: 8; OS: Mac OS X 13.0.1; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded


I'm wondering if the fix to bug 148435 cured this one as well.
Comment 37 Xisco Faulí 2022-12-19 15:32:31 UTC
(In reply to Alex Thurgood from comment #36)
> This works again now, without crashing, in
> 
> Version: 7.6.0.0.alpha0+ (AARCH64) / LibreOffice Community
> Build ID: ad387d5b984c6666906505d25685065f710ed55d
> CPU threads: 8; OS: Mac OS X 13.0.1; UI render: Skia/Metal; VCL: osx
> Locale: fr-FR (fr_FR.UTF-8); UI: en-US
> Calc: threaded
> 
> 
> I'm wondering if the fix to bug 148435 cured this one as well.

Hi Alex,
Could you please bisect when this issue was fixed so the commit can be backported ?
Comment 38 Alex Thurgood 2022-12-20 10:25:02 UTC
(In reply to Xisco Faulí from comment #37)

 
> > I'm wondering if the fix to bug 148435 cured this one as well.
> 
> Hi Alex,
> Could you please bisect when this issue was fixed so the commit can be
> backported ?

Hi Xisco,

I don't have a bibisect system set up and won't have time to download the massive repo to test.

There aren't too many candidates though, I'd guess:

one of the commits from bug 148435:

commit 8b442d7fae17660b3665da2c1f7a084341987693
commit e63fbf524bf4bb1a247b55a31745a6ced1661532


Or the commits from bug 146675:
commit 07f9f22e68a3caebe67d89c0b209059ba40be482
commit b4719f2e4c2acd87d547e8a13884f8ac18078463
commit 8c6b2b507a98c325bf0d0990e160d8e520a90671