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

            Bug ID: 145127
           Summary: LibreOfficeKit macOS?
           Product: LibreOffice
           Version: 7.2.1.2 release
          Hardware: x86-64 (AMD64)
                OS: Mac OS X (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

Description:
(not sure if sdk is the right component!)

currently I've tried https://gitlab.com/ojwb/lloconv on macOS, while it
compiles and runs it actually runs into failures with `lok_cpp_init`.

Olly Betts did write me a simple reproducer which did compile on macOS but
actually fails to run.
The reproducer can be downloaded here:
https://gitlab.com/ojwb/lloconv/uploads/98373168f73e762ee9f6c245606f6944/loktest.cc
https://gitlab.com/ojwb/lloconv/-/issues/11#note_703189297

and I compiled it on macOS with:

    g++ -Wall -W -g -O2 loktest.cc -o loktest -ldl -I $HOME/libreoffice/include

and i did run it w

Steps to Reproduce:
get
https://gitlab.com/ojwb/lloconv/uploads/98373168f73e762ee9f6c245606f6944/loktest.cc

1. compile: g++ -Wall -W -g -O2 loktest.cc -o loktest -ldl -I
$HOME/libreoffice/include
2. file: echo hello world > in.txt
3. run: LO_PATH=/Applications/LibreOffice.app/Contents/Frameworks/ ./loktest
in.txt out.html
3.

Actual Results:
hangs at Calling lok_cpp_init()

Expected Results:
```
Calling lok_cpp_init()
lok_cpp_init() succeeded
Calling documentLoad()
No language allowlisted, turning off the language support.
documentLoad() succeeded
Calling saveAs()
saveAs() succeeded
deleting Document
deleting Office
Done
```

and of course created a html file


Reproducible: Always


User Profile Reset: No



Additional Info:
I tested it against libreoffice-7.2.1.2 and libreoffice-7.2.2.2

btw. lldb prints the following lines in a loop:

2021-10-14 14:03:01.400588+0200 loktest[48489:298492] [General]
nextEventMatchingMask should only be called from the Main Thread!
2021-10-14 14:03:01.401133+0200 loktest[48489:298492] [General] (
        0   CoreFoundation                      0x00007fff205f21db
__exceptionPreprocess + 242
        1   libobjc.A.dylib                     0x00007fff2032bd92
objc_exception_throw + 48
        2   AppKit                              0x00007fff22d7e516
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
+ 4389
        3   AppKit                              0x00007fff22d6fc69
-[NSApplication run] + 586
        4   AppKit                              0x00007fff22d43e6c
NSApplicationMain + 816
        5   libvclplug_osxlo.dylib              0x00000001159532e2
_ZN15AquaSalInstance10SVMainHookEPi + 178
        6   libvcllo.dylib                      0x0000000103e0590d
_Z10ImplSVMainv + 109
        7   libsofficeapp.dylib                 0x0000000100434a38 soffice_main
+ 248
        8   libsofficeapp.dylib                 0x0000000100Process 48489
stopped

so it looks like it loads the vcl dylib over and over again

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

Reply via email to