You are not logged in.

#1 2022-11-03 17:09:19

jbell
Member
Registered: 2020-05-13
Posts: 11

[SOLVED] Pdf conversion not working with Libreoffice and Onlyoffice

Hello,

I tried today to create a PDF from an ODT and DOCX file in Libreoffice and Onlyoffice and it did not work.

Libreoffice just creates a white document and Onlyoffice does not even create a file but at least produces this coredump:

$ coredumpctl info
           PID: 4116 (x2t)
           UID: 1000 (jbell)
           GID: 1000 (jbell)
        Signal: 11 (SEGV)
     Timestamp: Thu 2022-11-03 17:24:03 CET (37min ago)
  Command Line: /opt/onlyoffice/desktopeditors/converter/x2t /home/jbell/.local/share/onlyoffice/desktopeditors/recover/DE__1pWfLg/params_to.xml
    Executable: /opt/onlyoffice/desktopeditors/converter/x2t
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-onlyoffice\x2ddesktopeditors-3748.scope
          Unit: user@1000.service
     User Unit: app-gnome-onlyoffice\x2ddesktopeditors-3748.scope
         Slice: user-1000.slice
     Owner UID: 1000 (jbell)
       Boot ID: f01df4e5cfde4b9e89b3b971aeb1152e
    Machine ID: 2ee3506f526f41b7a82e9a9dc481f27c
      Hostname: freshbook
       Storage: /var/lib/systemd/coredump/core.x2t.1000.f01df4e5cfde4b9e89b3b971aeb1152e.4116.1667492643000000.zst (present)
     Disk Size: 41.6M
       Message: Process 4116 (x2t) of user 1000 dumped core.
                
                Module linux-vdso.so.1 with build-id 673cf8edd9ecb7ab2da5cd0d5fd967e3ac08b6be
                Module libdl.so.2 with build-id 414d1d630bc04818a150b9c73e4493f3395e8869
                Module libicudata.so.58 with build-id 184783908b8817afa6faf26783fa2c02ef281800
                Module ld-linux-x86-64.so.2 with build-id 22bd7a2c03d8cfc05ef7092bfae5932223189bc1
                Module libicuuc.so.58 with build-id 43a7ededdda32220246058c357ca4d4b8077aad1
                Module libgcc_s.so.1 with build-id 85db482c4585a328d95ec41124337a967bb24d8f
                Module libstdc++.so.6 with build-id 735a3d0cc7699fd69337361cba4aedb644b2a7ed
                Module libc.so.6 with build-id 1e94beb079e278ac4f2c8bce1f53091548ea1584
                Module libm.so.6 with build-id 2c8ff1d29b255da5b7371efd5caf57444d622838
                Module libpthread.so.0 with build-id 3954d7fd57fa4db438d0ccdd8e2c6f7cc97c2e46
                Module libDocxRenderer.so with build-id bb887a928bb2773699001d0efda233bc0515ee4e
                Module libdoctrenderer.so with build-id 6ae54a8d9efe2ce64139a6009f039fbefdc0c9f9
                Module libHtmlRenderer.so with build-id 89c3095750e298330e8fc6dabb643f262a2b72e8
                Module libDjVuFile.so with build-id 1fed39b02ae6b8ba57df3073a7ef8f0c45df4b75
                Module libXpsFile.so with build-id a66701c95d2e57a816f19d15fef7237efeb37d11
                Module libEpubFile.so with build-id aca56a339910ae447d8b7bb6eec867228e5bd342
                Module libHtmlFile2.so with build-id 7fc53236cca521b89694d2ec453465948dfc838b
                Module libPdfReader.so with build-id 3f9e3efbf6717b486f727f594192de9779a6d7b5
                Module libPdfWriter.so with build-id f07e767f6e9b85c9b3cabebbb5d40dbf19b023e9
                Module libFb2File.so with build-id 543d055a842507f0d51e71d70dc3d8aa9d2ddb14
                Module libkernel_network.so with build-id a93e10806ac0c07823bd78721d3c2ffb0fc0a036
                Module libUnicodeConverter.so with build-id f3f80f532b139b70958f5e86ec2683689e33de8d
                Module libkernel.so with build-id df697a6c48b6ae9b70b428ca1e7fa7f5a7b2a5fd
                Module libgraphics.so with build-id 1f399e57f30bc396a1071c93cd542b3b582c707d
                Module x2t with build-id 44400b94aa50a80b2011af75059779f10dcb911e
                Stack trace of thread 4116:
                #0  0x00007f3a60db1dea n/a (libPdfWriter.so + 0x1b1dea)
                #1  0x00007f3a60db335a n/a (libPdfWriter.so + 0x1b335a)
                #2  0x00007f3a60d93a92 n/a (libPdfWriter.so + 0x193a92)
                #3  0x00007f3a60dd1734 _ZN12CPdfRenderer7GetFontERKNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEERKl (libPdfWriter.so + 0x1d1734)
                #4  0x00007f3a60dd5287 _ZN12CPdfRenderer10UpdateFontEv (libPdfWriter.so + 0x1d5287)
                #5  0x00007f3a60dd5ae5 _ZN12CPdfRenderer9EncodeGIDERKjPS0_S1_ (libPdfWriter.so + 0x1d5ae5)
                #6  0x00007f3a60dd5b4f _ZN12CPdfRenderer20CommandDrawTextCHAR2EPjRKjS2_RKdS4_S4_S4_ (libPdfWriter.so + 0x1d5b4f)
                #7  0x00007f3a626f12b1 _ZN22NSOnlineOfficeBinToPdf23ConvertBufferToRendererEPhlP20IMetafileToRenderter (libgraphics.so + 0x4f12b1)
                #8  0x00007f3a60dcf177 n/a (libPdfWriter.so + 0x1cf177)
                #9  0x00007f3a60dcf2d0 n/a (libPdfWriter.so + 0x1cf2d0)
                #10 0x00007f3a60dd1b71 _ZN12CPdfRenderer25OnlineWordToPdfFromBinaryERKNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEES7_P21CConvertFromBinParams (libPdfWriter.so + 0x1d1b71)
                #11 0x00000000007a247e n/a (x2t + 0x3a247e)
                #12 0x00000000007a7847 n/a (x2t + 0x3a7847)
                #13 0x00000000007ab757 n/a (x2t + 0x3ab757)
                #14 0x000000000052450a n/a (x2t + 0x12450a)
                #15 0x00007f3a5d23c290 n/a (libc.so.6 + 0x23290)
                #16 0x00007f3a5d23c34a __libc_start_main (libc.so.6 + 0x2334a)
                #17 0x0000000000778f99 n/a (x2t + 0x378f99)
                
                Stack trace of thread 4129:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4122:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4117:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4120:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4126:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4119:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4128:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4127:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4124:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4118:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4125:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4130:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4123:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4121:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                
                Stack trace of thread 4131:
                #0  0x00007f3a5d29c4b6 n/a (libc.so.6 + 0x834b6)
                #1  0x00007f3a5d29ecd0 pthread_cond_wait (libc.so.6 + 0x85cd0)
                #2  0x00007f3a5dd9954b _ZN2v88platform16DelayedTaskQueue7GetNextEv (libdoctrenderer.so + 0x59954b)
                #3  0x00007f3a5dd98cc0 _ZN2v88platform30DefaultWorkerThreadsTaskRunner12WorkerThread3RunEv (libdoctrenderer.so + 0x598cc0)
                #4  0x00007f3a5e4eb760 n/a (libdoctrenderer.so + 0xceb760)
                #5  0x00007f3a5d29f8fd n/a (libc.so.6 + 0x868fd)
                #6  0x00007f3a5d321a60 n/a (libc.so.6 + 0x108a60)
                ELF object binary architecture: AMD x86-64

It seems, that libPdfWriter.so and the x2t converter are creating this error but I could not find a package or a repository with this name. I am also not familiar how shared libraries exactly work.
So maybe someone could help me do understand what this coredump is about and where I could file or search for a bug reports.

Program Versions
Name                     : onlyoffice-bin
Version                  : 7.2.1-1

Name                     : libreoffice-still
Version                  : 7.3.6-4


Thanks in advance

Last edited by jbell (2022-11-04 09:51:53)

Offline

#2 2022-11-03 17:22:40

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,446

Re: [SOLVED] Pdf conversion not working with Libreoffice and Onlyoffice

No problems converting to PDF on libreoffice-fresh (7.4.2-2). I don't think Libreoffice pulls in or provides libPdfWriter, I can't find it on my system, at least. Have you tried converting just a simple 'hello world' document to PDF? Maybe it's something in the content of the odt/docx file?

Offline

#3 2022-11-03 17:56:02

jbell
Member
Registered: 2020-05-13
Posts: 11

Re: [SOLVED] Pdf conversion not working with Libreoffice and Onlyoffice

If I create a simple "hello world" document the pdf conversion works but as soon as I copy anything from the problematic document into a new document it does not work. Even if I only copy a single word. This is really weird. The conversion of the problematic document to pdf did work in april this year. Maybe some incompatible file is copied when I copy something from the problematic document.

EDIT:
It seems to be related with the font type. The font type of the document is Cantarell if I change it to Liberation Sans the conversion works.
The error can be reproduced by creating a a simple "Hello World" document and setting the font type to Cantarell.

EDIT2:
Ok, there are multiple bug reports concerning this issue:
https://bugs.archlinux.org/task/66754
https://bugs.documentfoundation.org/sho … ?id=130149
https://bugs.documentfoundation.org/sho … ?id=130149
https://bugs.documentfoundation.org/sho … ?id=108497

So maybe this thread can be closed.

Last edited by jbell (2022-11-03 18:09:08)

Offline

Board footer

Powered by FluxBB