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

            Bug ID: 151766
           Summary: Using Java UNO API freezes LibreOffice on M1 MacBook
                    Pro
           Product: LibreOffice
           Version: unspecified
          Hardware: Other
                OS: macOS (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 183279
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183279&action=edit
Sample Code

Problem: LibreOffice freezes/becomes unresponsive when started (or being
controlled) from a Java Application using UNO API (libreoffice.jar). This
reproducibly happens for calls to loadComponentFromURL but also on
dispose-Calls (lines 17 and 19 in sample).

The attached sample code was used to demonstrate this behavior.

Hardware/OS info: M1 MacBook Pro, both Monterey and Ventura were used.
LibreOffice versions: multiple versions from 7.2.x, 7.3.x and latest 7.4; all
M1 architecture

Test cases:

1. LibreOffice is not running. The attached test class is executed and tries to
open an empty Writer document. The call to 'loader.loadComponentFromURL(...)'
creates an empty LibreOffice window, but not the Writer content (only a gray
window is displayed, LibreOffice is unresponsive). Have to kill the process.

2. LibreOffice is started manually, a Writer document is opened manually. The
test class successfully opens another empty Writer window. In this case, the
sample fails on the dispose call (LibreOffice becomse unresponsive, have to
kill process)

Additional info:
Same code works on an Intel MacMini with an older version of LibreOffice
(7.0.x, Intel architecture).

I also tried several Intel-architecture versions on the M1 MacBook Pro - until
version 7.3.2.2, I could make the sample work. It starts failing from version
7.3.4.1 onwards.

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

Reply via email to