Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unoserver crash randomly #83

Closed
dridk opened this issue Aug 30, 2023 · 4 comments
Closed

unoserver crash randomly #83

dridk opened this issue Aug 30, 2023 · 4 comments

Comments

@dridk
Copy link

dridk commented Aug 30, 2023

Hi,

I run unoserver as a systemd daemon .

I try to convert 60 000 doc file into docx files using a simple for loop:

for file in *.doc ; do unoconvert --convert-to docx $file ${file%%doc}.docx ; done

It works , until unoserver crash. I don't think it comes from a corrupted files. It is randomly.

Unoconvert log

INFO:unoserver:Using MS Word 2007 XML export filter
INFO:unoserver:Starting unoconverter.
INFO:unoserver:Opening 1689966.doc
INFO:unoserver:Exporting to1689966.docx
INFO:unoserver:Using MS Word 2007 XML export filter
INFO:unoserver:Starting unoconverter.
INFO:unoserver:Opening /1689967.doc
INFO:unoserver:Exporting to 1689967.docx
INFO:unoserver:Using MS Word 2007 XML export filter
INFO:unoserver:Starting unoconverter.
INFO:unoserver:Opening 1689968.doc
INFO:unoserver:Exporting to 1689968.docx
INFO:unoserver:Using MS Word 2007 XML export filter
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/unoserver/[converter.py](http://converter.py/)", line 268, in convert
    document.storeToURL(export_path, output_props)
[unoserver.converter.com.sun.star](http://unoserver.converter.com.sun.star/).lang.DisposedException: Binary URP bridge disposed during call /builddir/build/BUILD/libreoffice-7.1.8.1/binaryurp/source/bridge.cxx:613

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/unoconvert", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/unoserver/[converter.py](http://converter.py/)", line 358, in main
    result = converter.convert(
  File "/usr/local/lib/python3.9/site-packages/unoserver/[converter.py](http://converter.py/)", line 271, in convert
    document.close(True)
[uno.com.sun.star.uno](http://uno.com.sun.star.uno/).RuntimeException: illegal object given! /builddir/build/BUILD/libreoffice-7.1.8.1/stoc/source/corereflection/crefl.cxx:364
INFO:unoserver:Starting unoconverter.
Traceback (most recent call last):
  File "/usr/local/bin/unoconvert", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/unoserver/[converter.py](http://converter.py/)", line 339, in main
converter = UnoConverter(args.interface, args.port)
File "/usr/local/lib/python3.9/site-packages/unoserver/[converter.py](http://converter.py/)", line 75, in init
self.context = self.resolver.resolve(
[unoserver.converter.com.sun.star](http://unoserver.converter.com.sun.star/).connection.NoConnectException: Connector : couldn't connect to socket (Connection refused) /builddir/build/BUILD/libreoffice-7.1.8.1/io/source/connector/connector.cxx:119
INFO:unoserver:Starting unoconverter.
Traceback (most recent call last):
File "/usr/local/bin/unoconvert", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/unoserver/[converter.py](http://converter.py/)", line 339, in main
converter = UnoConverter(args.interface, args.port)
File "/usr/local/lib/python3.9/site-packages/unoserver/[converter.py](http://converter.py/)", line 75, in init
self.context = self.resolver.resolve(
[unoserver.converter.com.sun.star](http://unoserver.converter.com.sun.star/).connection.NoConnectException: Connector : couldn't connect to socket (Connection refused) /builddir/build/BUILD/libreoffice-7.1.8.1/io/source/connector/connector.cxx:119
INFO:unoserver:Starting unoconverter.

unoserver log :

INFO:unoserver:Starting unoserver.
INFO:unoserver:Command: libreoffice --headless --invisible --nocrashreport --nodefault --nologo --nofirststartwizard --norestore -env:UserInstallation=file:///tmp/tmprdlu3v57 --accept=socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext
INFO:unoserver:Server PID: 963110
Application Error

Fatal exception: Signal 6
Stack:
/usr/lib64/libreoffice/program/libuno_[sal.so](http://sal.so/).3(+0x3b193)[0x7ff263b98193]
/usr/lib64/libreoffice/program/libuno_[sal.so](http://sal.so/).3(+0x3b384)[0x7ff263b98384]
/lib64/[libc.so](http://libc.so/).6(+0x54df0)[0x7ff263854df0]
/lib64/[libc.so](http://libc.so/).6(+0xa154c)[0x7ff2638a154c]
/lib64/[libc.so](http://libc.so/).6(raise+0x16)[0x7ff263854d46]
/lib64/[libc.so](http://libc.so/).6(abort+0xd3)[0x7ff2638287f3]
/usr/lib64/libreoffice/program/[libvcllo.so](http://libvcllo.so/)(+0x30978f)[0x7ff25fd0978f]
/usr/lib64/libreoffice/program/[libsofficeapp.so](http://libsofficeapp.so/)(+0x36c76)[0x7ff263ab9c76]
/usr/lib64/libreoffice/program/[libvcllo.so](http://libvcllo.so/)(+0x6c7783)[0x7ff2600c7783]
/usr/lib64/libreoffice/program/libuno_[sal.so](http://sal.so/).3(+0x3b2ba)[0x7ff263b982ba]
/lib64/[libc.so](http://libc.so/).6(+0x54df0)[0x7ff263854df0]
/lib64/[libc.so](http://libc.so/).6(+0xa154c)[0x7ff2638a154c]
/lib64/[libc.so](http://libc.so/).6(raise+0x16)[0x7ff263854d46]
/lib64/[libc.so](http://libc.so/).6(abort+0xd3)[0x7ff2638287f3]
/usr/lib64/libreoffice/program/../program/[libooxlo.so](http://libooxlo.so/)(+0x12ea78)[0x7ff23fb2ea78]
/usr/lib64/libreoffice/program/../program/[libooxlo.so](http://libooxlo.so/)(_ZN3oox3vml9VMLExport6CommitER23EscherPropertyContainerRKN5tools9RectangleE+0x25e5)[0x7ff23fc75d15]
/usr/lib64/libreoffice/program/../program/[libmsfilterlo.so](http://libmsfilterlo.so/)(+0x5143c)[0x7ff24b33743c]
/usr/lib64/libreoffice/program/../program/[libmsfilterlo.so](http://libmsfilterlo.so/)(+0x507b1)[0x7ff24b3367b1]
/usr/lib64/libreoffice/program/../program/[libmsfilterlo.so](http://libmsfilterlo.so/)(_ZN8EscherEx12AddSdrObjectERK9SdrObjectb+0x1d1)[0x7ff24b339cd1]
/usr/lib64/libreoffice/program/../program/[libooxlo.so](http://libooxlo.so/)(_ZN3oox3vml9VMLExport12AddSdrObjectERK9SdrObjectssssSt10unique_ptrIN14sax_fastparser17FastAttributeListESt14default_deleteIS7_EEb+0x75)[0x7ff23fc72805]
/usr/lib64/libreoffice/program/../program/[libmswordlo.so](http://libmswordlo.so/)(+0xb9dfb)[0x7ff2486b9dfb]
/usr/lib64/libreoffice/program/../program/[libmswordlo.so](http://libmswordlo.so/)(+0xbffca)[0x7ff2486bffca]
/usr/lib64/libreoffice/program/../program/[libmswordlo.so](http://libmswordlo.so/)(+0x6ffca)[0x7ff24866ffca]
/usr/lib64/libreoffice/program/../program/[libmswordlo.so](http://libmswordlo.so/)(+0x10c05d)[0x7ff24870c05d]
/usr/lib64/libreoffice/program/../program/[libmswordlo.so](http://libmswordlo.so/)(+0x129343)[0x7ff248729343]
/usr/lib64/libreoffice/program/../program/[libmswordlo.so](http://libmswordlo.so/)(+0xad99f)[0x7ff2486ad99f]
/usr/lib64/libreoffice/program/../program/[libmswordlo.so](http://libmswordlo.so/)(+0x133077)[0x7ff248733077]
/usr/lib64/libreoffice/program/../program/[libmswordlo.so](http://libmswordlo.so/)(+0xbb4f4)[0x7ff2486bb4f4]
/usr/lib64/libreoffice/program/../program/[libooxlo.so](http://libooxlo.so/)(_ZN3oox4core10FilterBase6filterERKN3com3sun4star3uno8SequenceINS4_5beans13PropertyValueEEE+0x2fb)[0x7ff23fb33c6b]
/usr/lib64/libreoffice/program/../program/[libwriterfilterlo.so](http://libwriterfilterlo.so/)(+0x17647f)[0x7ff23e97647f]
/usr/lib64/libreoffice/program/[libsfxlo.so](http://libsfxlo.so/)(_ZN14SfxObjectShell8ExportToER9SfxMedium+0x113a)[0x7ff26234890a]
/usr/lib64/libreoffice/program/[libsfxlo.so](http://libsfxlo.so/)(+0x343ab5)[0x7ff262343ab5]
/usr/lib64/libreoffice/program/[libsfxlo.so](http://libsfxlo.so/)(+0x32b9d8)[0x7ff26232b9d8]
/usr/lib64/libreoffice/program/[libsfxlo.so](http://libsfxlo.so/)(+0x3761d2)[0x7ff2623761d2]
/usr/lib64/libreoffice/program/[libsfxlo.so](http://libsfxlo.so/)(_ZN12SfxBaseModel10storeToURLERKN3rtl8OUStringERKN3com3sun4star3uno8SequenceINS6_5beans13PropertyValueEEE+0x1a3)[0x7ff2623683d3]
/usr/lib64/libreoffice/program/libgcc3_[uno.so](http://uno.so/)(+0x9b8d)[0x7ff25afe2b8d]
/usr/lib64/libreoffice/program/libgcc3_[uno.so](http://uno.so/)(+0x8cd6)[0x7ff25afe1cd6]
/usr/lib64/libreoffice/program/libgcc3_[uno.so](http://uno.so/)(+0x9426)[0x7ff25afe2426]
/usr/lib64/libreoffice/program/[libbinaryurplo.so](http://libbinaryurplo.so/)(+0x1c510)[0x7ff259da4510]
/usr/lib64/libreoffice/program/libuno_[cppu.so](http://cppu.so/).3(+0x9dd7)[0x7ff2636f3dd7]
/usr/lib64/libreoffice/program/libuno_[cppu.so](http://cppu.so/).3(+0xad61)[0x7ff2636f4d61]
/usr/lib64/libreoffice/program/libuno_[cppu.so](http://cppu.so/).3(+0xafc4)[0x7ff2636f4fc4]
/usr/lib64/libreoffice/program/libuno_[sal.so](http://sal.so/).3(+0x3b728)[0x7ff263b98728]
/lib64/[libc.so](http://libc.so/).6(+0x9f802)[0x7ff26389f802]
/lib64/[libc.so](http://libc.so/).6(+0x3f450)[0x7ff26383f450]
@regebro
Copy link
Member

regebro commented Aug 30, 2023

Yeah, this is LibreOffice crashing, I do not know why that would be. You would have to open a bug with LibreOffice.
There has been similar error logs that I have seen, but then LibreOffice has refused to start completely.

Googling for signal 6 and the error location doesn't bring up anything useful...

@dridk
Copy link
Author

dridk commented Aug 30, 2023

Ouch.... Any clue for alternative solution ? I already tried antiword, but it doesnt work for all kind of word file

@regebro
Copy link
Member

regebro commented Aug 30, 2023

It will take a lot longer, but if you use LibreOffice directly at least when it fails it will then continue with the next document. Then you can try again with the failed ones.

@dridk
Copy link
Author

dridk commented Sep 1, 2023

We found a solution !! We can run multiple instance of libre office using different user session.. so we ran batch of conversation in parrallel and it works faster

@regebro regebro closed this as completed Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants