
MS Edge driver crash issue
I am currently working on some local automation using MSEdgeDriver version 133.0.3065.82 and Selenium version 4.18. The automation runs smoothly for a while,
but after some time, I encounter an issue where MSEdgeDriver crashes. In this automation, two browser instances are opened
(two separate MSEdgeDriver processes appear in the task manager) for the
same application. Additionally, a popup window opens in one of the browser instances.
It was working with edge and edge driver 132.
Also find event viewer and other logs below,
Event Viewer 1st log,
Faulting application name: msedgedriver.exe, version: 133.0.3065.82, time stamp: 0x67b777dd
Faulting module name: msedgedriver.exe, version: 133.0.3065.82, time stamp: 0x67b777dd
Exception code: 0xc0000005
Fault offset: 0x0000000000527f3d
Faulting process id: 0x3514
Faulting application start time: 0x01db8951e978c324
Faulting application path: C:\Users\AppData\Local\SeleniumDrivers\msedgedriver.exe
Faulting module path: C:\Users\AppData\Local\SeleniumDrivers\msedgedriver.exe
Report Id: d51581e4-2895-4e8a-8310-ff7ed2a431bf
Event Viewer 2nd log,
Faulting application name: msedgedriver.exe, version: 133.0.3065.69, time stamp: 0x67af11d0
Faulting module name: msedgedriver.exe, version: 133.0.3065.69, time stamp: 0x67af11d0
Exception code: 0xc0000005
Fault offset: 0x0000000000528216
Faulting process id: 0x1c50
Faulting application start time: 0x01db82ce39e53b00
Faulting application path: C:\Test\SeleniumDrivers\msedgedriver.exe
Faulting module path: C:\Test\SeleniumDrivers\msedgedriver.exe
Report Id: aec3da23-7586-4021-a53b-a5f2131ca728
Faulting package full name:
Faulting package-relative application ID:
Faulting package full name:
=======================================================
"The HTTP request to the remote WebDriver server for URL http://localhost:<port>/session/cbec17be69fe8f480555845155ff9ef7/frame timed out after 90 seconds.","errordetails":"ExceptionMessage - The HTTP request to the remote WebDriver server for URL http://localhost:<port>/session/cbec17be69fe8f480555845155ff9ef7/frame timed out after 90 seconds. \r\nExceptionSource - WebDriver \r\nExceptionTarget - HttpResponseInfo MakeHttpRequest(HttpRequestInfo) \r\nStackTrace - OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:<port>/session/cbec17be69fe8f480555845155ff9ef7/frame timed out after 90 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out.\r\n at System.Net.HttpWebRequest.GetResponse()\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)\r\n --- End of inner exception stack trace ---\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)\r\n at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)\r\n at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)\r\n at OpenQA.Selenium.Remote.RemoteTargetLocator.DefaultContent()\r\n "
=====================================================
"Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it [::1]:<port>\r\n at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)\r\n at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)\r\n --- End of inner exception stack trace ---\r\n at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)\r\n at System.Net.HttpWebRequest.GetRequestStream()\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)\r\n at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)\r\n at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters)","errordetails":"ExceptionMessage - Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it [::1]:<port>\r\n at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)\r\n at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)\r\n --- End of inner exception stack trace ---\r\n at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)\r\n at System.Net.HttpWebRequest.GetRequestStream()\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)\r\n at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)\r\n at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary
2 parameters) \r\nExceptionSource - WebDriver \r\nExceptionTarget - Void UnpackAndThrowOnError(OpenQA.Selenium.Remote.Response) \r\nStackTrace - OpenQA.Selenium.WebDriverException: Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it [::1]:<port>\r\n at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)\r\n at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)\r\n --- End of inner exception stack trace ---\r\n at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)\r\n at System.Net.HttpWebRequest.GetRequestStream()\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)\r\n at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)\r\n at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)\r\n at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters)\r\n at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)\r\n at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary
2 parameters)\r\n at OpenQA.Selenium.Remote.RemoteTargetLocator.Window(String windowHandleOrName)
Kindly help to solve this issue.