Opened 3 years ago

Last modified 3 years ago

#62119 assigned defect

Failed to start LibreOffice

Reported by: exaos (Exaos Lee) Owned by: Tatsh (Andrew Udvare)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: cooljeanius (Eric Gallager)
Port: libreoffice

Description

Start error:

% /Applications/MacPorts/LibreOffice.app/Contents/MacOS/soffice
Application Error

Console message:

Jan 22 09:33:19 lav-dwalin com.apple.xpc.launchd[1] (application.org.libreoffice.script.50039669.50039649[19182]): Service exited with abnormal code: 1

Change History (14)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to Tatsh
Status: newassigned

comment:2 Changed 3 years ago by Tatsh (Andrew Udvare)

Need a few things:

  • OS version
  • LibreOffice version, the 7.1.0.2 port went in two days ago
  • Did you have a prior version working from MacPorts?
  • Did you use a non-MacPorts version before?
  • Did you see dialogs asking for permission to read Documents or Downloads directories? Did you click OK on these?

Please try moving the old configuration if it exists (see below) and running soffice. Or run open -b org.libreoffice.script.

mv ~/Library/Preferences/org.libreoffice.script.plist ~/Library/Preferences/org.libreoffice.script.plist.old
rm -fR ~/Library/Caches/org.libreoffice.script
mv ~'/Library/Application Support/LibreOffice' ~'/Library/Application Support/LibreOffice.old'
rm ~/Library/WebKit/org.libreoffice.script ~'/Library/Saved Application State/org.libreoffice.script.savedState'
mv ~'/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.libreoffice.script.sfl2' ~'/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.libreoffice.script.sfl2.old'

comment:3 Changed 3 years ago by exaos (Exaos Lee)

  • OS: Big Sur, 11.1
  • Libreoffice @7.1.0.2
  • I had previous version from MacPorts, but not worked.
  • I tried other versions downloaded directly from libreoffice.org, but failed to run it.
  • I have enabled the permission to read directories for Libreoffice.
  • The old configuration is removed and I still failed to run it.

comment:4 Changed 3 years ago by Tatsh (Andrew Udvare)

Does /Applications/MacPorts/LibreOffice.app/Contents/MacOS/soffice -h show help text in the terminal?

comment:5 Changed 3 years ago by Tatsh (Andrew Udvare)

Try running /Applications/MacPorts/LibreOffice.app/Contents/MacOS/soffice --safe-mode --norestore --quickstart=no --nolockcheck

comment:6 Changed 3 years ago by exaos (Exaos Lee)

@Tatsh

/Applications/MacPorts/LibreOffice.app/Contents/MacOS/soffice -h works fine.

But running soofice in safe-mode failed.

% /Applications/MacPorts/LibreOffice.app/Contents/MacOS/soffice --safe-mode --norestore --quickstart=no --nolockcheck
Application Error


Fatal exception: Signal 6
Stack:
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libuno_sal.dylib.3+0x2c27e(_ZN12_GLOBAL__N_110printStackEi+0x31)[0x10aa1d27e]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libuno_sal.dylib.3+0x3541d(_ZN12_GLOBAL__N_121signalHandlerFunctionEiP9__siginfoPv.cold.1+0x22)[0x10aa2641d]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libuno_sal.dylib.3+0x2c146(_ZN12_GLOBAL__N_121signalHandlerFunctionEiP9__siginfoPv+0x126)[0x10aa1d146]
/usr/lib/system/libsystem_platform.dylib+0x3d7d(_sigtramp+0x1d)[0x7fff203b0d7d]
[0x10b1c2223]
/usr/lib/system/libsystem_c.dylib+0x80720(abort+0x78)[0x7fff202bf720]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x40d955(_Z8SalAbortRKN3rtl8OUStringEb+0xc6)[0x10d79e955]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x35bf75(_ZN11Application5AbortERKN3rtl8OUStringE+0xa1)[0x10d6ecf75]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libsofficeapp.dylib+0xdf58(_ZN7desktop7Desktop9ExceptionE17ExceptionCategory+0xa0)[0x10aa67f58]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x36350d(_ZL23VCLExceptionSignal_implPvP13oslSignalInfo+0xca)[0x10d6f450d]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libuno_sal.dylib.3+0x7a20(_Z17callSignalHandlerP13oslSignalInfo+0x25)[0x10a9f8a20]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libuno_sal.dylib.3+0x2c09a(_ZN12_GLOBAL__N_121signalHandlerFunctionEiP9__siginfoPv+0x7a)[0x10aa1d09a]
/usr/lib/system/libsystem_platform.dylib+0x3d7d(_sigtramp+0x1d)[0x7fff203b0d7d]
/usr/lib/system/libsystem_malloc.dylib+0x67aa(tiny_free_no_lock+0x45c)[0x7fff201977aa]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvclplug_osxlo.dylib+0x34896(_Z27DevFontFromCTFontDescriptorPK18__CTFontDescriptorPb+0x226)[0x111c30896]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvclplug_osxlo.dylib+0x35067(_ZL16fontEnumCallBackPKvPv+0x34)[0x111c31067]
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+0x4562f(CFArrayApplyFunction+0x3e)[0x7fff2042862f]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvclplug_osxlo.dylib+0x3502c(_ZN14SystemFontList4InitEv+0x82)[0x111c3102c]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvclplug_osxlo.dylib+0x35174(_Z19GetCoretextFontListv+0x3b)[0x111c31174]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvclplug_osxlo.dylib+0x37fd4(_ZN15AquaSalGraphics14GetDevFontListEP22PhysicalFontCollection+0xd6)[0x111c33fd4]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x182ef9(_ZNK12OutputDevice16ImplInitFontListEv+0x4f)[0x10d513ef9]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x183542(_ZNK12OutputDevice11ImplNewFontEv+0xb0)[0x10d514542]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x183ff2(_ZNK12OutputDevice8InitFontEv+0xe)[0x10d514ff2]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x189e09(_ZNK12OutputDevice10ImplLayoutERKN3rtl8OUStringEiiRK5PointlPKl14SalLayoutFlagsPKN3vcl15TextLayoutCacheEPK15SalLayoutGlyphs+0x65)[0x10d51ae09]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x189c1e(_ZN12OutputDevice8DrawTextERK5PointRKN3rtl8OUStringEiiPNSt3__16vectorIN5tools9RectangleENS7_9allocatorISA_EEEEPS4_PK15SalLayoutGlyphs+0x5f2)[0x10d51ac1e]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libspllo.dylib+0x9147(_ZN12_GLOBAL__N_118SplashScreenWindow5PaintER12OutputDeviceRKN5tools9RectangleE+0x3d5)[0x11d882147]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libspllo.dylib+0xa1cb(_ZN12_GLOBAL__N_112SplashScreen12updateStatusEv+0x6f)[0x11d8831cb]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libspllo.dylib+0x82a9(_ZN12_GLOBAL__N_112SplashScreen8setValueEi+0x67)[0x11d8812a9]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libsofficeapp.dylib+0xfeef(_ZN7desktop7Desktop4MainEv+0x297)[0x10aa69eef]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x36242b(_Z10ImplSVMainv+0x8b)[0x10d6f342b]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvclplug_osxlo.dylib+0x27cec(_ZN15AquaSalInstance21handleAppDefinedEventEP7NSEvent+0xd0)[0x111c23cec]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvclplug_osxlo.dylib+0x5741a(-[VCL_NSApplication sendEvent:]+0x51)[0x111c5341a]
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+0x49f36e(-[NSApplication _handleEvent:]+0x41)[0x7fff230e036e]
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+0x2fb2f(-[NSApplication run]+0x26f)[0x7fff22c70b2f]
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+0x3df2(NSApplicationMain+0x330)[0x7fff22c44df2]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvclplug_osxlo.dylib+0x29b00(_ZN15AquaSalInstance10SVMainHookEPi+0x96)[0x111c25b00]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libvcllo.dylib+0x36240d(_Z10ImplSVMainv+0x6d)[0x10d6f340d]
/Applications/MacPorts/LibreOffice.app/Contents/Frameworks/libsofficeapp.dylib+0x36c88(soffice_main+0xf0)[0x10aa90c88]
/Applications/MacPorts/LibreOffice.app/Contents/MacOS/soffice+0x3f66(main+0x10)[0x10a9e3f66]
/usr/lib/system/libdyld.dylib+0x15621(start+0x1)[0x7fff20387621]
[1]    24223 abort      /Applications/MacPorts/LibreOffice.app/Contents/MacOS/soffice --safe-mode

comment:7 Changed 3 years ago by Tatsh (Andrew Udvare)

Do you have any custom fonts installed? If so, could you try disabling them in Font Book.app then running this? Or alternatively, temporarily move the files out of ~/Library/Fonts (user) and /Library/Fonts (system).

It seems to be related to enumerating fonts. If you don't have custom fonts installed, then this may need to be filed against upstream for further investigation.

I actually do have custom fonts installed in system /Library/Fonts but mine are not causing an issue: Noto Sans and Serif families (which is a lot of fonts), Roboto, and Iosevka.

comment:8 in reply to:  7 Changed 3 years ago by exaos (Exaos Lee)

I disabled all my fonts in ~/Library/Fonts/, then LibreOffice worked. Then I enabled several custom fonts, LibreOffice could run but exited abnormally. I have 144 custom fonts installed. It would be painful to disable them all and to check which one causes the problem. :-<

Replying to Tatsh:

Do you have any custom fonts installed? If so, could you try disabling them in Font Book.app then running this? Or alternatively, temporarily move the files out of ~/Library/Fonts (user) and /Library/Fonts (system).

It seems to be related to enumerating fonts. If you don't have custom fonts installed, then this may need to be filed against upstream for further investigation.

I actually do have custom fonts installed in system /Library/Fonts but mine are not causing an issue: Noto Sans and Serif families (which is a lot of fonts), Roboto, and Iosevka.

comment:9 Changed 3 years ago by Tatsh (Andrew Udvare)

Can you list all the fonts you have installed? Preferably: ls -la ~/Library/Fonts and ls -la /Library/Fonts.

I will get on the LibreOffice mailing list but they will probably ask that you file a bug with them.

comment:10 Changed 3 years ago by Tatsh (Andrew Udvare)

comment:11 in reply to:  10 Changed 3 years ago by exaos (Exaos Lee)

I filed a bug. Sorry for a long time without response. https://bugs.documentfoundation.org/show_bug.cgi?id=140401

Replying to Tatsh:

They want you to file a bug with steps to reproduce: https://bugs.documentfoundation.org/enter_bug.cgi?product=LibreOffice&format=guided

comment:12 Changed 3 years ago by Tatsh (Andrew Udvare)

Rather than try to debug each font one by one, I would try families. So try disabling jsMath fonts only and see if LibreOffice Starts. Then try SourceCodePro+Powerline+Awesome+Regular.ttf, DejaVuMathTeXGyre.ttf, 方正黑体简体.TTF (source of this one?), etc.

A lot of these TTFs are probably only tested on Windows, especially ones like 'arial unicode ms.ttf' and Sim* fonts. Sometimes fonts are definitely buggy (or very ugly) when placed outside of their normal operating environment, despite TTF being a standard.

I feel that Iosevka is probably fine as I use it and it works here with LibreOffice. That team seems to be very cautious about their distribution and would be very responsive if it were the cause of a crash through no fault of LibreOffice's.

comment:13 in reply to:  12 Changed 3 years ago by exaos (Exaos Lee)

Finally, I found that these seven fonts will cause LibreOffice fail to start on macOS: Hanazono Micho A/B/C/Ex A1/Ex A2/Ex B/Ex C!

Replying to Tatsh:

Rather than try to debug each font one by one, I would try families. So try disabling jsMath fonts only and see if LibreOffice Starts. Then try SourceCodePro+Powerline+Awesome+Regular.ttf, DejaVuMathTeXGyre.ttf, 方正黑体简体.TTF (source of this one?), etc.

A lot of these TTFs are probably only tested on Windows, especially ones like 'arial unicode ms.ttf' and Sim* fonts. Sometimes fonts are definitely buggy (or very ugly) when placed outside of their normal operating environment, despite TTF being a standard.

I feel that Iosevka is probably fine as I use it and it works here with LibreOffice. That team seems to be very cautious about their distribution and would be very responsive if it were the cause of a crash through no fault of LibreOffice's.

comment:14 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.