Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-25421

Office Connector throws an ArrayIndexOutOfBounds exception trying to display a powerpoint.

      I have a powerpoint presentation which is causing the below error.
      We have saved is a ppt, and as an odt and reconverted back to ppt and the same behaviour occurs.
      I have removed all content and saved a blank slide with the template and the slide displays.
      I reinserted the text and removed the bullet points on a single slide version of file, and the file displayed.
      I went back to a 2 slide version of the file with bullet points, and the error occurred.
      I removed the bullet points, and the error still occurred.
      I ensured the layouts were not overlapping and were well within the frame, and the error still occurred.

      2012-05-07 18:12:15,998 WARN [http-10420-1] [com.benryan.conversion.PPTSlideServlet] doGet Conversion task timed out for attachment : 2012 WFO Introduction to Infrastructure.ppt with page number 0, waited : 300, now executing in background.
       -- url: /plugins/servlet/pptslide | userName: charlie
      2012-05-07 18:12:17,162 ERROR [DefaultSlideCacheManager:thread-3] [com.benryan.conversion.AbstractSlideConversionTask] call problem while converting 2012 wfo introduction to infrastructure.ppt
       -- url: /plugins/servlet/pptslide | userName: charlie
      java.lang.ArrayIndexOutOfBoundsException: -1
      	at java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:346)
      	at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:422)
      	at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:395)
      	at com.benryan.ppt.ParagraphLayout.layoutParagraph(ParagraphLayout.java:236)
      	at com.benryan.escher.EscherRenderer.drawText(EscherRenderer.java:361)
      	at com.benryan.escher.EscherRenderer.renderTextBox(EscherRenderer.java:636)
      	at com.benryan.escher.EscherRenderer.walkShapes(EscherRenderer.java:240)
      	at com.benryan.ppt.PptRenderer.render(PptRenderer.java:128)
      	at com.benryan.conversion.PPtDocumentConversionTask.convertFile(PPtDocumentConversionTask.java:54)
      	at com.benryan.conversion.PPtDocumentConversionTask.convertFile(PPtDocumentConversionTask.java:15)
      	at com.benryan.conversion.AbstractSlideConversionTask.call(AbstractSlideConversionTask.java:44)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      

          Form Name

            [CONFSERVER-25421] Office Connector throws an ArrayIndexOutOfBounds exception trying to display a powerpoint.

            Reported by Atlassian Troubleshooting and Support Tools in 8.7.2, apparetly caused by trying to preview a PPTX without downloading (I mean the little fancy video player-style gadget, I'm not sure about the standard preview with black background). There was no preview (There was a problem converting this attachment.), then this bug came up in the periodic scan.

            Piotr Janik added a comment - Reported by Atlassian Troubleshooting and Support Tools in 8.7.2, apparetly caused by trying to preview a PPTX without downloading (I mean the little fancy video player-style gadget, I'm not sure about the standard preview with black background). There was no preview ( There was a problem converting this attachment. ), then this bug came up in the periodic scan.

            Our fix was the following:

            • Update to Java 7 u55+
            • Increase RAM to server, configure JVM for Xms1g Xmx3g, 256m / 512m for perm gen
            • Removal of suspected docs / ppts / vz diagrams that caused this problem (99% of them were all Google Docs conversions or using the plugin to convert from Google Docs) - downloading, opening in M$ / Libre office applications and re-saving again as a M$ format* worked as well

            Doing these three things helped resolve this problem - as a result, we haven't had an issue with this in about 5 months. It's a shame that for what companies pay for this solution, there's nothing more than spitballing from support to try and figure this out; the only thing that's more shameful is that they don't admit that's what they do.

            Adrian R. SanMiguel added a comment - Our fix was the following: Update to Java 7 u55+ Increase RAM to server, configure JVM for Xms1g Xmx3g, 256m / 512m for perm gen Removal of suspected docs / ppts / vz diagrams that caused this problem (99% of them were all Google Docs conversions or using the plugin to convert from Google Docs) - downloading, opening in M$ / Libre office applications and re-saving again as a M$ format* worked as well Doing these three things helped resolve this problem - as a result, we haven't had an issue with this in about 5 months. It's a shame that for what companies pay for this solution, there's nothing more than spitballing from support to try and figure this out; the only thing that's more shameful is that they don't admit that's what they do.

            I see that this issue is resolved, but I do not see a resolution or any actions I should take?!?

            Ben Wardwell (Inactive) added a comment - I see that this issue is resolved, but I do not see a resolution or any actions I should take?!?

            So what's the story with updating to java > 7u55? At this point I don't really care whether or not certain documents generate errors--I would just like Confluence to not become unavailable to everyone because someone doesn't grok the internal technical details of their pdf docs

            Stephen D. Spencer added a comment - So what's the story with updating to java > 7u55? At this point I don't really care whether or not certain documents generate errors--I would just like Confluence to not become unavailable to everyone because someone doesn't grok the internal technical details of their pdf docs

            The same problem has existed for a very long time and all versions of Confluence are impacted. Eventually this one single problem will cause the application to become unstable.

            Stephen Gramm added a comment - The same problem has existed for a very long time and all versions of Confluence are impacted. Eventually this one single problem will cause the application to become unstable.

            Hi All

            I'm raising the priority on this to a critical as in extreme cases the CPU spike can cause confluence to crash.

            Regards
            Steve Haffenden
            Confluence Bugmaster
            Atlassian

            Steve Haffenden (Inactive) added a comment - Hi All I'm raising the priority on this to a critical as in extreme cases the CPU spike can cause confluence to crash. Regards Steve Haffenden Confluence Bugmaster Atlassian

            We're seeing this in Confluence 5.5 using Office Connector Macro 3.3.3, pretty much whenever anybody attempts to embed a Powerpoint in a page.

            Chris Collins added a comment - We're seeing this in Confluence 5.5 using Office Connector Macro 3.3.3, pretty much whenever anybody attempts to embed a Powerpoint in a page.

            I'm seeing this issue in 5.4.2. This causes the CPU to spike to a sustained 100% while Confluence is spewing exceptions to the log for several minutes.

            Oleg Gerovich added a comment - I'm seeing this issue in 5.4.2. This causes the CPU to spike to a sustained 100% while Confluence is spewing exceptions to the log for several minutes.

            This problem overlaps with CONF-30711 which was marked as solved but now has been demonstrated in 5.4.2. The renderer for problem documents consistently fails and can cause crashes in Confluence. This is the same renderer as noted by Chris Johnson above.

            Daniel Davis added a comment - This problem overlaps with CONF-30711 which was marked as solved but now has been demonstrated in 5.4.2. The renderer for problem documents consistently fails and can cause crashes in Confluence. This is the same renderer as noted by Chris Johnson above.

            Chris Johnson added a comment - - edited

            I'm seeing this in 5.4.2, 2,100 errors in the last 48 hours
            – url: /confluence/plugins/servlet/pptslide | userName: effgfg
            2014-03-12 11:16:19,452 WARN [http-8080-159] [com.benryan.conversion.PPTSlideServlet] doGet Conversion task timed out for attachment : InfoSource Universe Overview.ppt with page number 0, waited : 300, now executing in background.

            Chris Johnson added a comment - - edited I'm seeing this in 5.4.2, 2,100 errors in the last 48 hours – url: /confluence/plugins/servlet/pptslide | userName: effgfg 2014-03-12 11:16:19,452 WARN [http-8080-159] [com.benryan.conversion.PPTSlideServlet] doGet Conversion task timed out for attachment : InfoSource Universe Overview.ppt with page number 0, waited : 300, now executing in background.

              kmacleod Kenny MacLeod
              dunterwurzacher Denise Unterwurzacher [Atlassian] (Inactive)
              Affected customers:
              44 This affects my team
              Watchers:
              59 Start watching this issue

                Created:
                Updated:
                Resolved: