speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
302 stars 36 forks source link

Endless loop #32

Closed zopyx closed 10 years ago

zopyx commented 10 years ago
Using the textframe example. I adjusted the SetzeRaser.breite from 1cm to 10cm (for evil reasons): ``` ```

Running sp results in an infinite loop showing

Page of type "page" created (3898) Number of rows: 24, number of columns = 2

Shipout page 3898 Page of type "page" created (3899) Number of rows: 24, number of columns = 2 Shipout page 3899 Page of type "page" created (3900) Number of rows: 24, number of columns = 2 Shipout page 3900

on the console - sp never stops.

pgundlach commented 10 years ago
<?xml version="1.0"?>
<Layout xmlns:sd="urn:speedata:2009/publisher/functions/de" xmlns="urn:speedata.de:2009/publisher/de">

  <Seitentyp name="page" bedingung="true()">
    <Rand links="1cm" rechts="1cm" oben="1cm" unten="1cm"/>
    <Platzierungsbereich name="text">
      <Platzierungsrahmen breite="4" höhe="17" zeile="1" spalte="1"/>
      <Platzierungsrahmen breite="4" höhe="10" zeile="1" spalte="6"/>
      <Platzierungsrahmen breite="4" höhe="24" zeile="1" spalte="11"/>
    </Platzierungsbereich>
  </Seitentyp>

  <Datensatz element="data">
    <Ausgabe bereich="text">
      <Text>
        <Absatz>
          <Wert auswahl="string(sd:loremipsum())"/>
        </Absatz>
      </Text>
    </Ausgabe>
  </Datensatz>

</Layout>

running with sp --dummy --grid gives

gridlorem (version 2.1.17-2ce04f6f)

which looks OK.

So there must be something in the data that interacts with the engine. Could you try to post the data as well?

pgundlach commented 10 years ago

Even adding <SetzeRaster breite="10cm" höhe="1cm"/> doesn't give an infinite loop (just an ugly PDF)