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

            Bug ID: 172283
           Summary: Trying to load XLSX document from C# hangs the load
                    method
           Product: LibreOffice
           Version: 26.2.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I'm building a C# library to control LibreOffice that you can find here -->
https://github.com/Sicos1977/LibreOfficeKit

All build work was done and I was in the stage of testing it with all diferent
kind of documents. It all works fine with Microsoft Word like docs (.doc,
.docx, .rtf, .txt, etc...) 

But as soon as I touch Excel or PowerPoint kind of files the loading hangs on
line 684 in the Instance.cs class. I added event callbacks to see what
LibreOffice is doing.

2026-05-30 11:18:43.721 [INF]: - Searching for LibreOffice installation...
2026-05-30 11:18:43.745 [INF]: - Found LibreOffice at: 'C:\Program
Files\LibreOffice\program'
2026-05-30 11:18:43.749 [INF]: - Initializing LibreOffice...
2026-05-30 11:18:44.609 [DBG]: - LibreOffice callback successfully registered
via vtable (unmanaged)
2026-05-30 11:18:44.684 [INF]: - LibreOffice version: 'LibreOffice' '26.2.3.2',
Build: '70e089b17412e4cb7773e41413306b17a2328c34'
2026-05-30 11:18:44.684 [INF]: - LibreOffice initialized
2026-05-30 11:18:44.685 [INF]: - Loading document: 'file:///d:/test.xlsx'
2026-05-30 11:18:44.687 [DBG]: - Resolved filter name: 'Calc MS Excel 2007 XML'
for file 'file:///d:/test.xlsx'
2026-05-30 11:18:44.688 [DBG]: - Load options:
'Hidden=true,MacroExecutionMode=4,TiledRendering=true,ReadOnly=true,UpdateDocMode=0,InteractionHandler=null,FilterName=Calc
MS Excel 2007 XML'
2026-05-30 11:18:44.688 [DBG]: - Calling documentLoadWithOptions...
2026-05-30 11:18:48.013 [INF]: - [LOK Status] Operation started: 'Load
document'
2026-05-30 11:18:48.026 [DBG]: - [LOK Progress] '2'
2026-05-30 11:18:48.060 [DBG]: - [LOK Progress] '5'
2026-05-30 11:18:48.062 [DBG]: - [LOK Progress] '7'
2026-05-30 11:18:48.062 [DBG]: - [LOK Progress] '10'
2026-05-30 11:18:48.084 [DBG]: - [LOK Progress] '38'
2026-05-30 11:18:48.086 [DBG]: - [LOK Progress] '43'
2026-05-30 11:18:48.086 [DBG]: - [LOK Progress] '55'
2026-05-30 11:18:48.090 [DBG]: - [LOK Progress] '100'
2026-05-30 11:18:48.092 [INF]: - [LOK Status] Operation finished

It just says Operation finished and thats it... nothing... it hangs forever. I
found another bug report that reported something simular and was wondering if I
ran into something simlar -->
https://bugs.documentfoundation.org/show_bug.cgi?id=168431

Steps to Reproduce:
1. Clone the repo https://github.com/Sicos1977/LibreOfficeKit
2. Run the console app LibreOfficeKit.Console.exe with the command
LibreOfficeKit.Console --direct <thefile.xlsx> output.pdf


Actual Results:
1. Clone the repo https://github.com/Sicos1977/LibreOfficeKit
2. Run the console app LibreOfficeKit.Console.exe with the command
LibreOfficeKit.Console --direct <thefile.xlsx> output.pdf

Expected Results:
That the conversion will succeed.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
The conversion works fine when doing everything with soffice.exe.

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

Reply via email to