[Catalyst] Hangs in RenderView in "end"
Gunnar Strand
gunnarstrand at yahoo.com
Wed Jul 8 15:19:52 GMT 2009
Gordon Yeong skrev:
> hi there
>
> I am facing almost the same issue in that even clicking the "stop"
> button on firefox would see no difference in the debugging terminal or
> have a response from the webpage.
> When i have safari accesssing the same page, i can submit without a
> problem and the server doesn't hang.
>
> Any thoughts?
>
> thanks
>
> gordon
I turned on debugging in the local TT.pm in myApp as you describe below.
I accessed the page on the application's server with Firefox only.
Didn't try any other browser.
In my case, the request was aborted and the server returned to normal
after I clicked "Stop" in Firefox. So it only hung until then. I guess
you can try to press Ctrl-D in the terminal window to get it to continue
in case the server is waiting for input, but I never tried that (didn't
think of it). At least you would know if that is the problem.
I also tried running the server under a debugger (perl -d:ptkdb
script/myapp_server.pl), but wasn't really getting me anywhere since I
know too little about Catalyst/TT internals.
KR,
Gunnar
>
> 2009/7/8 Gordon Yeong <anexiole at gmail.com <mailto:anexiole at gmail.com>>
>
>
> hi there
>
> I think i am facing the same fault.
> hmmm... When you mention TT.pm, do you mean the local TT.pm found in
> myApp/View/TT.pm or is it the TT.pm belonging to the Template
> Toolkit package?
>
> thanks
>
> Regards,
> Gordon Yeong
>
>
> 2009/7/3 Gunnar Strand <gunnarstrand at yahoo.com
> <mailto:gunnarstrand at yahoo.com>>
>
> I found the problem. Turning on debugging for TT (DEBUG =>
> DEBUG_ALL) in TT.pm showed that it hangs on the [% USE CGI %]
> directive. Apparently
>
> [% USE CGI('-no_debug') %]
>
> is needed. Got it from here:
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=137589
>
> Seems CGI thinks that it is begin run from command line and
> prompts for data.
>
> KR,
> Gunnar
> ------------------------------------------------------------------------
> *From:* Gunnar Strand <gunnarstrand at yahoo.com
> <mailto:gunnarstrand at yahoo.com>>
> *To:* The elegant MVC web framework
> <catalyst at lists.scsys.co.uk <mailto:catalyst at lists.scsys.co.uk>>
> *Sent:* Monday, June 29, 2009 6:39:41 AM
> *Subject:* Re: [Catalyst] Hangs in RenderView in "end"
>
> >> Is there any way of running the server in a debugger or to
> turn tracing on? Can I send a signal to it to get it to >dump
> a stack trace somehow? Any attempt I've made so far just
> results in nothing or segmentation faults.
> >
> >[...]
> >
> >I don't understand why you're seeing segfaults. What version
> of Catalyst are you using, what is your perl -V, and do you
> have the latest version of Variable::Magic installed? Also, if
> you could attach gdb and get the catalyst process to segfault,
> then a backtrace from c land could be useful.
>
> The debugger works now(!). I've always had problems with it
> but hadn't tried it for a while. Maybe a library got updated.
>
> Thanks for the tips!
>
> KR,
> Gunnar
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> <mailto:Catalyst at lists.scsys.co.uk>
> Listinfo:
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> <mailto:Catalyst at lists.scsys.co.uk>
> Listinfo:
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
More information about the Catalyst
mailing list