[html-formfu] out of memory errors under perl debugger
Jim Spath
jspath at pangeamedia.com
Tue Sep 11 21:20:29 GMT 2007
Mario Minati wrote:
> On Tuesday 11 September 2007 20:54:09 Jim Spath wrote:
>> Jim Spath wrote:
>>> There seems to be a problem with running HTML::FormFu under the Perl
>>> debugger. The following code works perfectly fine, but when I run it
>>> under the debugger it dies with an "Out of memory!" error.
>>>
>>> use HTML::FormFu;
>>>
>>> my $formfu = HTML::FormFu->new({
>>> render_class_args => {
>>> INCLUDE_PATH => '../../templates/formfu',
>>> },
>>> elements => [
>>> {
>>> name => 'foo',
>>> type => 'Text',
>>> },
>>> ],
>>> });
>>>
>>> print $formfu;
>>>
>>> I am running HTML::FormFu version 0.01003 under Perl 5.8.7 on Ubuntu LTS
>>> 6.06.
>> I'm narrowed it down a bit and the "Out of memory!" error seems to occur
>> in HTML::FormFu::Render::base::xhtml() when we call $template->process().
>>
>> If it matters I am using Template 2.19.
>
> A few days ago I also was using the perl debugger with my Catalyst application
> that uses FormFu (svn) and had no problems, except that it told me that I am
> more than 100 subroutines deep in the code.
>
> When calling $template->process the control goes over to the Template::Toolkit
> library. Maybe upgrading or reinstalling that library helps.
>
> Greets,
> Mario
We are using Template Toolkit 2.19, which is the most recent version and
we have used it quite extensively up until this point without any problems.
I narrowed the problem down a bit more to the use of the ENCODING
option. HTML::FormFu sets it to UTF-8 by default. If I set it to
undef, I do not experience the problem.
I'll let you know if I find out anything more, since I am continuing to
debug it... thanks for the reply!
- Jim
More information about the HTML-FormFu
mailing list