Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-20931

Libreoffice CRASHING at open a pptx file

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 4.2.e Community
    • Fix Version/s: None
    • Security Level: external (External user)
    • Labels:
      None
    • Environment:
      Debian 7 (Wheezy).
    • Security Severity:
      Medium

      Description

      Hi users.

      I'm having a problem with my Alfresco Share. I have a "pptx file" whose when I try to preview it, the message "The Preview cannot be loaded from server". In addition, Libreoffice stop to work (CRASH) and I have to start the

      libreoffice_ctl.sh script again, otherwise, I can't convert other files until I do that.

      I've tried convert such "pptx file" from command line:

      1. /opt/alfresco-4.2.e/libreoffice/program/soffice.bin --convert-to pdf file.pptx
        Segmentation fault

      kern.log presents:

      .soffice.bin[22857]: segfault at 18 ip 00007f20ced7e899 sp 00007fffce417d50 error 4 in libooxlo.so[7f20cea60000+547000]

      Catalina shows the following error trying preview on Share:

      2014-04-24 17:11:52,769 INFO [management.subsystems.ChildApplicationContextFactory] [http-apr-8080-exec-9] Starting 'Transformers' subsystem, ID: [Transformers, default]
      2014-04-24 17:11:52,820 ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-9] Cannot create dynamic transformer transformer.complex.JodConverter.Image as sub transformers could not be found or created

      ("JodConverter.2Pdf|pdf|complex.PDF.Image").
      2014-04-24 17:11:52,820 ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-9] Cannot create dynamic transformer transformer.complex.JodConverter.Pdf2swf as sub transformers could not be found or created

      ("JodConverter.2Pdf|pdf|Pdf2swf").
      2014-04-24 17:11:52,820 ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-9] Cannot create dynamic transformer transformer.JodConverter.Html2Pdf as sub transformers could not be found or created

      ("JodConverter|odt|JodConverter").
      2014-04-24 17:11:52,820 ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-9] Cannot create dynamic transformer transformer.JodConverter.2Pdf as sub transformers could not be found or created

      ("JodConverter|JodConverter.Html2Pdf").
      2014-04-24 17:11:52,820 ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-9] Cannot create dynamic transformer transformer.complex.JodConverter.PdfBox as sub transformers could not be found or created

      ("JodConverter.2Pdf|pdf|PdfBox").
      2014-04-24 17:11:53,026 INFO [management.subsystems.ChildApplicationContextFactory] [http-apr-8080-exec-9] Startup of 'Transformers' subsystem, ID: [Transformers, default] complete
      2014-04-24 17:11:55,970 INFO [web.scripts.MimetypesQuery] [http-apr-8080-exec-1] Successfully retrieved mimetypes information from Alfresco.
      2014-04-24 17:11:57,267 ERROR [alfresco.util.SocketOpenOfficeConnection] [MessageDispatcher] disconnected unexpectedly
      2014-04-24 17:11:57,798 ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-4] Exception from executeScript - redirecting to status template error: 03240002 Wrapped Exception (with status template): 03240085 Failed to

      execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 03240084 Content conversion failed:
      reader: ContentAccessor[ contentUrl=store://2014/4/24/8/47/b7f68c5f-2a54-4790-b53a-5dc98df65865.bin, mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation, size=530159, encoding=UTF-8, locale=pt_BR]
      writer: ContentAccessor[ contentUrl=store://2014/4/24/17/11/4eb13140-69df-4d71-82f9-68e9aada2144.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=pt_BR]
      options:

      {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/a8e468b9-f9d3-49db-8fcf-22bb7d5ff290, contentWriterNodeRef=workspace://SpacesStore/bb84daed-ea4a-4991-953c-addbfafac2f0, sourceContentProperty=null, use=webpreview, includeEmbedded=false}

      limits:

      {timeoutMs=120000}
      org.springframework.extensions.webscripts.WebScriptException: 03240002 Wrapped Exception (with status template): 03240085 Failed to execute script

      'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 03240084 Content conversion failed:
      reader: ContentAccessor[ contentUrl=store://2014/4/24/8/47/b7f68c5f-2a54-4790-b53a-5dc98df65865.bin, mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation, size=530159, encoding=UTF-8, locale=pt_BR]
      writer: ContentAccessor[ contentUrl=store://2014/4/24/17/11/4eb13140-69df-4d71-82f9-68e9aada2144.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=pt_BR]
      options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/a8e468b9-f9d3-49db-8fcf-22bb7d5ff290, contentWriterNodeRef=workspace://SpacesStore/bb84daed-ea4a-4991-953c-addbfafac2f0, sourceContentProperty=null, use=webpreview, includeEmbedded=false}
      limits: {timeoutMs=120000}

      at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
      at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:184)
      at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:422)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:491)
      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:529)
      at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:341)
      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
      at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1810)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: org.alfresco.scripts.ScriptException: 03240085 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 03240084 Content conversion failed:
      reader: ContentAccessor[ contentUrl=store://2014/4/24/8/47/b7f68c5f-2a54-4790-b53a-5dc98df65865.bin, mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation, size=530159, encoding=UTF-8, locale=pt_BR]
      writer: ContentAccessor[ contentUrl=store://2014/4/24/17/11/4eb13140-69df-4d71-82f9-68e9aada2144.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=pt_BR]
      options:

      {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/a8e468b9-f9d3-49db-8fcf-22bb7d5ff290, contentWriterNodeRef=workspace://SpacesStore/bb84daed-ea4a-4991-953c-addbfafac2f0, sourceContentProperty=null, use=webpreview, includeEmbedded=false}

      limits:

      {timeoutMs=120000}
      at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:204)
      at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
      at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
      at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
      at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
      at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:128)
      ... 28 more
      Caused by: org.alfresco.service.cmr.repository.ContentIOException: 03240084 Content conversion failed:
      reader: ContentAccessor[ contentUrl=store://2014/4/24/8/47/b7f68c5f-2a54-4790-b53a-5dc98df65865.bin, mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation, size=530159, encoding=UTF-8, locale=pt_BR]
      writer: ContentAccessor[ contentUrl=store://2014/4/24/17/11/4eb13140-69df-4d71-82f9-68e9aada2144.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=pt_BR]
      options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/a8e468b9-f9d3-49db-8fcf-22bb7d5ff290, contentWriterNodeRef=workspace://SpacesStore/bb84daed-ea4a-4991-953c-addbfafac2f0, sourceContentProperty=null, use=webpreview, includeEmbedded=false}
      limits: {timeoutMs=120000}

      at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:256)
      at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:624)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:125)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:161)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      at com.sun.proxy.$Proxy48.transform(Unknown Source)
      at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:435)
      at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:426)
      at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
      at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:425)
      at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:403)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      ... 3 more
      Caused by: org.alfresco.service.cmr.repository.ContentIOException: 03240083 Content conversion failed:
      reader: ContentAccessor[ contentUrl=store://2014/4/24/8/47/b7f68c5f-2a54-4790-b53a-5dc98df65865.bin, mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation, size=530159, encoding=UTF-8, locale=pt_BR]
      writer: ContentAccessor[ contentUrl=store:///opt/alfresco-4.2.e/tomcat/temp/Alfresco/ComplextTransformer_intermediate_pptx_4737229686684993037.pdf, mimetype=application/pdf, size=0, encoding=UTF-8, locale=pt_BR]
      options:

      {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/a8e468b9-f9d3-49db-8fcf-22bb7d5ff290, contentWriterNodeRef=workspace://SpacesStore/bb84daed-ea4a-4991-953c-addbfafac2f0, sourceContentProperty=null, use=webpreview, includeEmbedded=false}

      limits:

      {timeoutMs=120000}
      at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:256)
      at org.alfresco.repo.content.transform.ComplexContentTransformer.transformInternal(ComplexContentTransformer.java:484)
      at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:211)
      ... 30 more
      Caused by: org.alfresco.service.cmr.repository.ContentIOException: 03240081 Content conversion failed:
      reader: ContentAccessor[ contentUrl=store://2014/4/24/8/47/b7f68c5f-2a54-4790-b53a-5dc98df65865.bin, mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation, size=530159, encoding=UTF-8, locale=pt_BR]
      writer: ContentAccessor[ contentUrl=store:///opt/alfresco-4.2.e/tomcat/temp/Alfresco/FailoverTransformer_intermediate_ProxyContentTransformer_3762457231099550467.pdf, mimetype=application/pdf, size=0, encoding=UTF-8, locale=pt_BR]
      options: {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/a8e468b9-f9d3-49db-8fcf-22bb7d5ff290, contentWriterNodeRef=workspace://SpacesStore/bb84daed-ea4a-4991-953c-addbfafac2f0, sourceContentProperty=null, use=webpreview, includeEmbedded=false}
      limits: {timeoutMs=120000}

      at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:256)
      at org.alfresco.repo.content.transform.FailoverContentTransformer.transformInternal(FailoverContentTransformer.java:201)
      at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:211)
      ... 32 more
      Caused by: org.alfresco.service.cmr.repository.ContentIOException: 03240080 OpenOffice server conversion failed:
      reader: ContentAccessor[ contentUrl=store://2014/4/24/8/47/b7f68c5f-2a54-4790-b53a-5dc98df65865.bin, mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation, size=530159, encoding=UTF-8, locale=pt_BR]
      writer: ContentAccessor[ contentUrl=store:///opt/alfresco-4.2.e/tomcat/temp/Alfresco/FailoverTransformer_intermediate_ProxyContentTransformer_3762457231099550467.pdf, mimetype=application/pdf, size=0, encoding=UTF-8, locale=pt_BR]
      from file: /opt/alfresco-4.2.e/tomcat/temp/Alfresco/OpenOfficeContentTransformer-source-7793972530756809002.pptx
      to file: /opt/alfresco-4.2.e/tomcat/temp/Alfresco/OpenOfficeContentTransformer-target-5913817477493243337.pdf
      at org.alfresco.repo.content.transform.OOoContentTransformerHelper.transform(OOoContentTransformerHelper.java:372)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:72)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      at com.sun.proxy.$Proxy14.transform(Unknown Source)
      at org.alfresco.repo.content.transform.ProxyContentTransformer.transformInternal(ProxyContentTransformer.java:98)
      at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:211)
      ... 34 more
      Caused by: net.sf.jooreports.openoffice.connection.OpenOfficeException: conversion failed; com.sun.star.lang.DisposedException: java.io.IOException: com.sun.star.io.IOException: EOF reached -

      socket,host=localhost,port=8100,tcpNoDelay=1,localHost=localhost,localPort=52760,peerHost=localhost,peerPort=8100
      at net.sf.jooreports.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:117)
      at net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:88)
      at org.alfresco.repo.content.transform.OpenOfficeContentTransformerWorker.convert(OpenOfficeContentTransformerWorker.java:118)
      at org.alfresco.repo.content.transform.OOoContentTransformerHelper.transform(OOoContentTransformerHelper.java:368)
      ... 44 more

      Trying to convert other "pptx file" from command line it works:

      1. /opt/alfresco-4.2.e/libreoffice/program/soffice.bin --convert-to pdf otherfile.pptx
        convert otherfile.pptx -> otherfile.pdf using impress_pdf_Export

      So. If this is a problem with a specific file, what can I do to the Libreoffice don't to crash and stay converting other files without I have to start it again?

        Attachments

          Activity

          Hide
          slanglois Samuel Langlois added a comment -

          Could you please attach the file that cannot be converted, so that we investigate further?
          Thanks

          Show
          slanglois Samuel Langlois added a comment - Could you please attach the file that cannot be converted, so that we investigate further? Thanks
          Hide
          rickiferbarros Rickifer Barros added a comment -

          Unfortunately not. But it was "resaved" in a MS Power Point 2010 and loaded again to Alfresco, so it worked. Anyway, I created a script to execute the libreoffice_ctl.sh every few seconds to check if LibreOffice is running and, IF NOT, RUN it. However, obviously, this is just a palliative solution.

          Show
          rickiferbarros Rickifer Barros added a comment - Unfortunately not. But it was "resaved" in a MS Power Point 2010 and loaded again to Alfresco, so it worked. Anyway, I created a script to execute the libreoffice_ctl.sh every few seconds to check if LibreOffice is running and, IF NOT, RUN it. However, obviously, this is just a palliative solution.
          Hide
          resplin Richard Esplin added a comment -

          This issue was reported against an old version of Alfresco Community Edition.

          Alfresco Community Edition 201605 GA contains Alfresco Platform 5.1.g and Alfresco Share 5.1.f. This release includes many improvements that address old problems. We are closing old issues so that we can better prioritize our efforts.

          If you verify that the issue still exists in the latest release of Alfresco Community Edition, please reopen the issue. If you have any trouble reopening the issue, then leave a comment or email us at community@alfresco.com so that we can assist.

          Thank you for collaborating with us on improving Alfresco.

          Show
          resplin Richard Esplin added a comment - This issue was reported against an old version of Alfresco Community Edition. Alfresco Community Edition 201605 GA contains Alfresco Platform 5.1.g and Alfresco Share 5.1.f. This release includes many improvements that address old problems. We are closing old issues so that we can better prioritize our efforts. If you verify that the issue still exists in the latest release of Alfresco Community Edition, please reopen the issue. If you have any trouble reopening the issue, then leave a comment or email us at community@alfresco.com so that we can assist. Thank you for collaborating with us on improving Alfresco.

            People

            • Assignee:
              closedissues Closed Issues
              Reporter:
              rickiferbarros Rickifer Barros
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: