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

            Bug ID: 171570
           Summary: Intermittent hang in headless mode during Java UNO
                    automation
           Product: LibreOffice
           Version: 26.2.1.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When executing UNO automation tasks in headless mode via Java (using
JodConverter 4.4.11), LibreOffice intermittently hangs. Once in this state, the
process remains active but becomes unresponsive to any new connection requests.

The issue occurs during a Mail Merge workflow involving a CSV database and an
ODT template.

Steps to Reproduce:
1. Start LibreOffice in headless mode with a listening socket and connect via
Java using the UNO runtime (JodConverter).

2. Execute the following sequence of operations:

- Register a new Data Source using a CSV file.
- Open a template document (ODT) containing mail merge fields.
- Modify merge field properties programmatically.
- Close the ODT document.
- Execute the Mail Merge command.
- Close/Remove the database connection.



Actual Results:
Intermittent hand of LibreOffice

Expected Results:
LibreOffice should be responsive to 


Reproducible: Sometimes


User Profile Reset: No

Additional Info:
When the hang occurs, the soffice.bin process remains active in the Task
Manager, showing a constant CPU usage of approximately 6%. The process becomes
a "zombie" state where it no longer accepts incoming UNO connections, forcing a
manual kill of the process to restore service.
----
Version: 26.2.1.2 (X86_64)
Build ID: 620(Build:2)
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan;
VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
----
Threads
0x72fc   0x0   soffice!main+0x3d4 (00007ff6`477113d4)    VCL Main   
0xc49c   0x1   ntdll!TppWorkerThread (00007ffb`a0e55b10)       
0x914c   0x2   ntdll!TppWorkerThread (00007ffb`a0e55b10)       
0xbd1c   0x3   ntdll!TppWorkerThread (00007ffb`a0e55b10)       
0x1b88   0x4   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
(00007ffb`9e783780)    headless ParentMonitorThread   
0x9fdc   0x5   mergedlo!XMLSignatureHelper::SetStorage+0x2aedb0
(00007ffa`561b9930)       
0x2cac   0x6   gdiplus!DllRefCountSafeThreadThunk (00007ffb`87bf8510)       
0xe94   0x7   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
(00007ffb`9e783780)    configmgrWriter   
0x6240   0x8   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
(00007ffb`9e783780)    PipeIPC   
0xcac   0x9   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
(00007ffb`9e783780)    URP Acceptor   
0xc1dc   0xa   combase!CRpcThreadCache::RpcWorkerThreadEntry
(00007ffb`9f2b3e80)       
0x709c   0xb   ntdll!TppWorkerThread (00007ffb`a0e55b10)       
0x51f4   0xc   ntdll!TppWorkerThread (00007ffb`a0e55b10)       
0xa230   0xd   msvcrt!_threadstartex (00007ffb`9f6af100)       
0xafd0   0xe   msvcrt!_threadstartex (00007ffb`9f6af100)       
0x8ee0   0xf   amdocl64!clSetKernelExecInfo+0x37990 (00007ffa`7e0f0df0)       
0x5e5c   0x10   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
(00007ffb`9e783780)    CMtaOleClipboard::oleThreadProc()   
0x4188   0x11   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
(00007ffb`9e783780)    CMtaOleClipboard::clipboardChangedNotifierThreadProc()   
0x1ea4   0x12   ntdll!TppWorkerThread (00007ffb`a0e55b10)       
0x92d8   0x13   ntdll!TppWorkerThread (00007ffb`a0e55b10)       
0x96d4   0x14   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
(00007ffb`9e783780)    SystrayThread   
0xa54   0x15   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
(00007ffb`9e783780)    binaryurpReader   
0x3d90   0x16   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
(00007ffb`9e783780)    DocumentEventNotifier   
0x3464   0x17   amdihk64!NotifyFidelityFXGameVersion+0x37a0 (00007ffb`905d7330) 
0x5594   0x18   ntdll!DbgUiRemoteBreakin (00007ffb`a0f12d60)       
---
stackframe of VLC Main
[0x0]   win32u!NtUserMsgWaitForMultipleObjectsEx+0x14   0xc72a58f3f8  
0x7ffb9f1c4648   
[0x1]   combase!CCliModalLoop::BlockFn+0x110(void * * ahEvent = 0xc72a58f630,
unsigned long cEvents = 0x1, unsigned long * lpdwSignaled = 0xc72a58f638 : 0x0)
  0xc72a58f400   0x7ffb9f1d78a5   
[0x2]   combase!ClassicSTAThreadWaitForHandles+0xa5(unsigned long dwFlags =
0x8, dwTimeout = <unavailable>, unsigned long cHandles = 0x1, void * * pHandles
= 0xc72a58f630, unsigned long * pdwIndex = 0xc72a58f638 : 0x0)   0xc72a58f490  
0x7ffb9f1b127b   
[0x3]   combase!CoWaitForMultipleHandles+0xbb(unsigned long dwFlags = 0x8,
unsigned long dwTimeout = 0xffffffff, unsigned long cHandles = 0x1, void * *
pHandles = 0xc72a58f630, unsigned long * lpdwindex = 0xc72a58f638 : 0x0)  
0xc72a58f5b0   0x7ffb6f8fa7e5   
[0x4]   sal3!osl_waitCondition+0x55   0xc72a58f5f0   0x7ffadcacd997   
[0x5]   vclplug_winlo+0xd997   0xc72a58f630   0x7ffadcacee5b   
[0x6]   vclplug_winlo!create_SalInstance+0xb9b   0xc72a58f660   0x7ffa54950a3b  
[0x7]   mergedlo!Application::Execute+0x15b   0xc72a58f690   0x7ffa54950955   
[0x8]   mergedlo!Application::Execute+0x75   0xc72a58f6d0   0x7ffa5350ba04   
[0x9]  
mergedlo!cppu::WeakImplHelper<com::sun::star::container::XChild,com::sun::star::document::XDocumentPropertiesSupplier,com::sun::star::document::XCmisDocument,com::sun::star::rdf::XDocumentMetadataAccess,com::sun::star::document::XDocumentRecovery2,com::sun::star::document::XUndoManagerSupplier,com::sun::star::document::XShapeEventBroadcaster,com::sun::star::document::XDocumentEventBroadcaster,com::sun::star::lang::XEventListener,com::sun::star::document::XEventsSupplier,com::sun::star::document::XEmbeddedScripts,com::sun::star::document::XScriptInvocationContext,com::sun::star::frame::XModel3,com::sun::star::util::XModifiable2,com::sun::star::view::XPrintable,com::sun::star::view::XPrintJobBroadcaster,com::sun::star::frame::XStorable2,com::sun::star::frame::XLoadable,com::sun::star::script::XStarBasicAccess,com::sun::star::document::XViewDataSupplier,com::sun::star::util::XCloseable,com::sun::star::datatransfer::XTransferable,com::sun::star::document::XDocumentSubStorageSupplier,com::sun::star::document::XStorageBasedDocument,com::sun::star::script::provider::XScriptProviderSupplier,com::sun::star::ui::XUIConfigurationManagerSupplier,com::sun::star::embed::XVisualObject,com::sun::star::lang::XUnoTunnel,com::sun::star::frame::XModule,com::sun::star::frame::XTitle,com::sun::star::frame::XTitleChangeBroadcaster,com::sun::star::frame::XUntitledNumbers>::acquire+0x8bc4
  0xc72a58f700   0x7ffa54964312   
[0xa]   mergedlo!ImplSVMain+0x62   0xc72a58f930   0x7ffa5352daac   
[0xb]   mergedlo!soffice_main+0x2cc   0xc72a58f960   0x7ff64771101b   
[0xc]   soffice!main+0x1b   0xc72a58fa70   0x7ff6477112d4   
[0xd]   soffice!main+0x2d4   0xc72a58faa0   0x7ffb9ec6e8d7   
[0xe]   KERNEL32!BaseThreadInitThunk+0x17   0xc72a58fae0   0x7ffba0e6c48c   
[0xf]   ntdll!RtlUserThreadStart+0x2c   0xc72a58fb10   0x0   
----
stack frame of binaryurpReader
[0x0]   vclplug_winlo!dtrans_CWinClipboard_get_implementation+0x3b880  
0xc736e5e978   0x7ffa545d3cf8   
[0x1]   mergedlo!vcl::Window::GetOutDev+0x1ad8   0xc736e5e980   0x7ffa546d0b28  
[0x2]   mergedlo!OutputDevice::HasMirroredGraphics+0x18   0xc736e5e9b0  
0x7ffa545d5dcc   
[0x3]   mergedlo!vcl::Window::ImplPosSizeWindow+0x38c   0xc736e5e9e0  
0x7ffa544c1b72   
[0x4]   mergedlo!vcl::Window::ImplCalcSymbolRect+0x55c2   0xc736e5eb20  
0x7ffa545cb531   
[0x5]   mergedlo!vcl::Window::queue_resize+0x121   0xc736e5eba0  
0x7ffa545cb3a9   
[0x6]   mergedlo!vcl::Window::SetOutputSizePixel+0xc9   0xc736e5ebf0  
0x7ffa545cb44c   
[0x7]   mergedlo!vcl::Window::queue_resize+0x3c   0xc736e5ec20   0x7ffa545d864c 
[0x8]   mergedlo!vcl::Window::Show+0x12c   0xc736e5ec70   0x7ffa545d85e1   
[0x9]   mergedlo!vcl::Window::Show+0xc1   0xc736e5ed20   0x7ffa545d1663   
[0xa]   mergedlo!vcl::Window::dispose+0x603   0xc736e5edd0   0x7ffa544d77fe   
[0xb]   mergedlo!VclBuilder::disposeBuilder+0x6e   0xc736e5ee80  
0x7ffa544d7685   
[0xc]   mergedlo!VclBuilder::~VclBuilder+0x25   0xc736e5eed0   0x7ffa549175fe   
[0xd]   mergedlo!SalInstanceWidget::draw+0x23d5e   0xc736e5ef00  
0x7ffa54912bcd   
[0xe]   mergedlo!SalInstanceWidget::draw+0x1f32d   0xc736e5ef40  
0x7ffa54648f51   
[0xf]   mergedlo!InterimItemWindow::dispose+0x61   0xc736e5ef70  
0x7ffa53ec1cce   
[0x10]   mergedlo!ColorWindow::SelectEntry+0x5abe   0xc736e5efb0  
0x7ffa52a12e2e   
[0x11]  
mergedlo!com_sun_star_comp_framework_ThesaurusMenuController_get_implementation+0x6a1e
  0xc736e5f020   0x7ffa52a12068   
[0x12]  
mergedlo!com_sun_star_comp_framework_ThesaurusMenuController_get_implementation+0x5c58
  0xc736e5f0c0   0x7ffa52a2818f   
[0x13]  
mergedlo!com_sun_star_comp_framework_ThesaurusMenuController_get_implementation+0x1bd7f
  0xc736e5f190   0x7ffa52923b1e   
[0x14]  
mergedlo!com_sun_star_comp_framework_LayoutManager_get_implementation+0x544e  
0xc736e5f230   0x7ffa529224f2   
[0x15]  
mergedlo!com_sun_star_comp_framework_LayoutManager_get_implementation+0x3e22  
0xc736e5f2a0   0x7ffa52912b46   
[0x16]  
mergedlo!com_sun_star_comp_framework_JobExecutor_get_implementation+0x5d36  
0xc736e5f2d0   0x7ffa529618bb   
[0x17]   mergedlo!framework_DispatchHelper_get_implementation+0x7ebb  
0xc736e5f410   0x7ffa5295d9cc   
[0x18]   mergedlo!framework_DispatchHelper_get_implementation+0x3fcc  
0xc736e5f490   0x7ffa5295e09d   
[0x19]   mergedlo!framework_DispatchHelper_get_implementation+0x469d  
0xc736e5f560   0x7ffa53493c4f   
[0x1a]   mergedlo!SfxFrame::DoClose+0x5f   0xc736e5f620   0x7ffa534cfc55   
[0x1b]   mergedlo!SfxViewFrame::Notify+0x18f5   0xc736e5f670   0x7ffa536d4cf9   
[0x1c]   mergedlo!SfxBroadcaster::Broadcast+0x59   0xc736e5f7e0  
0x7ffa533cf966   
[0x1d]   mergedlo!SfxFilter::IsEnabled+0xa36   0xc736e5f810   0x7ffa533f3542   
[0x1e]   mergedlo!SfxBaseModel::close+0x202   0xc736e5f850   0x7ffa76ce13f0   
[0x1f]   swlo!SwXTextDocument::close+0x150   0xc736e5f900   0x7ffa76cccdf0   
[0x20]   swlo!SwXMailMerge_get_implementation+0x700   0xc736e5f940  
0x7ffa76ccdd63   
[0x21]   swlo!SwXMailMerge_get_implementation+0x1673   0xc736e5f970  
0x7ffa76ccdbfd   
[0x22]   swlo!SwXMailMerge_get_implementation+0x150d   0xc736e5f9a0  
0x7ffb71c5835e   
[0x23]   mscx_uno!uno_ext_getMapping+0x2d4e   0xc736e5f9d0   0x7ffb584cd7f1   
[0x24]   cppu3!uno_Environment_isValid+0x3821   0xc736e5fa00   0x7ffb584c9bca   
[0x25]   cppu3!uno_getCurrentEnvironment+0xa5a   0xc736e5fa70   0x7ffb584c9f16  
[0x26]   cppu3!uno_Environment_invoke+0x46   0xc736e5fb00   0x7ffb53ef0d24   
[0x27]   binaryurplo+0x10d24   0xc736e5fb50   0x7ffb53ef0dea   
[0x28]   binaryurplo+0x10dea   0xc736e5fb80   0x7ffb53ef0dcf   
[0x29]   binaryurplo+0x10dcf   0xc736e5fbb0   0x7ffb53ef0dcf   
[0x2a]   binaryurplo+0x10dcf   0xc736e5fbe0   0x7ffb53ef0dcf   
[0x2b]   binaryurplo+0x10dcf   0xc736e5fc10   0x7ffb53ee5bf3   
[0x2c]   binaryurplo+0x5bf3   0xc736e5fc40   0x7ffb53f0b7f7   
[0x2d]  
binaryurplo!com_sun_star_comp_bridge_BridgeFactory_get_implementation+0x142c7  
0xc736e5fd30   0x7ffb88cb2e81   
[0x2e]   salhelper3MSC!salhelper::Thread::run+0x31   0xc736e5fe50  
0x7ffb88cb2ac8   
[0x2f]   salhelper3MSC!salhelper::SimpleReferenceObject::operator delete+0xaf8 
 0xc736e5fe90   0x7ffb6f91e1d8   
[0x30]   sal3!osl_getTempDirURL+0x3d8   0xc736e5fec0   0x7ffb9e7837b0   
[0x31]   ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>+0x30()  
0xc736e5fef0   0x7ffb9ec6e8d7   
[0x32]   KERNEL32!BaseThreadInitThunk+0x17   0xc736e5ff20   0x7ffba0e6c48c   
[0x33]   ntdll!RtlUserThreadStart+0x2c   0xc736e5ff50   0x0

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

Reply via email to