IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#56159 - 07/27/18 02:38 PM LOOP TOO LONG and OTHER KNOWN BUGS...
Wolfgang Offline
OL Toddler

Registered: 02/10/14
Posts: 34
Loc: Dallas, TX
I recently found out that PPress has an issue sometimes with using &currnt.lpp as an upper limit in a for loop...so I've replaced the loop with Repeat() Until(condition). Fine.

I've reduced the document to bare essentials and gotten it to run, but I hit the "Loop too long" error when my datapage exceeds a certain number of rows.

Also, due to data requirements, I have the Data page set for 50,000 rows and the line width set to 2048 bytes.

Am I hitting a wall here? If so, I have to redesign the doc...

ALSO, since PlanetPress is essentially "frozen" is there a published "known" bugs issue list that I can get my hands on?

Top
#56160 - 07/27/18 02:59 PM Re: LOOP TOO LONG and OTHER KNOWN BUGS... [Re: Wolfgang]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
Hello,

The "Loop too long" is a security feature in the Design tool to prevent infinite looping while designing. It is only at Design time so you could add a condition in your Repeat/Until() so it get out of the loop after a certain condition AND that you are in Design mode: &printermode = 0. To get out of a loop, use the Exit() procedure.

This way your loop wouldn't go to far while designing and you wouldn't get the error. Also that would do anything when you are actually running the job live.

As for a list of known issues, you can find it in the release notes.
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#56161 - 07/27/18 04:29 PM Re: LOOP TOO LONG and OTHER KNOWN BUGS... [Re: Wolfgang]
Wolfgang Offline
OL Toddler

Registered: 02/10/14
Posts: 34
Loc: Dallas, TX
I've already done all this...my issue is that even with all this in place and working fine for data pages with less than a thousand rows of data, it crashes as soon as I hit a data page with more than a thousand lines. On top of this, I now, on occasion get bizarre error msgs like "no font in object..."

The document is setup in Line Printer Emulation with max lines set at 50,000 line per data page. Maximum data line length is set to 2048.

Could this be a memory issue? Is the data buffer larger than can be handled by PPRess?

What's the magic number (limit) that triggers "Loop too long".

Top
#56162 - 07/27/18 04:51 PM Re: LOOP TOO LONG and OTHER KNOWN BUGS... [Re: Wolfgang]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
The "Loop too long" is triggered after a couple of millions operations...keyword here is operation.

Just doing a simple calculations as 1+1 is an operation. Now imagine that, time how many operation there is in an object, times the number of object, times a loop, times...etc...

As for your other error, we would need to see the Template and reproduce the issue. I suggest you open a technical support call at 1-866-348-5863 or through our website.


Edited by Jean-Cédric (11/02/18 08:35 AM)
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#56486 - 11/02/18 07:48 AM Re: LOOP TOO LONG and OTHER KNOWN BUGS... [Re: Jean-Cédric]
Wolfgang Offline
OL Toddler

Registered: 02/10/14
Posts: 34
Loc: Dallas, TX
Once a document has thrown a "Loop to Long" error, how can I SAVE the file after adding the "If(&Printermode = 0) code to help prevent the next "Loop to long" error.

Top