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

--- Comment #6 from Simon Muschel <[email protected]> ---
(In reply to Mike Little from comment #5)
> (In reply to Simon Muschel from comment #0)
> > Created attachment 183279 [details]
> > 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.
> 
> Do I need to download and configure the OpenOffice SDK as I am getting in
> Eclipse "The import com.sun.star" cannot be resolved...

I did not install the SDK. I guess you'd have to add libreoffice.jar and
unoloader.jar from LibreOffice installation to your Eclipse project. If it's
easier for you, I can try to provide the test case as a Maven project.

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

Reply via email to