English 中文(简体)
How to get more info when the "Aw Snap" screen shows up in Chrome?
原标题:

I am trying to view a page in Google Chrome, but I get the message: "Aw, Snap! Something went wrong while displaying this web page". Is there a way to get more information about what went wrong?

Update: the "Aw, Snap" remark is shown only when the JavaScript console is visible.

问题回答

First enable Automatically send some system information and page content to Google to help detect dangerous apps and sites from Settings -->> Advanced -->> Privacy and Security

then enable Crash reporting in Chrome as below

  1. Open chrome://crashes
  2. If it shows crash report as disabled, enable it. If crash happens it will dump the crash report at C:Users{username}AppDataLocalGoogleCrashReports

This would give more info when the aw snap screen shows up in chrome

I don t know if you ll see much in the non-debug build but try turning on logging and see what shows up:

Launch Chrome with these flags: --enable-logging --log-level=0

On Vista your log file would be in: C:Users<username>AppDataLocalGoogleChromeUser DataDefault

On XP your log file would be in: C:Documents and Settings<username>Local SettingsApplication DataGoogleChromeUser DataDefault

See http://www.chromium.org/for-testers/enable-logging for details.

When you run DevTools on the website which is about to crash, it may give you some clues.

For example, when the tab will hit out-of-memory limits, the debugger will pause the code just before the crash (Chrome, Opera, etc.). The memory usage can be checked in the Memory tab.

If the cause is different, run Chrome from the command-line with --enable-logging --v=1 and check the logs (system logs and chrome_debug.log file).

Related:


macOS

If you re on macOS, such crashes should be automatically reported. They can be checked in Console app and check for Crash Reports. Or find them in Finder, the files are located in /Library/Logs/DiagnosticReports (system-wide) and ~/Library/Logs/DiagnosticReports (user).

Check also Chrome logs in real-time, by:

log stream --level debug --predicate  processImagePath contains "Google" 

See also:


Linux

For Linux, check: How to generate a core dump in Linux when a process gets a segmentation fault?

I faced the same problem in chrome, I was using it at Ubuntu operating system, I just update chrome and restart my system and its working fine!

Get a Chrome crash dump (see other answers and a search engine for most up-to-date methods for that) and you can open it in a debugger.

Memory-related issues are usually pretty obvious, like if the heap is overflowing or not being compacted fast enough for new objects to be added. Chrome will try to save itself from crashing by detecting whether the GC was ineffective at marking sufficient things for collection / compaction - "CheckIneffectiveMarkCompact" and "FatalProcessOutOfMemory" where the GC is basically thrashing trying to reclaim memory over and over, but not able to do so. This is usually a sign of "bad" javascript - not necessarily bugs, but design flaws such as loading too many records from an API into memory at once, such as when rendering long lists of data or features on a map. Depending on the device where Chrome is running, it can easily be overtaken and will shut down the site/tab with the "Aw Snap" error.

    #endif  // V8_FUZZILLI
    } else {
      fatal_callback(location,
                     is_heap_oom
                         ? "Allocation failed - JavaScript heap out of memory"
                         : "Allocation failed - process out of memory");
    }

WinDbg.exe Windows Store Edition with a Chrome crash dump .dmp file and the chromium symbols loaded

After chrome update my chrome browser was stopped working, So below fix I have applied for time being You can disable sandbox mode by following below 2 ways

either you can run below command "C:Program Files (x86)GoogleChromeApplicationchrome.exe" --no-sandbox

or if you have admin rights you can update registry

REG ADD "HKLMSoftwarePoliciesGoogleChrome" /v RendererCodeIntegrityEnabled /t REG_DWORD /d 0




相关问题
Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Asp.Net MVC - Problem returning a model to the view

I ve recently started using the Areas functionality of the Preview2 and it was working ok until I needed to return a Model to the view. Controller: public ActionResult ForgotPassword() { return ...

Unable to generate PDB files in Visual Studio 2005

For most assemblies, I m able to generate their respective .pdb files. However, I ve got one project that isn t generating their .pdb files. I ve made sure that it on debug mode and that the project ...

热门标签