Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
On 06/30/2011 02:20 PM, vikt...@gmail.com wrote: On 06/30/2011 10:27 AM, Tor Lillqvist wrote: For example, is it possible to build just the module that is causing a problem with the debug flags set, and replace just that .dll in LibreOffice, rather than building the whole source? You also need to build the modules that it depends on. Depending on how high in the dependency hierarchy the module you are interested in is located, that might be a large or small part of the code. OK - I have tried - but I cannot seems to figure how to build single modules - could anyone give me a pointer on that? I need to build the URE dll's - particularly urp_uno.dll as I think that's where the issue seems to be happening. Managed to get there *almost*. I have built most of the modules that ure is dependant on, but am stuck here: SmoketestCommandEnvironment.java:34: package com.sun.star.ucb does not exist import com.sun.star.ucb.XCommandEnvironment; I have build ucb - but I seem to have missed a module. Anyone know which module provides this package? Thanks Vik ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
SmoketestCommandEnvironment.java:34: package com.sun.star.ucb does not exist import com.sun.star.ucb.XCommandEnvironment; I have build ucb - but I seem to have missed a module. Anyone know which module provides this package? Ah, found it in unoil! ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
On 06/29/2011 07:47 PM, Vik Tara wrote: On Wed, Jun 29, 2011 at 6:15 PM, Tor Lillqvist tlillqv...@novell.com mailto:tlillqv...@novell.com wrote: Can I actually build the windows binaries on linux? Not yet. OK - reviewed the windows build instructions - doesn't look like much fun - but will try it ;) Is there an easier way than building everything for me to debug the issue? For example, is it possible to build just the module that is causing a problem with the debug flags set, and replace just that .dll in LibreOffice, rather than building the whole source? TIA Vik ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
For example, is it possible to build just the module that is causing a problem with the debug flags set, and replace just that .dll in LibreOffice, rather than building the whole source? You also need to build the modules that it depends on. Depending on how high in the dependency hierarchy the module you are interested in is located, that might be a large or small part of the code. --tml ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
One of the problems I am facing is there is a hang from my app communcatiing with Libre. Again it always seems to be at the stage of getting the list of text fields: xTextFieldsSupplier.getTextFields(); This results in the system hanging and upon inspection of the stack trace it appears to be waiting for a response from Libre. This test was performed with a brand new document to try to discount any problems with a corrupted document. After checking with my debugger attached to libre office it does not show any exception or crash. Thread [main] (Suspended) Object.wait(long) line: not available [native method] JobQueue.removeJob(int) line: 221 JobQueue.enter(int, Object) line: 331 JobQueue.enter(Object) line: 304 JavaThreadPool.enter(Object, ThreadId) line: 91 java_remote_bridge.sendRequest(String, Type, String, Object[]) line: 639 ProxyFactory$Handler.request(String, Object[]) line: 151 ProxyFactory$Handler.invoke(Object, Method, Object[]) line: 133 $Proxy28.getTextFields() line: not available TextFieldService.getUserTextFields() line: 279 OpenOfficeManager$OOViewer.getMergeFields(ITextDocument) line: 580 OpenOfficeManager$OOViewer.getMergeFields() line: 541 FieldLookupMailMerge.initQuery() line: 395 FieldLookupMailMerge.openFieldLookup(Composite) line: 115 TreeMailMergeNavigator.openNewDocument(Shell) line: 715 TreeMailMergeNavigator.menuNewDocument(Shell) line: 783 TreeMailMergeNavigator.startMailMergeOperation(Shell, TreeMailMergeNavigator$Operations, TreeItem) line: 386 PropcoUserView.MailMergeMenu(TreeMailMergeNavigator$Operations) line: 1997 PropcoUserView$1MailMergeMenuNavigator.widgetSelected(SelectionEvent) line: 1581 TypedListener.handleEvent(Event) line: not available EventTable.sendEvent(Event) line: not available Button(Widget).sendEvent(Event) line: not available Display.runDeferredEvents() line: not available Display.readAndDispatch() line: not available PropcoUserView.main(String[]) line: 2408 Any help much appreciated. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
On 06/30/2011 10:27 AM, Tor Lillqvist wrote: For example, is it possible to build just the module that is causing a problem with the debug flags set, and replace just that .dll in LibreOffice, rather than building the whole source? You also need to build the modules that it depends on. Depending on how high in the dependency hierarchy the module you are interested in is located, that might be a large or small part of the code. OK - I have tried - but I cannot seems to figure how to build single modules - could anyone give me a pointer on that? I need to build the URE dll's - particularly urp_uno.dll as I think that's where the issue seems to be happening. TIA Vik ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
Thank you for your help on this. I am building the debug now, not sure if this helps in any way but it appears that nearly all points of failure start with this line: XTextFieldsSupplier xTextFieldsSupplier = (XTextFieldsSupplier)UnoRuntime.queryInterface(XTextFieldsSupplier.class, textDocument.getXTextDocument()); XEnumerationAccess xEnumerationAccess = xTextFieldsSupplier.getTextFields(); This seems to either result in the freeze or reset connection. I will post more once the debug build is completed . Thanks On Wed, 2011-06-29 at 11:17 +0100, Caolán McNamara wrote: On Tue, 2011-06-28 at 14:37 +0100, Stuart Ledwich (Hotmail) wrote: Thank you for the swift response. I think it sounds like good idea to debug libre office to find out exactly where its failing. Do you know if there is any blogs/wiki/documentation to help me get started with that .Thanks This is windows, so not my primary platform, but IIRC attach to process in one of the MSVisual Studio menus will do the right thing, just looks for soffice in the list. If it is crashing on the server side you may have to build your own LibreOffice from source and rebuild the lib in which it crashes with debugging symbols, e.g. http://wiki.documentfoundation.org/Development/Native_Build#Partial_debug_build to get something more useful out of it. C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
On Tue, Jun 28, 2011 at 3:55 PM, Stuart Ledwich (Hotmail) stuart_ledw...@hotmail.com wrote: Either problem seems to happen on either the IDocument.getTextFields or IDocument.close. Either textDocument object is null or the XTextDocument returned by getXTextDocument() is null maybe ? Try putting a break point in getUserTextFields() - and examine whehter textDocument or the handle returned by it is null... ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
Hi, This is windows, so not my primary platform, but IIRC attach to process in one of the MSVisual Studio menus will do the right thing, just looks for soffice in the list. I am also working on this problem. This is what I get when attaching to the process: The thread 'Win32 Thread' (0x198) has exited with code 0 (0x0). 'soffice.bin': Loaded 'C:\Program Files\OpenOffice.org 3\program\updatefeed.uno.dll', No symbols loaded. The thread 'Win32 Thread' (0xea8) has exited with code 0 (0x0). The thread 'Win32 Thread' (0xc30) has exited with code 0 (0x0). 'soffice.bin': Loaded 'C:\Program Files\NET6\ctxsysmon.dll', No symbols loaded. First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++ exception: com::sun::star::container::NoSuchElementException at memory location 0x0185f8f4.. First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++ exception: com::sun::star::frame::UnknownModuleException at memory location 0x10b4f960.. First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++ exception: com::sun::star::frame::UnknownModuleException at memory location 0x10b4f9c0.. The thread 'Win32 Thread' (0xf58) has exited with code 0 (0x0). The thread 'Win32 Thread' (0x9d4) has exited with code 0 (0x0). The thread 'Win32 Thread' (0x988) has exited with code 0 (0x0). First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++ exception: com::sun::star::io::IOException at memory location 0x0b2cfdc0.. The thread 'Win32 Thread' (0xd00) has exited with code 0 (0x0). The thread 'Win32 Thread' (0xfd0) has exited with code 0 (0x0). The thread 'Win32 Thread' (0xd1c) has exited with code 0 (0x0). The thread 'Win32 Thread' (0xd7c) has exited with code 0 (0x0). The thread 'Win32 Thread' (0x784) has exited with code 0 (0x0). The thread 'Win32 Thread' (0x9c8) has exited with code 0 (0x0). The thread 'Win32 Thread' (0x6a0) has exited with code 1 (0x1). 'soffice.bin': Unloaded 'C:\WINNT\system32\dciman32.dll' 'soffice.bin': Unloaded 'C:\WINNT\system32\wshtcpip.dll' 'soffice.bin': Unloaded 'C:\WINNT\system32\hnetcfg.dll' 'soffice.bin': Unloaded 'C:\WINNT\system32\winrnr.dll' The thread 'Win32 Thread' (0xa68) has exited with code 0 (0x0). The thread 'Win32 Thread' (0xc44) has exited with code 0 (0x0). The thread 'Win32 Thread' (0xae0) has exited with code 0 (0x0). The thread 'Win32 Thread' (0xdd0) has exited with code 0 (0x0). The thread 'Win32 Thread' (0xfa4) has exited with code 0 (0x0). The thread 'Win32 Thread' (0x8d8) has exited with code 0 (0x0). The thread 'Win32 Thread' (0xe44) has exited with code 0 (0x0). The program '[1312] soffice.bin: Native' has exited with code 0 (0x0). This occurred when calling the getDocumentCount. I guess we need to debug the libre side now - or does the above shed any light? Regards Vik ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
Hi, If it is crashing on the server side you may have to build your own LibreOffice from source and rebuild the lib in which it crashes with debugging symbols, e.g. http://wiki.documentfoundation.org/Development/Native_Build#Partial_debug_build to get something more useful out of it. The problem we have is on windows only - but I am building the source right now on linux. Can I actually build the windows binaries on linux? Thanks Vik ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
Can I actually build the windows binaries on linux? Not yet. --tml ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
On Wed, Jun 29, 2011 at 6:15 PM, Tor Lillqvist tlillqv...@novell.comwrote: Can I actually build the windows binaries on linux? Not yet. OK - reviewed the windows build instructions - doesn't look like much fun - but will try it ;) Is there an easier way than building everything for me to debug the issue? ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
I am currently using openoffice 3.3 on windows (tested on Windows XP sp3 and Windows7) and have a problem (linux is working well). I use NOA (Nice Office Access) as a layer to uno - which appears to be working ok. I connect to open office and all seems well, do some simple field manipulation and then print and close the document. I am finding that every so often (about 1 in 5) I get either an error: ag.ion.bion.officelayer.text.TextException: java_remote_bridge com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge@dca5b7 is disposed at ag.ion.bion.officelayer.internal.text.TextFieldService.getUserTextFields(TextFieldService.java:287) at com.propco.mailmerge.openoffice.OpenOfficeManager$OOViewer.getMergeFields(OpenOfficeManager.java:562) Or I get a freeze and the stack trace looks like this: Object.wait(long) line: not available [native method] JobQueue.removeJob(int) line: 230 JobQueue.enter(int, Object) line: 340 JobQueue.enter(Object) line: 313 JavaThreadPool.enter(Object, ThreadId) line: 101 java_remote_bridge.sendRequest(String, Type, String, Object[]) line: 652 ProxyFactory$Handler.request(String, Object[]) line: 154 ProxyFactory$Handler.invoke(Object, Method, Object[]) line: 136 $Proxy28.getTextFields() line: not available TextFieldService.getUserTextFields() line: 276 OpenOfficeManager$OOViewer.getMergeFields(ITextDocument) line: 562 Either problem seems to happen on either the IDocument.getTextFields or IDocument.close. What i have tried to fix the problem: 1. Perform a wireshark trace of the communications between my java app and openoffice - but found the trace was too complex to follow. 2. tried to update openoffice jars with the ones provided with the libreoffice and this has had no effect. 3. tried with smaller and larger documents and both appear to have the same issue. Any help would be very much appreciated. Best Regards, Stuart Ledwich ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] Problem with socket timeout and regular freezing when using UNO and NOA
I just need to make it clear - I have refered to openoffice but I am using LibreOffice, also tested with open office and got the same results. Thanks On Tue, 2011-06-28 at 13:55 +0100, Stuart Ledwich (Hotmail) wrote: I am currently using openoffice 3.3 on windows (tested on Windows XP sp3 and Windows7) and have a problem (linux is working well). I use NOA (Nice Office Access) as a layer to uno - which appears to be working ok. I connect to open office and all seems well, do some simple field manipulation and then print and close the document. I am finding that every so often (about 1 in 5) I get either an error: ag.ion.bion.officelayer.text.TextException: java_remote_bridge com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge@dca5b7 is disposed at ag.ion.bion.officelayer.internal.text.TextFieldService.getUserTextFields(TextFieldService.java:287) at com.propco.mailmerge.openoffice.OpenOfficeManager$OOViewer.getMergeFields(OpenOfficeManager.java:562) Or I get a freeze and the stack trace looks like this: Object.wait(long) line: not available [native method] JobQueue.removeJob(int) line: 230 JobQueue.enter(int, Object) line: 340 JobQueue.enter(Object) line: 313 JavaThreadPool.enter(Object, ThreadId) line: 101 java_remote_bridge.sendRequest(String, Type, String, Object[]) line: 652 ProxyFactory$Handler.request(String, Object[]) line: 154 ProxyFactory$Handler.invoke(Object, Method, Object[]) line: 136 $Proxy28.getTextFields() line: not available TextFieldService.getUserTextFields() line: 276 OpenOfficeManager$OOViewer.getMergeFields(ITextDocument) line: 562 Either problem seems to happen on either the IDocument.getTextFields or IDocument.close. What i have tried to fix the problem: 1. Perform a wireshark trace of the communications between my java app and openoffice - but found the trace was too complex to follow. 2. tried to update openoffice jars with the ones provided with the libreoffice and this has had no effect. 3. tried with smaller and larger documents and both appear to have the same issue. Any help would be very much appreciated. Best Regards, Stuart Ledwich ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice