[ https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896794#comment-13896794 ]
MOHD edited comment on FOP-2341 at 2/10/14 5:52 PM: ---------------------------------------------------- Looks like issue with font-size. Due to that code are going in infinite loop. Find below code where infinite loop.occur. File Name: FontSizePropertyMaker.java while (scale < 1 && nextStepFontSize > baseFontSize || scale > 1 && nextStepFontSize < baseFontSize) { // baseFontSize is still bigger (if we grow) or smaller (if we shrink) // than the last caculated step lastStepFontSize = nextStepFontSize; nextStepFontSize = (int)Math.round(lastStepFontSize * scale); } Test scenario: <fo:block font-style="normal" font-size="10mmpt"> <fo:block font-size="larger" font-style="normal"> Text </fo:block> </fo:block> was (Author: mohd.mohsincse): Looks like issue with font-size. Due to that code are going in infinite loop. Find below code where infinite loop.occur. File Name: FontSizePropertyMaker.java while (scale < 1 && nextStepFontSize > baseFontSize || scale > 1 && nextStepFontSize < baseFontSize) { // baseFontSize is still bigger (if we grow) or smaller (if we shrink) // than the last caculated step lastStepFontSize = nextStepFontSize; nextStepFontSize = (int)Math.round(lastStepFontSize * scale); } Test scenario: <fo:block font-style="normal" font-size="10mmpt"> <fo:block font-size="larger" font-style="normal"> Text </fo:block> </fo:block> > FOP is hang and not able to generate RTF file > ---------------------------------------------- > > Key: FOP-2341 > URL: https://issues.apache.org/jira/browse/FOP-2341 > Project: Fop > Issue Type: Bug > Components: rtf > Affects Versions: 0.95 > Reporter: MOHD > Priority: Critical > Labels: newbie > Original Estimate: 1m > Remaining Estimate: 1m > > My local FOP engine is hang when below scenario was occur. > <fo:block font-style="normal" font-size="10mmpt" role="html:div"> > <fo:inline baseline-shift="super" font-size="smaller" > role="html:sup">th</fo:inline>of each month. > </fo:block> > Please give some suggestion if any one has solution for this issue. -- This message was sent by Atlassian JIRA (v6.1.5#6160)