Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Corion (Patriarch)
on Oct 14, 2021 at 17:21 UTC ( [id://11137527]=note: print w/replies, xml ) Need Help??


in reply to Chrome freezes on windows when opened with WWW::Mechanize::Chrome

I cannot reproduce the problem using your code. As you have the $TRACE output enabled, maybe you can show the output up to the point where the program "freezes".

Replies are listed 'Best First'.
Re^2: Chrome freezes on windows when opened with WWW::Mechanize::Chrome
by bakiperl (Beadle) on Oct 14, 2021 at 22:10 UTC
    Corion,
    It turns out that the recent google chrome updates are the cause of the problem. The newer version stops responding immediately after you execute the script.
    I downgraded chrome to an earlier version and things are back running normally.

      Would you please share the Chrome versions in question here? Both the last one that appears to work and the one that you believe broke things?

      I use Corion's distribution here from time-to-time, and am about to deploy it for some tests at work in the coming week or so. I'd like to do some testing on the issue before I have our guys deploying software.

        Stevieb,
        Chrome version 94.0.4606.81 (64-bit) is the one that is causing the problem. I had to downgrade to version 91.0.4472.123 to resolve the problem, but I am sure that version 93 have worked for me before.
Re^2: Chrome freezes on windows when opened with WWW::Mechanize::Chrome
by bakiperl (Beadle) on Oct 31, 2021 at 00:43 UTC
    Corion,
    Just in case this can help tracking the issue that is causing chrome/chromium version 94. and 95. to freeze, I added the launch_arg option and the result is shown below:
    my $mech = WWW::Mechanize::Chrome->new( headless => 0, launch_arg => [ " --enable-logging", "--v=1" ] );
    chrome_bebug.log file
    [10576:11820:1029/142219.260:ERROR:chrome_browser_main_extra_parts_met +rics.cc(230)] crbug.com/1216328: Checking Bluetooth availability star +ted. Please report if there is no report that this ends. [10576:11820:1029/142219.260:ERROR:chrome_browser_main_extra_parts_met +rics.cc(233)] crbug.com/1216328: Checking Bluetooth availability ende +d.

      This must be some weird difference between our setups, since I do not get any kind of Chrome freeze with that on either Linux or Windows.

      Maybe if you launch Chrome with a completely fresh profile (without any plugins), something different shows up?

      use File::Temp 'tempdir'; my $mech = WWW::Mechanize::Chrome->new( headless => 0, data_directory => tempdir(CLEANUP => 1 ), launch_arg => [ " --enable-logging", "--v=1" ] );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found