codegen 0.4.14 memory error

thread: 4 messages  |  last: a year ago  |  started: saturday, may 22, 2010, 10:39 am pdt


#1  |  elihoreph United States of America
Saturday, May 22, 2010, 10:39 AM PDT

Hi,

I successfully ran codegen on my 4 tables a couple weeks ago.  I have just returned to working on this project but now receive the follwoing error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 709400833 bytes) in C:\xampp\htdocs\requiem\includes\qcodo\_core\codegen\QCodeGenBase.class.php(636) : eval()'d code on line 636

I increased the memory size to 128M just to see if it would work.  There are only 4 tables (and not very many columns) with a few relationships.  I think it's clear that something is going seriously wrong with an infinite loop or something along those lines.  Continuing to debug but as of yet not finding anything too helpful.

Any help would be appreciated.

Thanks

#2  |  Zbyszek Czarnecki (Warsaw, PL) Poland
Saturday, May 22, 2010, 11:04 AM PDT

If you could post your table structure, that would be helpful.

#3  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Wednesday, May 26, 2010, 11:11 PM PDT

Also, is db profiling turned on?  It shouldn't matter with the latest releases, but I thought to ask anyway.

#4  |  elihoreph United States of America
Friday, June 4, 2010, 9:12 PM PDT

Sorry for the late response (any way to get a notification when people respond to the thread?).   No db profiling is not turned on.  As for the table structure, it is 4 tables:

user, character, race, subrace

related with the following mapping in codegen.xml:

subrace.race_id => race.race_id
character.user_id => user.id
character.race_id => race.race_id
character.subrace_id => subrace.subrace_id



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.