SeleniumでChromedriverの実行後に「ERROR: platform_thread_posix.cc(147)] pthread_create: Resource temporarily unavailable (11)」が出た場合の解決方法

エラー解決
スポンサーリンク

SeleniumでChromedriverを動かすときにエラーが出ました。
解決方法を備忘録としてまとめておきます。

目次

 


 

エラー内容

AWS Lambda関数でSeleniumを動かそうとしたときに以下のようなエラーが出た。
プログラムには問題なく、最後までSeleniumの処理が実行されるが、その後以下のようなERRのログがでた。

ERROR: command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
ERROR: chrome_browser_main_extra_parts_metrics.cc(228)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
ERROR: chrome_browser_main_extra_parts_metrics.cc(231)] crbug.com/1216328: Checking Bluetooth availability ended.
ERROR: chrome_browser_main_extra_parts_metrics.cc(234)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
ERROR: chrome_browser_main_extra_parts_metrics.cc(238)] crbug.com/1216328: Checking default browser status ended.
ERROR: platform_thread_posix.cc(147)] pthread_create: Resource temporarily unavailable (11)

 

 

解決方法

Chromedriverを起動するときにオプションを設定すればOK。

options = webdriver.ChromeOptions()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(options=options)

参考:[1]

 

 

参考

 

以上!

コメント

タイトルとURLをコピーしました