Issues with Dancer-Plugin-NYTProf
Hi, early today we where discussing this extrange issue with Bigpresh on the IRC. After some fix this is now the situtation. Apache throw: Tue Jan 31 18:15:06 2012] [error] [client 192.168.2.82] Error while loading /home/mg/Mg/bin/app.pl: Devel/NYTProf.pm did not return a true value at /usr/local/share/perl/5.10.1/Dancer/Plugin/NYTProf.pm line 82.\nCompilation failed in require at /home/mg/Mg/lib/Mg.pm line 13.\nBEGIN failed--compilation aborted at /home/mg/Mg/lib/Mg.pm line 13.\nCompilation failed in require at /home/mg/Mg/bin/app.pl line 3.\nBEGIN failed--compilation aborted at /home/mg/Mg/bin/app.pl line 3.\n, referer: http://mg.www.dancer-server.local/es/ [Tue Jan 31 18:15:06 2012] [error] [client 192.168.2.82] Error while loading /home/mg/Mg/bin/app.pl: Devel/NYTProf.pm did not return a true value at /usr/local/share/perl/5.10.1/Dancer/Plugin/NYTProf.pm line 82.\nCompilation failed in require at /home/mg/Mg/lib/Mg.pm line 13.\nBEGIN failed--compilation aborted at /home/mg/Mg/lib/Mg.pm line 13.\nCompilation failed in require at /home/mg/Mg/bin/app.pl line 3.\nBEGIN failed--compilation aborted at /home/mg/Mg/bin/app.pl line 3.\n, referer: http://mg.www.dancer-server.local/es/ [Tue Jan 31 18:15:07 2012] [error] [client 192.168.2.82] Error while loading /home/mg/Mg/bin/app.pl: Attempt to reload Mg.pm aborted.\nCompilation failed in require at /home/mg/Mg/bin/app.pl line 3.\nBEGIN failed--compilation aborted at /home/mg/Mg/bin/app.pl line 3.\n, referer: http://mg.www.dancer-server.local/es/ Background information - Dancer 1.3091 - Dancer-Plugin-NYTProf: the very lastone from Bigpresh repo in github. - Devel::NYTProf (4.06) - apache2: Server version: Apache/2.2.16 (Debian) Server built: Mar 22 2011 20:56:34 (runnign as user www-data) - SO: Debian GNU/Linux 6.0 (Squeeze) /home/mg/Mg/environments/development.yml plugins: DBIC: ... NYTProf: profdir: '/tmp/profiledata' /tmp/profiledata has some files: (CHROOT SQUEEZE)root@mg-domu:/tmp# ls -l profiledata/ total 660 drwxr-xr-x 2 www-data www-data 4096 ene 31 18:17 html -rw-r--r-- 1 www-data www-data 338802 ene 31 18:17 nytprof.out..21573 -rw-r--r-- 1 www-data www-data 319765 ene 31 18:18 nytprof.out.es_s_.21574 Any help would be appreciated. Angel
I noticed a new release came out. If that involved this issue, I'd write a follow up on the list saying it was fixed.
On Wed, 1 Feb 2012 10:49:25 +0200 sawyer x <xsawyerx@gmail.com> wrote:
I noticed a new release came out.
If that involved this issue, I'd write a follow up on the list saying it was fixed.
It will have resolved the earlier problems Angel was having yesterday (Devel::NYTProf insisting on creating an nytprof.out file in the current directory when loaded, rather than when you start profiling) thanks to a bodgy workaround, but it won't resolve the later problem, the one Angel described to the list. I'm at a loss as to how/why Devel::NYTProf is failing to compile/return a true value so far; it works fine for me (not that that helps Angel, of course). With regards to the hackish workaround, I have raised a ticket on RT to see if Devel::NYTProf's behaviour could be changed so that creation of an output file is deferred until profiling is actually starting, as that seems far more sensible and expected to me, and would remove the requirement for that workaround. -- David Precious ("bigpresh") <davidp@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github
On Wed, 1 Feb 2012 09:58:54 +0000 David Precious <davidp@preshweb.co.uk> wrote:
With regards to the hackish workaround, I have raised a ticket on RT to see if Devel::NYTProf's behaviour could be changed so that creation of an output file is deferred until profiling is actually starting, as that seems far more sensible and expected to me, and would remove the requirement for that workaround.
This has been fixed in Devel::NYTProf in r2208, and I imagine should be in the next release; at that point, I can use file=/dev/null and it will avoid trying to create a file, so I won't need the hackish workaround I implemented giving it a temporary file any more :) -- David Precious ("bigpresh") <davidp@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github
Good job! :) On Fri, Feb 3, 2012 at 12:13 PM, David Precious <davidp@preshweb.co.uk>wrote:
On Wed, 1 Feb 2012 09:58:54 +0000 David Precious <davidp@preshweb.co.uk> wrote:
With regards to the hackish workaround, I have raised a ticket on RT to see if Devel::NYTProf's behaviour could be changed so that creation of an output file is deferred until profiling is actually starting, as that seems far more sensible and expected to me, and would remove the requirement for that workaround.
This has been fixed in Devel::NYTProf in r2208, and I imagine should be in the next release; at that point, I can use file=/dev/null and it will avoid trying to create a file, so I won't need the hackish workaround I implemented giving it a temporary file any more :)
-- David Precious ("bigpresh") <davidp@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
participants (3)
-
Angel Arancibia -
David Precious -
sawyer x