-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.3.3, 6.5.0, 6.4.2, 7.13.2
-
37
-
Severity 3 - Minor
-
5
-
STEPS TO REPLICATE
- Create a new Space in Confluence.
- Create a few page and insert multiple Table (table inside table) and some other macro in the table (such as Expand Macro) in every page as per storage format below:
- Save the page.
- Navigate to Space Tools > Content Tools > Export > PDF > Normal Export.
EXPECTED RESULT
The Space export to PDF will complete in time.
ACTUAL RESULT
- The Space export to PDF will stuck at 50% simplifytabletext.xml with the message Begin conversion of intermediate HTML to PDF:
- No Error in the logs.
- Setting com.atlassian.confluence.extra.flyingpdf to DEBUG shows the following stack trace in the logs during the Space export to PDF:
2018-03-08 21:33:03,026 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.RenderedXhtmlBuilder] renderToHtml Rendering to exported XHTML page id=1474562 (Export complex page) 2018-03-08 21:33:03,227 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.AutoFontScaleUtils] scaleTableBaseOnNumberOfColumnsAndCharacter column count processing time : 5 2018-03-08 21:33:03,822 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.AutoFontScaleUtils] scaleTableBaseOnNumberOfColumnsAndCharacter character count processing time : 595 2018-03-08 21:33:04,052 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.AutoFontScaleUtils] scaleTableBaseOnNumberOfColumnsAndCharacter noOfTRCharacters 108 2018-03-08 21:33:04,052 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.AutoFontScaleUtils] scaleTableBaseOnNumberOfColumnsAndCharacter numOfColumn 4 2018-03-08 21:33:04,052 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.AutoFontScaleUtils] scaleTableBaseOnNumberOfColumnsAndCharacter colScaleFontSize 0.9 2018-03-08 21:33:04,052 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.AutoFontScaleUtils] scaleTableBaseOnNumberOfColumnsAndCharacter chaScaleFontSize 1.0 2018-03-08 21:33:04,053 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.AutoFontScaleUtils] scaleTableBaseOnNumberOfColumnsAndCharacter final 0.9 2018-03-08 21:33:04,053 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.AutoFontScaleUtils] scaleTableBaseOnNumberOfColumnsAndCharacter column count processing time : 0 2018-03-08 21:33:04,054 DEBUG [Long running task: PDF Space Export] [extra.flyingpdf.html.AutoFontScaleUtils] calculateLargestCellByColumns 4 Link
Threaddump analysis found the RUNNABLE thread for rendering table cell:
"Long running task: PDF Space Export" #275 prio=5 os_prio=31 tid=0x00007fbc4153d000 nid=0xb70f runnable [0x0000000206134000] java.lang.Thread.State: RUNNABLE at org.xhtmlrenderer.layout.InlineBoxing.positionVertically(InlineBoxing.java:479) at org.xhtmlrenderer.layout.InlineBoxing.saveLine(InlineBoxing.java:745) at org.xhtmlrenderer.layout.InlineBoxing.layoutContent(InlineBoxing.java:228) at org.xhtmlrenderer.render.BlockBox.layoutInlineChildren(BlockBox.java:955) at org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:936) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:819) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:749) at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:293) at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:271) at org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:89) at org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:939) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:819) at org.xhtmlrenderer.newtable.TableRowBox.layoutCell(TableRowBox.java:453) at org.xhtmlrenderer.newtable.TableRowBox.layoutChildren(TableRowBox.java:207) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:819) at org.xhtmlrenderer.newtable.TableRowBox.layout(TableRowBox.java:89) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:749) at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:293) at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:271) at org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:89) at org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:939) at org.xhtmlrenderer.newtable.TableSectionBox.layoutChildren(TableSectionBox.java:136) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:819) at org.xhtmlrenderer.newtable.TableSectionBox.layout(TableSectionBox.java:274) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:749) at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:293) at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:271) at org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:109) at org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:939) at org.xhtmlrenderer.newtable.TableBox.layoutChildren(TableBox.java:312) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:819) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:749) at org.xhtmlrenderer.newtable.TableBox.layoutTable(TableBox.java:278) at org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:231)
WORKAROUND
Simplify the table by removing the first layer of the table in the page as per the simplify page storage format below:
- relates to
-
CONFSERVER-54338 Slow Performance when exporting a page as pdf
- Gathering Impact