in reply to Re^7: MozRepl cleanup problem
in thread MozRepl cleanup problem

Thanks for taking the time to test and correct my script.

Unfortunately, this still "crashes" before the desired end. Here are the errors (if it helps, these appeared at the 24th player):

command timed-out at /Library/Perl/5.10.0/MozRepl/Client.pm line 186 (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "execute" on an undefined value at +/Library/Perl/5.10.0/MozRepl.pm line 372, <MATCH> line 7714 during gl +obal destruction. (in cleanup) Can't call method "execute" on an undefined value at +/Library/Perl/5.10.0/MozRepl.pm line 372, <MATCH> line 7714 during gl +obal destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "is_debug" on an undefined value at + /Library/Perl/5.10.0/MozRepl/Client.pm line 188, <MATCH> line 7714 d +uring global destruction. (in cleanup) Can't call method "execute" on an undefined value at +/Library/Perl/5.10.0/MozRepl.pm line 372, <MATCH> line 7714 during gl +obal destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "is_debug" on an undefined value at + /Library/Perl/5.10.0/MozRepl/Client.pm line 188, <MATCH> line 7714 d +uring global destruction. (in cleanup) Can't call method "execute" on an undefined value at +/Library/Perl/5.10.0/MozRepl.pm line 372, <MATCH> line 7714 during gl +obal destruction. (in cleanup) Can't call method "execute" on an undefined value at +/Library/Perl/5.10.0/MozRepl.pm line 372, <MATCH> line 7714 during gl +obal destruction. (in cleanup) Can't call method "execute" on an undefined value at +/Library/Perl/5.10.0/MozRepl.pm line 372, <MATCH> line 7714 during gl +obal destruction. (in cleanup) Can't call method "execute" on an undefined value at +/Library/Perl/5.10.0/MozRepl.pm line 372, <MATCH> line 7714 during gl +obal destruction. (in cleanup) Can't call method "is_debug" on an undefined value at + /Library/Perl/5.10.0/MozRepl/Client.pm line 188, <MATCH> line 7714 d +uring global destruction. (in cleanup) Can't call method "is_debug" on an undefined value at + /Library/Perl/5.10.0/MozRepl/Client.pm line 188, <MATCH> line 7714 d +uring global destruction. (in cleanup) Can't call method "is_debug" on an undefined value at + /Library/Perl/5.10.0/MozRepl/Client.pm line 188, <MATCH> line 7714 d +uring global destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "is_debug" on an undefined value at + /Library/Perl/5.10.0/MozRepl/Client.pm line 188, <MATCH> line 7714 d +uring global destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction. (in cleanup) Can't call method "execute" on an undefined value at +/Library/Perl/5.10.0/MozRepl.pm line 372, <MATCH> line 7714 during gl +obal destruction. (in cleanup) Can't call method "execute" on an undefined value at +/Library/Perl/5.10.0/MozRepl.pm line 372, <MATCH> line 7714 during gl +obal destruction. (in cleanup) Can't call method "cmd" on an undefined value at /Lib +rary/Perl/5.10.0/MozRepl/Client.pm line 186, <MATCH> line 7714 during + global destruction.

Even if this still doesn't work as intended, I'm really grateful you are helping me.

Replies are listed 'Best First'.
Re^9: MozRepl cleanup problem
by Corion (Patriarch) on Nov 02, 2010 at 16:23 UTC

    My program does not output these messages. Maybe you're not running a recent version of WWW::Mechanize::Firefox? I test with 0.36, which (naturally) is the latest.

      You were right, I was running an older version of your module! I updated it to 0.36 using cpan, but now the script doesn't even open a Firefox page and just gives this:

      Failed to connect to , problem connecting to "localhost", port 4242: connect timed-out at /Library/Perl/5.10.0/MozRepl/Client.pm line 144

        Which looks to me as if the mozrepl Firefox add-on is not running. Have you verified that it is running?