[jifty-devel] Jifty/Win, tons of WARN-messages in log
ishigaki at tcool.org
Tue Jul 25 08:16:56 EDT 2006
Richard Lippmann wrote on Tue, 25 Jul 2006 09:01:05 +0200:
>Jifty/Win, when starting the server with "jifty server" I get tons of
>warnings like this:
>WARN - Attempt to free unreferenced scalar: SV 0x3901f88, Perl
>interpreter: 0x2243ac at C:/Perl/site/lib/YAML/Dumper.pm line 182.
>WARN - Attempt to free unreferenced scalar: SV 0x399e6ec, Perl
>interpreter: 0x2243ac at C:/Perl/site/lib/YAML/Dumper.pm line 342.
Install YAML::Syck and try this patch to silent warnings on Win32,
though something might go wrong as commented below.
--- YAML.pm (revision 1651)
+++ YAML.pm (working copy)
@@ -25,8 +25,8 @@
# XXX Force non-Syck Dump until it can handle dumping circular
# references, which show up in halos while dumping component
- require YAML;
- *Dump = *YAML::Dump;
+ # require YAML;
+ *Dump = *YAML::Syck::Dump;
*LoadFile = *YAML::Syck::LoadFile;
*DumpFile = *YAML::Syck::DumpFile;
>There is another strange thing: the pony does not appear although there
>is a file C:\perl\site\lib\auto\Jifty\web\static\images\pony.jpg
>Instead I get:
>You said you wanted a pony. (Source http://hdl.loc.gov/loc.pnp/cph.3c13461)
>Maybe there is some path to inherit from somewhere and it's not
>recognized in Windows.
Haven't you "jifty app"ed in a path with white spaces (or special
characters)? I'm using (rather testing) Jifty on Win32 too but I
can see the pony without problem.
>The application is veeeeery slow. Any hints?
Using YAML::Syck (with above patch) helps a bit.
And use *nix if you can. Your stress will be lessened more ;)
More information about the jifty-devel