Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Chrome freezes on windows when opened with WWW::Mechanize::Chrome

by Bod (Parson)
on Oct 18, 2021 at 20:49 UTC ( [id://11137701]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Chrome freezes on windows when opened with WWW::Mechanize::Chrome
in thread Chrome freezes on windows when opened with WWW::Mechanize::Chrome

I am using Strawberry Perl (v5.32.1)

So we are using the same version...

Try cpanm -v --force WWW::Mechanize::Chrome to install WMC for strawberry Perl

That's pretty much what I tried when cpanm WWW::Mechanize::Chrome failed.
I've just tried again on a different machine and it hangs in the same place...

t/50-gh63-encode-response-content.t ........... 2/4

Here are the preceding lines if it helps with diagnosis.

t/00-load.t ................................... 1/1 # Testing WWW::Mec +hanize::Chrome 0.68, Perl 5.032001 # AutoLoader 5.74 # B 1.80 # Carp 1.50 # Carp::Heavy 1.50 # Chrome::DevToolsProtocol 0.68 # Chrome::DevToolsProtocol::EventListener 0.68 # Chrome::DevToolsProtocol::Target 0.68 # Chrome::DevToolsProtocol::Transport 0.68 # Class::Method::Modifiers 2.13 # Class::XSAccessor 1.19 # Class::XSAccessor::Heavy 1.19 # Clone 0.45 # Config 5.032001 # Cwd 3.78 # Data::Dumper 2.174_01 # DynaLoader 1.47_01 # Encode 3.08 # Encode::Alias 2.24 # Encode::Config 2.05 # Encode::Encoding 2.08 # Encode::MIME::Name 1.03 # Errno 1.3 # Exporter 5.74 # Exporter::Heavy 5.74 # Fcntl 1.13 # File::Basename 2.85 # File::Spec 3.78 # File::Spec::Unix 3.78 # File::Spec::Win32 3.79 # Filter::Simple 0.96 # Filter::Util::Call 1.6 # Filter::signatures 0.17 # Future 0.47 # Future::Exception 0.47 # Future::HTTP 0.14 # HTML::Selector::XPath 0.25 # HTTP::Cookies 6.10 # HTTP::Cookies::ChromeDevTools 0.68 # HTTP::Cookies::Netscape 6.10 # HTTP::Date 6.05 # HTTP::Headers 6.27 # HTTP::Headers::Util 6.27 # HTTP::Message 6.27 # HTTP::Response 6.27 # HTTP::Status 6.27 # IO 1.45 # IO::Handle 1.45 # IO::Socket 1.45 # IO::Socket::INET 1.45 # IO::Socket::UNIX 1.45 # JSON 4.03 # JSON::XS 4.03 # List::Util 1.55 # Log::Log4perl 1.54 # Log::Log4perl::Appender <unknown> # Log::Log4perl::Appender::String <unknown> # Log::Log4perl::Config <unknown> # Log::Log4perl::Config::BaseConfigurator <unknown> # Log::Log4perl::Config::PropertyConfigurator <unknown> # Log::Log4perl::Config::Watch <unknown> # Log::Log4perl::DateFormat <unknown> # Log::Log4perl::Filter <unknown> # Log::Log4perl::Filter::Boolean <unknown> # Log::Log4perl::JavaMap <unknown> # Log::Log4perl::Layout <unknown> # Log::Log4perl::Layout::PatternLayout <unknown> # Log::Log4perl::Layout::PatternLayout::Multiline <unknown> # Log::Log4perl::Layout::SimpleLayout <unknown> # Log::Log4perl::Level <unknown> # Log::Log4perl::Logger <unknown> # Log::Log4perl::MDC <unknown> # Log::Log4perl::NDC <unknown> # Log::Log4perl::Util <unknown> # Log::Log4perl::Util::TimeTracker <unknown> # MIME::Base64 3.16 # Method::Generate::Accessor <unknown> # Method::Generate::Constructor <unknown> # Moo 2.004004 # Moo::HandleMoose::_TypeMap <unknown> # Moo::Object <unknown> # Moo::_Utils <unknown> # Moo::_mro <unknown> # Moo::_strictures <unknown> # Moo::sification <unknown> # POSIX 1.94 # PerlIO 1.11 # PerlX::Maybe 1.201 # Scalar::Util 1.55 # SelectSaver 1.02 # Socket 2.031 # Storable 3.21 # Sub::Defer 2.006006 # Sub::Quote 2.006006 # Sub::Util 1.55 # Symbol 1.08 # Sys::Hostname 1.23 # Test::Builder 1.302183 # Test::Builder::Formatter 1.302183 # Test::Builder::Module 1.302183 # Test::Builder::TodoDiag 1.302183 # Test::More 1.302183 # Test2::API 1.302183 # Test2::API::Context 1.302183 # Test2::API::Instance 1.302183 # Test2::API::Stack 1.302183 # Test2::Event 1.302183 # Test2::Event::Bail 1.302183 # Test2::Event::Diag 1.302183 # Test2::Event::Exception 1.302183 # Test2::Event::Fail 1.302183 # Test2::Event::Note 1.302183 # Test2::Event::Ok 1.302183 # Test2::Event::Pass 1.302183 # Test2::Event::Plan 1.302183 # Test2::Event::Skip 1.302183 # Test2::Event::Subtest 1.302183 # Test2::Event::V2 1.302183 # Test2::Event::Waiting 1.302183 # Test2::EventFacet 1.302183 # Test2::EventFacet::About 1.302183 # Test2::EventFacet::Amnesty 1.302183 # Test2::EventFacet::Assert 1.302183 # Test2::EventFacet::Control 1.302183 # Test2::EventFacet::Error 1.302183 # Test2::EventFacet::Hub 1.302183 # Test2::EventFacet::Info 1.302183 # Test2::EventFacet::Meta 1.302183 # Test2::EventFacet::Parent 1.302183 # Test2::EventFacet::Plan 1.302183 # Test2::EventFacet::Trace 1.302183 # Test2::Formatter 1.302183 # Test2::Formatter::TAP 1.302183 # Test2::Hub 1.302183 # Test2::Hub::Interceptor 1.302183 # Test2::Hub::Interceptor::Terminator 1.302183 # Test2::Hub::Subtest 1.302183 # Test2::Util 1.302183 # Test2::Util::ExternalMeta 1.302183 # Test2::Util::Facets2Legacy 1.302183 # Test2::Util::HashBase 1.302183 # Test2::Util::Trace 1.302183 # Text::Balanced 2.04 # Tie::Hash 1.05 # Time::HiRes 1.9764 # Time::Local 1.30 # Try::Tiny 0.30 # Types::Serialiser 1.01 # URI 5.06 # URI::Escape 5.06 # WWW::Mechanize::Chrome 0.68 # WWW::Mechanize::Chrome::Node 0.68 # WWW::Mechanize::Link 2.03 # XSLoader 0.30 # attributes 0.33 # base 2.27 # bytes 1.07 # common::sense 3.75 # constant 1.33 # feature 1.58 # mro 1.23 # overload 1.31 # overloading 0.02 # parent 0.238 # re 0.40 # strict 1.11 # vars 1.05 # warnings 1.47 # warnings::register 1.04 t/00-load.t ................................... ok t/01-chrome-devtools-protocol-target-cycle.t .. 1/8 Unhandled type: GL +OB at C:/Strawberry/perl/site/lib/Devel/Cycle.pm line 107. t/01-chrome-devtools-protocol-target-cycle.t .. ok t/01-chrome-devtools-protocol-target.t ........ ok t/01-chrome-devtools-protocol.t ............... ok t/01-select-backend-implementation.t .......... skipped: No backend ot +her than IO::Async available t/02-chrome-devtools-tab.t .................... ok t/03-listener-leak-test.t ..................... ok t/47-mech-simplest.t .......................... ok t/49-existing-port.t .......................... ok t/49-launch.t ................................. ok t/49-mech-get-file.t .......................... 5/14 cannot unlink fil +e for C:\Users\user\AppData\Local\Temp\ZaPuEEUKFr\CrashpadMetrics-act +ive.pma: Permission denied at C:/Strawberry/perl/lib/File/Temp.pm lin +e 921. cannot remove directory for C:/Users/user/AppData/Local/Temp/ZaPuEEUKF +r: Directory not empty at C:/Strawberry/perl/lib/File/Temp.pm line 92 +1. t/49-mech-get-file.t .......................... ok t/49-mech-nav.t ............................... ok t/49-pipe.t ................................... skipped: Pipes are cur +rently unsupported on MSWin32 t/49-port.t ................................... ok t/50-follow-link.t ............................ ok t/50-form-with-fields-gh48.t .................. 1/6 cannot unlink file + for C:\Users\user\AppData\Local\Temp\wLJXqNisdW\CrashpadMetrics-acti +ve.pma: Permission denied at C:/Strawberry/perl/lib/File/Temp.pm line + 921. cannot remove directory for C:/Users/user/AppData/Local/Temp/wLJXqNisd +W: Directory not empty at C:/Strawberry/perl/lib/File/Temp.pm line 92 +1. t/50-form-with-fields-gh48.t .................. ok t/50-form-with-fields.t ....................... 7/8 cannot unlink file + for C:\Users\user\AppData\Local\Temp\mCHgdvWaDU\CrashpadMetrics-acti +ve.pma: Permission denied at C:/Strawberry/perl/lib/File/Temp.pm line + 921. cannot remove directory for C:/Users/user/AppData/Local/Temp/mCHgdvWaD +U: Directory not empty at C:/Strawberry/perl/lib/File/Temp.pm line 92 +1. t/50-form-with-fields.t ....................... ok t/50-form2.t .................................. ok t/50-gh63-encode-response-content.t ........... 2/4

Replies are listed 'Best First'.
Re^4: Chrome freezes on windows when opened with WWW::Mechanize::Chrome
by Corion (Patriarch) on Oct 19, 2021 at 07:45 UTC

    That shouldn't happen - can you please run the hanging test in isolation and with verbose output? The following steps should make the test output lots (and lots) of information:

    cpanm --look WWW::Mechanize::Chrome perl Makefile.PL set TEST_LOG_LEVEL=trace perl -Ilib t/50-gh63-encode-response-content.t
      can you please run the hanging test in isolation and with verbose output

      Certainly - I've run this on two separate machines and I get the same result...
      It hangs at the end of the output and doesn't return to a command promt.

      UPDATE: Something in the output is screwing up the rendering. It was OK in preview mode but doesn't display properly...
      So - Find It Here

      Hope this is helpful.

        Thanks for posting the log!

        Looking at it, there is some redirect loop going on that I don't hit when I'm testing - that's one of the drawbacks of running tests against external servers...

        I don't see a good/quick fix, but as the test suite progresses somewhat, it seems sane to force-install the module, skipping the test suite.

        I'll look at rewriting the test using only local resources so it doesn't trip with the next (regional) behaviour change.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137701]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-26 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found