Skip Menu |

This queue is for tickets about the POE-Component-PreforkDispatch CPAN distribution.

Report information
The Basics
Id: 45116
Status: open
Priority: 0/
Queue: POE-Component-PreforkDispatch

People
Owner: Nobody in particular
Requestors: perl [...] evancarroll.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.101
Fixed in: (no value)



Subject: Get an error from Filter::Reference
Not sure what causes this STDERR:508 thumbnail: not a reference at /usr/local/share/perl/5.10.0/POE/Filter/Reference.pm line 210 STDERR:508 thumbnail: Perl exited with active threads: STDERR:508 thumbnail: 10 running and unjoined STDERR:508 thumbnail: 0 finished and unjoined STDERR:508 thumbnail: 0 running and detached STDERR:508 thumbnail: Generated read error 0: STDOUT:508 thumbnail: Generated read error 0: Fork 508 closed Delaying 2 sec on creating another fork Child exited with signal CHLD (12339) More complex dump Handling request thumbnail with fork 535 STDERR:535 thumbnail: not a reference at /usr/local/share/perl/5.10.0/POE/Filter/Reference.pm line 210 STDERR:535 thumbnail: at Carp::croak(unknown source) STDERR:535 thumbnail: at Storable::logcroak(../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/logcroak.al):76) STDERR:535 thumbnail: at Storable::_freeze(../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_freeze.al):334) STDERR:535 thumbnail: at Storable::nfreeze(../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/nfreeze.al):327) STDERR:535 thumbnail: at POE::Filter::Reference::put(/usr/local/share/perl/5.10.0/POE/Filter/Reference.pm:210) STDERR:535 thumbnail: at POE::Component::PreforkDispatch::fork_main(/usr/local/share/perl/5.10.0/POE/Component/PreforkDispatch.pm:538) STDERR:535 thumbnail: at POE::Component::PreforkDispatch::__ANON__(/usr/local/share/perl/5.10.0/POE/Component/PreforkDispatch.pm:481) STDERR:535 thumbnail: at POE::Wheel::Run::new(/usr/local/share/perl/5.10.0/POE/Wheel/Run.pm:426) STDERR:535 thumbnail: at POE::Component::PreforkDispatch::fork_new(/usr/local/share/perl/5.10.0/POE/Component/PreforkDispatch.pm:482) STDERR:535 thumbnail: at POE::Component::PreforkDispatch::process_queue(/usr/local/share/perl/5.10.0/POE/Component/PreforkDispatch.pm:456) STDERR:535 thumbnail: at POE::Session::_invoke_state(/usr/local/share/perl/5.10.0/POE/Session.pm:484) STDERR:535 thumbnail: at <eval>(/usr/local/share/perl/5.10.0/POE/Kernel.pm:1056) STDERR:535 thumbnail: at POE::Kernel::_dispatch_event(/usr/local/share/perl/5.10.0/POE/Kernel.pm:1042) STDERR:535 thumbnail: at POE::Kernel::_data_ev_dispatch_due(/usr/local/share/perl/5.10.0/POE/Resource/Events.pm:265) STDERR:535 thumbnail: at POE::Kernel::loop_do_timeslice(/usr/local/share/perl/5.10.0/POE/Loop/Select.pm:327) STDERR:535 thumbnail: at POE::Kernel::loop_run(/usr/local/share/perl/5.10.0/POE/Loop/Select.pm:335) STDERR:535 thumbnail: at POE::Kernel::run(/usr/local/share/perl/5.10.0/POE/Kernel.pm:1291) STDERR:535 thumbnail: at main::(poe_picture_downloader.pl:88) STDERR:535 thumbnail: Perl exited with active threads: STDERR:535 thumbnail: 10 running and unjoined STDERR:535 thumbnail: 0 finished and unjoined STDERR:535 thumbnail: 0 running and detached STDERR:535 thumbnail: at POE::Kernel::(unknown source) STDERR:535 thumbnail: Generated read error 0: STDOUT:535 thumbnail: Generated read error 0: Fork 535 closed Delaying 2 sec on creating another fork Child exited with signal CHLD (12415)
I came across this as well. The fix seems to be to handle the method in the "methods" hash: POE::Component::PreforkDispatch->create( ..., methods => { method_name => \&coderef, }, ); When I tried doing it the SYNOPSIS way, call_method() returned undef. POE::Filter::Reference chokes on that because it's not a reference. Handling the method call through the methods hash (see example above) works better. On Fri Apr 17 16:00:31 2009, ECARROLL wrote: Show quoted text
> Not sure what causes this > > STDERR:508 thumbnail: not a reference at > /usr/local/share/perl/5.10.0/POE/Filter/Reference.pm line 210