Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I debug a tab crash in Google Chrome

We have a single page application that randomly crashes the whole browser tab. I observed the memory for more than an hour but it wasn't increasing and everything looks just fine. Than out of a sudden after some more time passes, the tab crashes.

I looked for a crash dump in

C:\Users\cburgdorf\AppData\Local\Google\CrashReports 

but the Chrome-last.dmp is totally outdated. Is there any place where I can look for additional information about the crash? Not to mention it's a hard to reproduce beast.

I wonder if I could start Chrome with windbg attached and wait (2 hours or so sigh) for the tab crash. Would that work?

UPDATE

All of you gave good answers and provided valueable advice for bug hunting. In the end I was able to reproduce the bug and get a clear crash dump using the following steps:

1.) windbg.exe -o chrome.exe 2.) reproduce crash 3.) .dump /ma C:\Path\To\A\CrashDump\File.dmp (as Paul pointed out) 4.) end session and load the crash dum with windbg 5.) use !analyze -v to extract valuable information 
like image 740
Christoph Avatar asked Jun 05 '12 11:06

Christoph


People also ask

Why are my Google Chrome tabs crashing?

Close all Tabs, Background Processes, and Startup Apps If you have a lot of tabs open in your browser and a lot of programs running in the background, this can cause Chrome to crash. If you visit your Task Manager, you can notice that Chrome usually has a very high resource usage.

How do I find Chrome crash reports?

If you want to enable crash reporting, in Chrome go to Settings > You and Google > Sync and Google services, and enable Help improve Chrome's features and performance. You can view a list of crash reports, but not their details, by going to Chrome://crashes.

Why is Chrome crashing all of a sudden?

If your computer is low on RAM (which is often a problem due to Chrome's high memory usage), it may cause websites to crash. Try closing all tabs you're not using, pausing any Chrome downloads, and quitting any unnecessary programs running on your computer.


1 Answers

Once WinDbg breaks in, use this command to create a full crash dump:

.dump /ma C:\Path\To\A\CrashDump\File.dmp 
like image 124
Ana Betts Avatar answered Sep 28 '22 02:09

Ana Betts