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

Macros fail to display on Confluence pages with 'Error rendering macro' or broken image errors


    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 6.2.4, 6.3.3, 6.4.0, 6.4.3, 6.6.1, 6.8.1
    • None


      Several macros fail to display on Confluence pages due to missing fonts.


      • Red Hat Enterprise Linux (RHEL) 7.4

      Steps to Reproduce

      1. Create a page with a 'view-file' macro
      2. Attempt to view the page

      Expected Results

      The page is displayed and all macros render

      Actual Results

      The page is displayed but the view-file macro fails to render.
      The below exception is thrown in the atlassian-confluence.log file:

      2017-12-29 10:02:11,465 ERROR [localhost-startStop-1] [atlassian.confluence.security.DefaultCaptchaManager] afterPropertiesSet Could not initialise CAPTCHA service. The most likely reason for thisis that Java's graphics subsystem is not properly configured. Try startingConfluence's JVM with the -Djava.awt.headless=true option. 0
      java.lang.ArrayIndexOutOfBoundsException: 0
      	at sun.font.CompositeFont.getSlotFont(CompositeFont.java:351)
      	at sun.font.CompositeGlyphMapper.initMapper(CompositeGlyphMapper.java:81)
      	at sun.font.CompositeGlyphMapper.<init>(CompositeGlyphMapper.java:62)
      	at sun.font.CompositeFont.getMapper(CompositeFont.java:409)
      	at sun.font.CompositeFont.canDisplay(CompositeFont.java:435)
      	at java.awt.Font.canDisplay(Font.java:1980)


      The default font was changed from Utopia to Styx in RHEL 7.4, this is not handled well by the JVM and breaks functionality. For more information see Bug 1484079 – AWT java apps fail to start when stix-fonts is used as sans-serif font


      1. Stop Confluence
      2. Create /etc/fonts/local.conf
      3. Paste the following:
        <?xml version='1.0'?>
        <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
      4. Save the file
      5. Start Confluence

            Unassigned Unassigned
            sbrannen@atlassian.com Branno
            4 Vote for this issue
            9 Start watching this issue