[jira] [Commented] (FOP-2341) FOP is hang and not able to generate RTF file

2014-02-10 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896794#comment-13896794
 ] 

MOHD commented on FOP-2341:
---

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: 

 
  
   Text  
 


>  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.
>  
>  role="html:sup">thof each month. 
>   
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (FOP-2341) FOP is hang and not able to generate RTF file

2014-02-10 Thread Pascal Sancho (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896406#comment-13896406
 ] 

Pascal Sancho commented on FOP-2341:


Hi,

Exceptions are there for development.
The only need for the user, is to be informed when such issue occurs, basically 
by reading logs, but you can make your own.

The logging part was enhanced in FOP v1.0: a new Event component was introduced 
(see [1]).

[1] http://xmlgraphics.apache.org/fop/1.1/events.html

>  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.
>  
>  role="html:sup">thof each month. 
>   
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (FOP-2341) FOP is hang and not able to generate RTF file

2014-02-10 Thread MOHD (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896373#comment-13896373
 ] 

MOHD commented on FOP-2341:
---

Thanks Pascal,

It should throw exception but why it is taking time to render the file.

Suppose you have big FO and it has same scenario at many places.
It is not able to generate file.


>  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.
>  
>  role="html:sup">thof each month. 
>   
> Please give some suggestion if any one has solution for this issue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)