[PDF export] hunderd percent cpu and 2gb filesize

Author Message

Richard Stronkman

Wednesday 16 November 2005 8:16:33 am

I've studied the PDF export tutorial and created an override for my custum class.

One of the problems I experienced was printing text in a table. WHITESPACES vanished in my pdf-file.

A solution given in on of the forum posts was, use

{"Text with spaces"|wash(pdf)}

While trying this, the process "httpd" used 100% of the CPU. The file size was approx. 2 GB!

Can someone explain this behaviour?
It seems an infinite loop is encountered.

Did someone experienced the same problem?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:21:34
Script start
Timing: Jan 19 2025 01:21:34
Module start 'layout'
Timing: Jan 19 2025 01:21:34
Module start 'content'
Timing: Jan 19 2025 01:21:35
Module end 'content'
Timing: Jan 19 2025 01:21:35
Script end

Main resources:

Total runtime0.9831 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.2891152.6406
Module start 'layout' 0.00630.0045 741.929739.4766
Module start 'content' 0.01080.9711 781.4063400.2500
Module end 'content' 0.98200.0011 1,181.65638.1250
Script end 0.9830  1,189.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3412160.0002
Check MTime0.00130.1305160.0001
Mysql Total
Database connection0.00100.104610.0010
Mysqli_queries0.847686.2184460.0184
Looping result0.00040.0429440.0000
Template Total0.824683.920.4123
Template load0.00210.212520.0010
Template processing0.822583.662220.4112
Template load and register function0.00020.022110.0002
states
state_id_array0.00350.353610.0035
state_identifier_array0.00190.194020.0010
Override
Cache load0.00170.1747110.0002
Sytem overhead
Fetch class attribute can translate value0.00090.088410.0009
Fetch class attribute name0.00080.086110.0008
XML
Image XML parsing0.00010.012410.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00060.0591100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs