Re: Problem with MPD client but probably POE user error
[email protected] (John) Tue, 04 Feb 2014 20:10:18 -0600
| Newsgroups | perl.poe |
|---|---|
| Message-ID | <[email protected]> |
Thanks! I updated modules to latest and changed the program since I sent the original email. Below is output with ASSERT set. No problem if nothing leaps out as I am still working it. With POE_ASSERT_DEFAULT=1: hello there bye-bye === 2437 === Please address any warnings or errors above this message, === 2437 === and try again. If there are no previous messages, or they === 2437 === are from within POE, then please mail them along with the === 2437 === following information to [email protected]: --- <dt> Cannot resolve ``mpd'' into a session reference ----- at ./client.pl line 36. main::start(undef, POE::Session=ARRAY(0x2b3b188), POE::Kernel=ARRAY(0x15801a0), HASH(0x11e4590), " _start", POE::Kernel=ARRAY(0x15801a0), undef, "/usr/lib64/perl5/site_perl/5.12.4/POE/Kernel.pm", 1479, ... ) called at /usr/lib64/perl5/site_perl/5.12.4/POE/Session.pm line 464 POE::Session::_invoke_state(POE::Session=ARRAY(0x2b3b188), POE::Kernel=ARRAY(0x15801a0), "_start", ARRAY(0x167b968), "/usr/lib64/perl5/site_perl/5.12.4/POE/Kernel.pm", 1479, undef) called at /usr/lib64/pe rl5/site_perl/5.12.4/POE/Kernel.pm line 1067 eval {...} called at /usr/lib64/perl5/site_perl/5.12.4/POE/Kernel.pm line 1066 POE::Kernel::_dispatch_event(POE::Kernel=ARRAY(0x15801a0), POE::Session=ARRAY(0x2b3b188), POE::Ses sion=ARRAY(0x2b3b188), "_start", 4, ARRAY(0x167b968), "/usr/lib64/perl5/site_perl/5.12.4/POE/Kernel.pm", 1 479, undef, ...) called at /usr/lib64/perl5/site_perl/5.12.4/POE/Kernel.pm line 1476 POE::Kernel::session_alloc(POE::Kernel=ARRAY(0x15801a0), POE::Session=ARRAY(0x2b3b188)) called at /usr/lib64/perl5/site_perl/5.12.4/POE/Session.pm line 192 POE::Session::try_alloc(POE::Session=ARRAY(0x2b3b188)) called at /usr/lib64/perl5/site_perl/5.12.4 /POE/Session.pm line 373 POE::Session::create("POE::Session", "inline_states", HASH(0x11bffd8)) called at ./client.pl line 24 On 02/04/14 10:24, Rocco Caputo wrote: > Hi, John. > > I don't see anything obviously wrong in the code you provided. I don't have MPD, and I'm not familiar with the module you're using, but I can offer some general POE advice. > > POE has some debugging switches, documented in POE::Kernel. I recommend at least enabling: ASSERT_EVENTS, ASSERT_USAGE, and ASSERT_RETVALS. You can do this in your shell: > > export POE_ASSERT_EVENTS=1 > export POE_ASSERT_USAGE=1 > export POE_ASSERT_RETVALS=1 > > Or to turn them all on (and a bit more) in one fell swoop: > > export POE_ASSERT_DEFAULT=1 > > Then run your program. Hopefully POE will warn you about something relevant. >