[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 Patrick (volunteer) changed: What|Removed |Added Resolution|--- |FIXED Assignee|[email protected] |[email protected] |desktop.org | Status|NEW |RESOLVED --- Comment #14 from Patrick (volunteer) --- The patch got committed a little too late for the tomorrow's nightly master build, so I expect the fix to be in the 16 May nightly master build. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 --- Comment #13 from Commit Notification --- Patrick Luby committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/4b3d4939f45413f66595fbbd3a8e142624373c56 tdf#172033 Run install_name_tool on libfontconfig when building macOS It will be available in 26.8.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. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 Commit Notification changed: What|Removed |Added Whiteboard||target:26.8.0 -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 --- Comment #12 from [email protected] --- Also seems like we should figure out how to rename the dylib to libfontconfig-lo.1.dylib; I can work on that. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 --- Comment #11 from Patrick (volunteer) --- I think that I have a fix in the following patch: https://gerrit.libreoffice.org/c/core/+/205175 But it needs review as I don't have any familiarity with the fontconfig code. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 --- Comment #10 from Sierk Bornemann --- (In reply to Patrick (volunteer) from comment #9) > Found the cause: building with --enable-headless causes libfontconfig to be > built. I guess, this seems to be the change, which enables it: Bug 169711 - Crash on macOS when running LibreOffice headless via Terminal without GUI Commit Notification 2026-04-30 11:13:07 UTC https://bugs.documentfoundation.org/show_bug.cgi?id=169711#c20 Commit Apr 30 13:12:52 2026: tdf#169711 Enable headless mode on macOS builds https://github.com/LibreOffice/core/commit/65f1b7351d5deccbae84156fef4c9580ac34dcb9 https://gerrit.libreoffice.org/c/core/+/200535 Since this change, the crash problem above seems to occur, the commit date seems also corresponding. Preparatory: Commit Nov 28 20:56:03 2025: Introduce --enable-headless to add it as a possibility on macOS https://git.libreoffice.org/core/+/5d4a689293d47c7671315452f6b90a185fe809c0%5E%21 > Still need to figure out why libfontconfig is messed up in libmerged. +1 -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 --- Comment #9 from Patrick (volunteer) --- Found the cause: building with --enable-headless causes libfontconfig to be built. Still need to figure out why libfontconfig is messed up in libmerged. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 --- Comment #8 from Patrick (volunteer) --- OK. I did a "make distclean" and rebuilt master with the ./configure command arguments (except for the --with-external-tar or --srcdir arguments) in the following nightly build log: https://ci.libreoffice.org/job/lo_daily_tb_mac_arm64/lastBuild/consoleFull I can still reproduce this bug in the 12 May 2026 nightly build but not in the .dmg built with the same nightly build ./configure command arguments. So I compared the output of "otool -L Contents/Frameworks/libmergedlo.dylib" in both installations and found the following: - /Users/tdf/lode/jenkins/workspace/lo_gerrit/tb/build_master/workdir/UnpackedTarball/fontconfig/src/.libs/libfontconfig.1.dylib (compatibility version 18.0.0, current version 18.1.0) + /Volumes/LOBuilds/lode/dev/core/workdir/UnpackedTarball/fontconfig/src/.libs/libfontconfig.1.dylib (compatibility version 18.0.0, current version 18.1.0 >From the above, I think the build is linking libfontconfig.1.dylib in the wrong location. The reason LibreOffice launches in my locally built .dmg is that the "/Volumes/LOBuilds/.../libfontconfig.1.dylib" path exists in my machine's build. I would think the otool -L output should be "@loader_path/libfontconfig.1.dylib" instead of an absolute path like all of the other *.dylib files in the installation's Contents/Frameworks folder. Let me see if I can find where the build does the @loader_path stuff. I am guessing there is a list of *.dylib files somewhere in the build that libfontconfig.1.dylib needs to be added to. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 --- Comment #7 from Julien Nabet --- (In reply to Patrick (volunteer) from comment #6) > ... > Maybe I am missing a configure option that the nightly build uses that > triggers the libmerged problem? Taking a look at distro-configs/LibreOfficeMacOSX.conf, I noticed this: --enable-mergelibs=more --without-system-fontconfig (see https://opengrok.libreoffice.org/xref/core/distro-configs/LibreOfficeMacOSX.conf?r=65f1b7351d5deccbae84156fef4c9580ac34dcb9 for the complete file) -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 Patrick (volunteer) changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #6 from Patrick (volunteer) --- I can reproduce the crash in the 10 May 2026 nightly master build. However, I cannot reproduce the crash in my local master build (did a git pull -r 2 or 3 hours ago) with either --enable-mergelibs=, --enable-mergelibs=yes, or --enable-mergelibs=more. After each build, I ran the following command from my build root and I don't get any output. So, at least in my local build, libfontconfig is not getting added to libmerged: otool -L instdir/LibreOfficeDev.app/Contents/Frameworks/libmergedlo.dylib | grep libfont Maybe I am missing a configure option that the nightly build uses that triggers the libmerged problem? -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build (macOS)
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 Julien Nabet changed: What|Removed |Added Summary|Crash on launch:|Crash on launch: |LibreOfficeDev daily master |LibreOfficeDev daily master |build |build (macOS) -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 Julien Nabet changed: What|Removed |Added CC||[email protected], ||[email protected] --- Comment #5 from Julien Nabet --- Sierk: thank you for the extra info. Dan/Patrick: thought you might be interested in this one. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 --- Comment #4 from Sierk Bornemann --- (In reply to Julien Nabet from comment #3) > Could you tell if you find libfontconfig.1.dylib somewhere on your machine > with the buggy LibreOfficeDev_26.8.0.0.alpha0_MacOS_aarch64.dmg ? OK. This is the _buggy_ LibreOfficeDev.app: % pwd /Users/$USER % find ./ -name "libfontconfig.1.dylib" ./Applications/LibreOfficeDev.app/Contents/Frameworks/libfontconfig.1.dylib So, it seems to exist in the LibreOfficeDev.app's Framework folder. I can also see the file, if I have a look into the App contents via Finder. Contrary: Surprisingly, in the _working_ LibreOfficeDev.app from 2026-04-28 a libfontconfig.1.dylib seems to be absent at all, the find command does _not_ find such file in the LibreOfficeDev.app's folder, and looking reduntantly into that app's contents via Finder, libfontconfig.1.dylib is also absent. Just for the sake of completeness, and to answer that part of your question as well: Also installed are GIMP.app and Inkscape.app, they also have got a libfontconfig.1.dylib, but I think, this is irrelevant for this issue above concerning LibreOfficeDev.app: /Applications/Inkscape.app/Contents/Resources/lib/libfontconfig.1.dylib /Applications/GIMP.app/Contents/Resources/lib/libfontconfig.1.dylib.dSYM/Contents/Resources/DWARF/libfontconfig.1.dylib /Applications/GIMP.app/Contents/Resources/lib/libfontconfig.1.dylib -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 Julien Nabet changed: What|Removed |Added CC||[email protected] --- Comment #3 from Julien Nabet --- Could you tell if you find libfontconfig.1.dylib somewhere on your machine with the buggy LibreOfficeDev_26.8.0.0.alpha0_MacOS_aarch64.dmg ? -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 --- Comment #2 from Sierk Bornemann --- (In reply to Sierk Bornemann from comment #0) > My guessing: > > Cause seems to be in this file: Contents/Frameworks/libmergedlo.dylib > > Looking into libmergedlo.dylib with otool: > > % otool -L > /Users/$USER/Applications/LibreOfficeDev.app/Contents/Frameworks/libmergedlo. > dylib|grep libfontconfig.1.dylib > /Users/tdf/lode/jenkins/workspace/lo_gerrit/tb/build_master/workdir/ > UnpackedTarball/fontconfig/src/.libs/libfontconfig.1.dylib (compatibility > version 18.0.0, current version 18.1.0) > > --> There seems to be a hardcoded file and path in libmergedlo.dylib: > /Users/tdf/lode/jenkins/workspace/lo_gerrit/tb/build_master/workdir/ > UnpackedTarball/fontconfig/src/.libs/libfontconfig.1.dylib , which doesn't > exist on the user's system, and so can't be found – so, the app crashes on > launch. Comparing/control test with the daily build from 2026-04-28 (Build ID 5fdf0a21d5194f949c4663475efcd3e591fc943d, does _not_ crash, _launches _succesfully_): Version: 26.8.0.0.alpha0+ (AARCH64) Build ID: 5fdf0a21d5194f949c4663475efcd3e591fc943d CPU threads: 10; OS: macOS 26.4.1; UI render: Skia/Metal; VCL: osx Locale: de-DE (de_DE.UTF-8); UI: de-DE Calc: threaded % otool -L /Users/$USER/Applications/LibreOfficeDev.app/Contents/Frameworks/libmergedlo.dylib|grep libfontconfig.1.dylib % -> In contrast to the current daily build for macOS aarch64, the libmergedlo.dylib of the 2026-04-28-build _lacks_ this reference to /Users/tdf/lode/jenkins/workspace/lo_gerrit/tb/build_master/workdir/UnpackedTarball/fontconfig/src/.libs/libfontconfig.1.dylib, and the app does _not_ crash, launches successfully as expected. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 BogdanB changed: What|Removed |Added Blocks||133092 CC||[email protected] ||g Referenced Bugs: https://bugs.documentfoundation.org/show_bug.cgi?id=133092 [Bug 133092] [META] Crash bugs -- You are receiving this mail because: You are the assignee for the bug.
[Bug 172033] Crash on launch: LibreOfficeDev daily master build
https://bugs.documentfoundation.org/show_bug.cgi?id=172033 Sierk Bornemann changed: What|Removed |Added CC||[email protected] --- Comment #1 from Sierk Bornemann --- Created attachment 207007 --> https://bugs.documentfoundation.org/attachment.cgi?id=207007&action=edit Crashlog LibreOfficeDev-2026-05-10 -- You are receiving this mail because: You are the assignee for the bug.
