Bug 15992

Summary: Single graphic in column followed by span-all block causes infinite loop
Product: Fop - Now in Jira Reporter: myquestions
Component: generalAssignee: fop-dev
Status: CLOSED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 0.20.4   
Target Milestone: ---   
Hardware: PC   
OS: other   

Description myquestions 2003-01-11 10:28:37 UTC
The following conditions cause what appears to be an infinite loop in the fop
processor:
-  fo:flow defined with multiple columns
-  fo:block #1 contains just one single external graphic
-  fo:block #2 (follows fo:block #1) has attribute span="all"

I will include the .fo file.
I am running JDK1.3.0_02.
The command used:   fop columnbug.fo columnbug.pdf
Comment 1 myquestions 2003-01-11 10:35:18 UTC
I am having problems attaching a file.
Here is the file columnbug.fo:


<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" 
         xmlns:xlink="http://www.w3.org/1999/xlink" 
         xmlns:html="http://www.w3.org/TR/REC-html40">

   <fo:layout-master-set>
       <fo:simple-page-master margin-right="2cm" 
                              margin-left="2cm" 
                              margin-bottom="2cm" 
                              margin-top="1cm" 
                              page-width="25cm" 
                              page-height="29.7cm" 
                              master-name="simple">

           <fo:region-body column-gap="2cm" 
                           column-count="2" 
                           margin-top="3cm"/>
           <fo:region-before extent="3cm"/>
           <fo:region-after extent="1.5cm"/>
       </fo:simple-page-master>
   </fo:layout-master-set>

   <fo:page-sequence master-reference="simple">
      <fo:flow flow-name="xsl-region-body">
          <fo:block text-align="center">
               <fo:external-graphic width="7cm" 
                                    src="file:columnbug.jpg"/>
          </fo:block>
          <fo:block span="all">
          Text that spans all
          </fo:block>
      </fo:flow>
   </fo:page-sequence>



Please add your own image and call it columnbug.jpg.
Any jpeg image should do.
Comment 2 Pascal Sancho 2007-10-23 07:51:19 UTC
Works with latest Trunk (rev 584703), and probably in FOP 0.94, on JVM 1.5

This should either be closed, or tested with JVM 1.3 (depending on decision for
JVM support)
Comment 3 Glenn Adams 2012-04-01 13:54:42 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs