NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Symptoms:

      • If image is embedded into file then it won't be displayed.
      • Scanned PDF document (which is effectively consists of single embedded image) won't be displayed at all.
      • There is next log statement in logs: WARN [DefaultSlideCacheManager:thread-1] [com.benryan.conversion.MemoryAwarePDFRenderer] drawImage Image of size 2464*3448 px dropped for memory protection

      Reason:

      • Image rendering takes considerable amount of memory and makes some OD instances crash.
      • Temporary workaround applied on confluence side is to have image rendering disabled if image is large.

      OD workaround:
      At the moment there is no workaround for OD (OnDemand) customers except scan documents into JPEG format instead of pdf. We're are plan to roll out on better memory calculation algorithm and better handling of concurrent macro rendering however there is no ETA.

      BTF workaround:
      For BTF (Behind The Firewall) admins could start confluence with -Dpdf.render.memory.guard.disabled=true property in order to disable memory guard. That will make all pdfs to be rendered.
      Note: Disabling this memory guard can cause OutOfMemoryErrors if a high resolution image is embedded in a PDF.

      EDIT 21/04/2015
      Current pdf macro is deprecated and replaced by `Files and Images` (available from toolbar). More details are onto https://confluence.atlassian.com/display/Cloud/Displaying+Files+and+Images

      Update 23/11/2015
      Condition was reversed. You won't need to put system property and by default images size within pdf is not limited for BTF installations.

        1. Custompostcard_final_2014.pdf
          1.46 MB
          Branno
        2. log.txt
          54 kB
          Michael Bernhardt
        3. PDF thumbnail error.png
          10 kB
          Mark Armitage
        4. screenshot.png
          30 kB
          Petro Semeniuk

          Form Name

            [CONFSERVER-33763] Large embedded images are not displayed within pdf macro

            Patrick added a comment -

            The Workaround is still valid for 7.8.3

            Patrick added a comment - The Workaround is still valid for 7.8.3
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2892452 ] New: CONFSERVER Bug Workflow v4 [ 2984261 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2792242 ] New: JAC Bug Workflow v3 [ 2892452 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2722099 ] New: JAC Bug Workflow v2 [ 2792242 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392322 ] New: JAC Bug Workflow [ 2722099 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2273651 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392322 ]

            Edwyn Stapel added a comment - - edited

            In the logging we are seeing this mention for confluence version 5.9.6 -

            for pptx and pdf.

             

            the preview of the files are ok i think, but memory seems to be filling up.

            Edwyn Stapel added a comment - - edited In the logging we are seeing this mention for confluence version 5.9.6 - for pptx and pdf.   the preview of the files are ok i think, but memory seems to be filling up.
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2227411 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2273651 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2182961 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2227411 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1951220 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2182961 ]

              psemeniuk Petro Semeniuk (Inactive)
              psemeniuk Petro Semeniuk (Inactive)
              Affected customers:
              26 This affects my team
              Watchers:
              36 Start watching this issue

                Created:
                Updated:
                Resolved: