https://bugs.documentfoundation.org/show_bug.cgi?id=169711

Christian Schmitz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #18 from Christian Schmitz <[email protected]> ---
I downloaded the nightly build from 26th February 2026 on macOS 15 today and
run it without GUI in a background server process.

We run this test.sh script:

#!/bin/bash

echo "Hello"

export
PATH=/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin

/Applications/LibreOfficeDev.app/Contents/MacOS/soffice --convert-to pdf
--safe-mode --headless --nologo --outdir /Data/Documents
/Data/Documents/test.docx

the output is:

/Data/Documents/test.sh: line 7:  4167 Trace/BPT trap: 5      
/Applications/LibreOfficeDev.app/Contents/MacOS/soffice --convert-to pdf
--headless --nologo --outdir /Data/Documents /Data/Documents/test.docx

and the crash report:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               soffice [4167]
Path:                  /Applications/LibreOfficeDev.app/Contents/MacOS/soffice
Identifier:            org.libreoffice.script
Version:               26.8.0.0 (26.8.0.0.alpha0)
Code Type:             ARM-64 (Native)
Parent Process:        Exited process [4166]
Responsible:           fmserver_helperd [340]
User ID:               502

Date/Time:             2026-02-26 14:18:26.4583 +0100
OS Version:            macOS 15.5 (24F74)
Report Version:        12
Anonymous UUID:        10EDCFAD-31C7-5E59-A421-416CEB1E8D21


Time Awake Since Boot: 2600 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: WMClientWindowManager

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x0000000193fbc77c

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [4167]

Application Specific Signatures:
API Misuse

Thread 0 Crashed::  Dispatch queue: WMClientWindowManager
0   libxpc.dylib                               0x193fbc77c _xpc_api_misuse + 92
1   libxpc.dylib                               0x193f9a33c
xpc_connection_set_target_uid + 216
2   WindowManagement                           0x27534ac58
-[WMClientWindowManager _createXPCConnection] + 1004
3   WindowManagement                           0x27534b834
-[WMClientWindowManager _xpcConnection] + 116
4   WindowManagement                           0x275348e48
__31-[WMClientWindowManager stages]_block_invoke + 36
5   libdispatch.dylib                          0x1940f485c
_dispatch_client_callout + 16
6   libdispatch.dylib                          0x1940ea7a8
_dispatch_lane_barrier_sync_invoke_and_complete + 56
7   WindowManagement                           0x275348d90
-[WMClientWindowManager stages] + 300
8   AppKit                                     0x198fc2734
__54-[NSWMWindowCoordinator initializeStageFramesIfNeeded]_block_invoke + 32
9   libdispatch.dylib                          0x1940f485c
_dispatch_client_callout + 16
10  libdispatch.dylib                          0x1940dda28
_dispatch_once_callout + 32
11  AppKit                                     0x198fc26e0
-[NSWMWindowCoordinator initializeStageFramesIfNeeded] + 304
12  AppKit                                     0x1982b5aa8 -[NSWindow
_commonInitFrame:styleMask:backing:defer:] + 692
13  AppKit                                     0x1982b5494 -[NSWindow
_initContent:styleMask:backing:defer:contentView:] + 848
14  AppKit                                     0x1982b5138 -[NSWindow
initWithContentRect:styleMask:backing:defer:] + 48
15  AppKit                                     0x19855c318 -[NSComboBoxWindow
initWithContentRect:comboBoxCell:] + 88
16  AppKit                                     0x19855bd10 -[NSComboBoxCell
initPopUpWindow] + 892
17  AppKit                                     0x1985ad2d4 -[NSComboBoxCell
initTextCell:] + 100
18  libvclplug_osxlo.dylib                     0x10708d958
AquaSalInstance::AquaSalInstance() + 444
19  libvclplug_osxlo.dylib                     0x10708d6e4 create_SalInstance +
256
20  libmergedlo.dylib                          0x10e7a12ac (anonymous
namespace)::tryInstance(rtl::OUString const&, bool) + 220
21  libmergedlo.dylib                          0x10e7a0f88 CreateSalInstance()
+ 268
22  libmergedlo.dylib                          0x10e7fb45c InitVCL() + 180
23  libmergedlo.dylib                          0x10e7fb1f4 ImplSVMain() + 408
24  libmergedlo.dylib                          0x10d7e0c18 soffice_main + 200
25  soffice                                    0x102af7f6c main + 20
26  dyld                                       0x193ef2b98 start + 6076


Please note that the create_SalInstance function loads AquaSalInstance, which
crashes creating the controls.

So how be sure the developer build for macOS has ENABLE_HEADLESS being enabled
and calls svp_create_SalInstance instead?
I tried SAL_USE_VCLPLUGIN=svp, but that didn't work.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to