Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-15721

Some Powerpoint files with images will not convert properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.10.2, 5.4.4, 5.5
    • Fix Version/s: 5.7
    • Component/s: None

      Description

      Seems to be an issue with certain images in Powerpoint files, Confluence will display the "<filename>.ppt is being converted. Please refresh after some time" message repeatedly and the file itself never converts.

      Stack trace issued during the conversion is as follows:

      java.lang.NullPointerException
      	at com.benryan.graphics.emf.GdiBrush.<init>(GdiBrush.java:89)
      	at com.benryan.graphics.emf.DeviceContext.copy(DeviceContext.java:263)
      	at com.benryan.graphics.emf.DeviceContext.<init>(DeviceContext.java:230)
      	at com.benryan.graphics.emf.DeviceContext.saveDC(DeviceContext.java:276)
      	at com.benryan.graphics.emf.SaveDC.render(SaveDC.java:40)
      	at com.benryan.graphics.emf.AbstractTranscoder.iterateRecords(AbstractTranscoder.java:248)
      	at com.benryan.graphics.emf.AbstractTranscoder.doRender(AbstractTranscoder.java:207)
      	at com.benryan.graphics.emf.AbstractTranscoder.transcode(AbstractTranscoder.java:137)
      	at com.benryan.escher.EscherRenderer.renderImage(EscherRenderer.java:168)
      	at com.benryan.escher.EscherRenderer.walkShapes(EscherRenderer.java:235)
      	at com.benryan.ppt.PptRenderer.render(PptRenderer.java:95)
      	at com.benryan.conversion.SlideConversionThread.convertFile(SlideConversionThread.java:64)
      	at com.benryan.conversion.SlideConversionThread.run(SlideConversionThread.java:137)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      	at java.lang.Thread.run(Thread.java:613)
      
      Workaround:

      Save the file as .ppt. However this may or may not apply to all PowerPoint files.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                33 Vote for this issue
                Watchers:
                29 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  4 years, 2 weeks ago