Bug 170551 - UNO API - DisposedException when attempting to close LibreOffice
Summary: UNO API - DisposedException when attempting to close LibreOffice
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-31 11:55 UTC by Chien Pham
Modified: 2026-01-31 12:00 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Test application (C# code) (395.57 KB, application/x-zip-compressed)
2026-01-31 12:00 UTC, Chien Pham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chien Pham 2026-01-31 11:55:06 UTC
Description:
Since LibreOffice 25.8, it is no longer possible to close a document via the UNO API without the following exception occurring:
unoidl.com.sun.star.lang.DisposedException: 'Binary URP bridge disposed during call

It still worked with LibreOffice 25.2. Have there been any significant changes here?

Steps to Reproduce:
1. Use the example C:\Program Files\LibreOffice_25.8_SDK\sdk\examples\dotnet\WriterDemo\csharp as a basis.
2. Try to close the document at the end with the following code:
XCloseable closeDoc = (XCloseable)component;
closeDoc.close(true);

Actual Results:
Excpetion:
unoidl.com.sun.star.lang.DisposedException: 'Binary URP bridge disposed during call

Expected Results:
No exception


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 25.8.4.2 (X86_64)
Build ID: 290daaa01b999472f0c7a3890eb6a550fd74c6df
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL threaded
Comment 1 Chien Pham 2026-01-31 12:00:31 UTC
Created attachment 205290 [details]
Test application (C# code)

Complete sample code in C# to reproduce the problem.