How to get more info when the “Aw Snap” screen shows up in Chrome?

后端 未结 6 849
既然无缘
既然无缘 2020-12-07 23:44

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

相关标签:
6条回答
  • 2020-12-08 00:21

    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>\AppData\Local\Google\Chrome\User Data\Default

    On XP your log file would be in: C:\Documents and Settings\<username>\Local Settings\Application Data\Google\Chrome\User Data\Default

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

    0 讨论(0)
  • 2020-12-08 00:26

    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!

    0 讨论(0)
  • 2020-12-08 00:27

    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}\AppData\Local\Google\CrashReports

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

    0 讨论(0)
  • 2020-12-08 00:27

    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:

    • Chromium - How to enable logging?
    • How to determine what is causing Chrome to show the “Aw, Snap” dialogue

    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:

    • Where can I find my crash logs?
    • Debug “Aw, Snap!” error in Chrome

    Linux

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

    0 讨论(0)
  • 2020-12-08 00:33

    That page means that something inside the browser went wrong, so maybe run the browser under a debugger?

    0 讨论(0)
  • 2020-12-08 00:39

    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)\Google\Chrome\Application\chrome.exe" --no-sandbox

    or if you have admin rights you can update registry

    REG ADD "HKLM\Software\Policies\Google\Chrome" /v RendererCodeIntegrityEnabled /t REG_DWORD /d 0
    
    0 讨论(0)
提交回复
热议问题