This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » eztc script weird behavior and error
expandshrink

eztc script weird behavior and error

eztc script weird behavior and error

Wednesday 21 September 2005 1:08:54 pm - 6 replies

hi

while running eztc to compile tpls for corporate design, I get that standard siteaccess is compiled instead .. and then eztc crashes.

any idea of why this happens and how to fix it ? I don't think it should go out of memory.

./bin/php/eztc.php -s corporate

Compiling in design standard
...................................................................... 10.39%
...................................................................... 20.77%
.................................PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 40 bytes) in /usr/local/apache_prodigi/htdocs/beta.prodigiweb.it/3.7/lib/eztemplate/classes/eztemplateelementparser.php on line 598
Allowed memory size of 33554432 bytes exhausted (tried to allocate 34 bytes)

Thursday 22 September 2005 9:18:18 am

You have a memorylimit in your CLI(commandline) version of php. If you increase the memorylimit, or set it to -1 it should work. eztc sometimes needs lots of memory..

Thursday 22 September 2005 10:53:51 am

ok, increasing the memory limit should be no problem. but is it right fot eztc to start compiling the standard siteaccess?

thanks

Thursday 22 September 2005 11:02:14 am

See
http://ez.no/community/bugs/eating_ram_template_compiler

You need around 70MB to compile standard, base and admin design at the same time.

You can run it multiple time util it finish without errors.

Thursday 22 September 2005 11:54:17 am

Hi Daniele,

I upped memory to 128M. unfortunately it seems that eztc.php keeps compiling the same templates over subsequent iterations. i.e: keeps recompiling the standard templates even if I call it for corporate siteaccess. Now it runs out at half-way admin instead of standard, but ... issue not solved anyway. from docs, it would seem it should not recompile exixting templates. yet ...... it does.

Thursday 22 September 2005 12:20:30 pm

Ahh!

It seem that php 4.4.0 has some troubles with memory limit enabled. I got a lot of Segmetation fault running eztc

$ ./bin/php/eztc.php
Compiling in design standard
[..]
............................................ 100.00%
Compiling in design base
..........
Fatal error: Allowed memory size of 15728640 bytes exhausted at /example/php44/php4-4.4.0/main/output.c:435 (tried to allocate 40961 bytes) in /srv/web/www.example.it/web/lib/ezutils/classes/ezphpcreator.php on line 510
<div class="view-full">
<div class="class-fo[Thu Sep 22 12:16:48 2005] Script: './bin/php/eztc.php'
---------------------------------------
/example/php44/php4-4.4.0/main/output.c(315) : Block 0x0A1841D0 status:
Beginning: Overrun (magic=0x0A18A610, expected=0x7312F8DC)
End: Unknown
---------------------------------------
Allowed memory size of 15728640 bytes exhausted at /example/php44/php4-4.4.0/Zend/zend_execute_API.c:399 (tried to allocate 0 bytes)

If I have the time I will try to do more investigation.

Thursday 22 September 2005 12:31:02 pm

Hi,

I haven't run into segfault problems with my 4.4.0, but do let me know if you find something more, this could be something to watch for.

tia!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from