ChromeDriver crashes

To diagnose/fix ChromeDriver crashes, there are a few options. Note, this is only for ChromeDriver crashes, which is not the same as Chrome crashing or closing. On windows, you'll see something like this:

Create a repro case

Create a repro case that ChromeDriver contributors can use to reproduce and debug the problem. It is ok if the crash does not occur 100% of the time. File a bug with your repro case. This is usually the fastest option to get help.

Get a dump of the crash (windows only)

To create and debug a crash dump, you need a debug version of ChromeDriver. We don't currently have official releases of debug build of ChromeDriver, but you can check out Chrome sources and build the debug version of ChromeDriver. See the contributing section for help. When the crash happens, attach the debugger and see what is happening. This requires some C++ experience and knowledge of your system's debugger.

Configure your system to create a fulldump on crash. See http://msdn.microsoft.com/en-us/library/windows/desktop/bb787181%28v=vs.85%29.aspx for help.

After a crash dump is created, use WinDbg to analyze it:

<ctrl-d> and choose dump file

.sympath+ SRV*C:\symbols*http://msdl.microsoft.com/download/symbols;D:\path\to\directory\containing\pdb

!sym noisy # just to show any problems we have finding symbols

ld chromedriver # or !reload

lmvm chromedriver # Should show chromedriver has private/debug symbols

!analyze -v # Tells windbg to analyze the exception