http://www.perlmonks.org?node_id=11138264


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

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.

Replies are listed 'Best First'.
Re^3: Chrome freezes on windows when opened with WWW::Mechanize::Chrome
by Corion (Patriarch) on Oct 31, 2021 at 09:24 UTC

    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" ] );