应对频繁崩溃谷歌浏览器也将增加类似微软蓝屏死机那样的错误代码

谷歌浏览器从2017年开始崩溃的概率就有所增加 , 而在2018年以及2019年崩溃的情况就开始有非常显著的提高。

崩溃的具体原因有部分是与英特尔幽灵和熔断系列漏洞有关,谷歌基于安全考虑在浏览器里部署相关的防御措施。

同时谷歌浏览器还调整沙盒技术隔离不同页面的进程,防止攻击者制作的恶意网站通过内存窃取其他进程的数据。

谷歌官方并未透露过为什么现在崩溃的概率会明显的提高,尽管谷歌也有多次尝试修复的例子但效果并不算太好。

谷歌浏览器已经准备好Windows 10 ARM专版 但暂时还没有发布计划

微软工程师提出类似蓝屏错误代码的做法:

在微软的 Windows 操作系统里出现蓝屏死机时会标注错误代码,用户可以根据错误代码来搜索潜在的解决方案。

有趣的是针对谷歌浏览器的频繁崩溃问题微软工程师竟然也提出使用错误代码,这样可以帮助用户和开发商排查。

当然微软工程师是在Chromium项目里提出这项改进的,因此除谷歌浏览器外其他使用该项目的浏览器亦可支持。

包括Microsoft Edge浏览器、Brave浏览器、维瓦尔第 (Vivaldi)浏览器、Opera浏览器以及其他品牌的浏览器等。

提供错误代码对应的错误内容:

目前微软和谷歌工程师准备的错误代码已经达到 137个,每个错误代码均代表某种特定的错误类型并具有描述等。

当然在浏览器错误页面并没有直接的错误描述,但用户可以根据错误代码在Chromium项目里找到具体错误原因。

例如某些由于安全沙盒引起的崩溃或者是硬件资源无法访问引起的崩溃,甚至是由底层操作系统引起的崩溃等等。

当用户无法解决此类问题时便可以将错误代码反馈给软件开发商,开发工程师可以依据错误代码来收集崩溃原因。

用户现在即可开始测试:

此功能目前已经在谷歌浏览器v81版中进行测试,如果顺利的话非常有可能会在v81(预计三月发布)正式版里到来。

不过如果用户已经使用谷歌浏览器或者 Microsoft Edge 浏览器每夜构建版,则可以通过实验性选项先进行测试。

具体可以转到chrome://crash或者chrome://kill来触发崩溃, 触发崩溃后在崩溃页面就会显示特定的错误代码等。

当前已包含的错误代码如下:

// CrashExitCodes in /tools/metrics/histograms/enums.xml.
base::string16 ErrorToString(int error_code) {
std::string error_string;
switch (std::abs(error_code)) {
case 1:
error_string = "RESULT_CODE_KILLED";
break;
case 2:
error_string = "RESULT_CODE_HUNG";
break;
case 3:
error_string = "RESULT_CODE_KILLED_BAD_MESSAGE";
break;
case 4:
error_string = "RESULT_CODE_GPU_DEAD_ON_ARRIVAL";
break;
case 5:
error_string = "RESULT_CODE_INVALID_CMDLINE_URL";
break;
case 6:
error_string = "RESULT_CODE_BAD_PROCESS_TYPE";
break;
case 7:
error_string = "RESULT_CODE_MISSING_DATA";
break;
case 8:
error_string = "RESULT_CODE_SHELL_INTEGRATION_FAILED";
break;
case 9:
error_string = "RESULT_CODE_MACHINE_LEVEL_INSTALL_EXISTS";
break;
case 10:
error_string = "RESULT_CODE_UNINSTALL_CHROME_ALIVE";
break;
case 11:
error_string = "RESULT_CODE_UNINSTALL_USER_CANCEL";
break;
case 12:
error_string = "RESULT_CODE_UNINSTALL_DELETE_PROFILE";
break;
case 13:
error_string = "RESULT_CODE_UNSUPPORTED_PARAM";
break;
case 14:
error_string = "RESULT_CODE_IMPORTER_HUNG";
break;
case 15:
error_string = "RESULT_CODE_RESPAWN_FAILED";
break;
case 16:
error_string = "RESULT_CODE_NORMAL_EXIT_EXP1";
break;
case 17:
error_string = "RESULT_CODE_NORMAL_EXIT_EXP2";
break;
case 18:
error_string = "RESULT_CODE_NORMAL_EXIT_EXP3";
break;
case 19:
error_string = "RESULT_CODE_NORMAL_EXIT_EXP4";
break;
case 20:
error_string = "RESULT_CODE_NORMAL_EXIT_CANCEL";
break;
case 21:
error_string = "RESULT_CODE_PROFILE_IN_USE";
break;
case 22:
error_string = "RESULT_CODE_PACK_EXTENSION_ERROR";
break;
case 23:
error_string = "RESULT_CODE_UNINSTALL_EXTENSION_ERROR";
break;
case 24:
error_string = "RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED";
break;
case 26:
error_string = "RESULT_CODE_INSTALL_FROM_WEBSTORE_ERROR_2";
break;
case 28:
error_string = "RESULT_CODE_EULA_REFUSED";
break;
case 29:
error_string = "RESULT_CODE_SXS_MIGRATION_FAILED_NOT_USED";
break;
case 30:
error_string = "RESULT_CODE_ACTION_DISALLOWED_BY_POLICY";
break;
case 31:
error_string = "RESULT_CODE_INVALID_SANDBOX_STATE";
break;
case 32:
error_string = "RESULT_CODE_CLOUD_POLICY_ENROLLMENT_FAILED";
break;
case 33:
error_string = "RESULT_CODE_DOWNGRADE_AND_RELAUNCH";
break;
case 131:
error_string = "SIGQUIT";
break;
case 132:
error_string = "SIGILL";
break;
case 133:
error_string = "SIGTRAP";
break;
case 134:
error_string = "SIGABRT";
break;
case 135:
error_string = "SIGBUS (7)";
break;
case 136:
error_string = "SIGFPE";
break;
case 137:
error_string = "SIGKILL";
break;
case 138:
error_string = "SIGBUS (10)";
break;
case 139:
error_string = "SIGSEGV";
break;
case 140:
error_string = "SIGSYS";
break;
case 258:
error_string = "WAIT_TIMEOUT";
break;
case 7006:
error_string = "SBOX_FATAL_INTEGRITY";
break;
case 7007:
error_string = "SBOX_FATAL_DROPTOKEN";
break;
case 7008:
error_string = "SBOX_FATAL_FLUSHANDLES";
break;
case 7009:
error_string = "SBOX_FATAL_CACHEDISABLE";
break;
case 7010:
error_string = "SBOX_FATAL_CLOSEHANDLES";
break;
case 7011:
error_string = "SBOX_FATAL_MITIGATION";
break;
case 7012:
error_string = "SBOX_FATAL_MEMORY_EXCEEDED";
break;
case 7013:
error_string = "SBOX_FATAL_WARMUP";
break;
case 36861:
error_string = "Crashpad_NotConnectedToHandler";
break;
case 36862:
error_string = "Crashpad_FailedToCaptureProcess";
break;
case 36863:
error_string = "Crashpad_HandlerDidNotRespond";
break;
case 85436397:
error_string = "Crashpad_SimulatedCrash";
break;
case 529697949:
error_string = "CPP_EH_EXCEPTION";
break;
case 533692099:
error_string = "STATUS_GUARD_PAGE_VIOLATION";
break;
case 536870904:
error_string = "Out of Memory";
break;
case 1066598273:
error_string = "FACILITY_VISUALCPP/ERROR_PROC_NOT_FOUND";
break;
case 1066598274:
error_string = "FACILITY_VISUALCPP/ERROR_MOD_NOT_FOUND";
break;
case 1073740760:
error_string = "STATUS_INVALID_IMAGE_HASH";
break;
case 1073740791:
error_string = "STATUS_STACK_BUFFER_OVERRUN";
break;
case 1073740940:
error_string = "STATUS_HEAP_CORRUPTION";
break;
case 1073741502:
error_string = "STATUS_DLL_INIT_FAILED";
break;
case 1073741510:
error_string = "STATUS_CONTROL_C_EXIT";
break;
case 1073741515:
error_string = "STATUS_DLL_NOT_FOUND";
break;
case 1073741571:
error_string = "STATUS_STACK_OVERFLOW";
break;
case 1073741659:
error_string = "STATUS_BAD_IMPERSONATION_LEVEL";
break;
case 1073741674:
error_string = "STATUS_PRIVILEGED_INSTRUCTION";
break;
case 1073741675:
error_string = "STATUS_INTEGER_OVERFLOW";
break;
case 1073741676:
error_string = "STATUS_INTEGER_DIVIDE_BY_ZERO";
break;
case 1073741677:
error_string = "STATUS_FLOAT_UNDERFLOW";
break;
case 1073741678:
error_string = "STATUS_FLOAT_STACK_CHECK";
break;
case 1073741679:
error_string = "STATUS_FLOAT_OVERFLOW";
break;
case 1073741680:
error_string = "STATUS_FLOAT_INVALID_OPERATION";
break;
case 1073741681:
error_string = "STATUS_FLOAT_INEXACT_RESULT";
break;
case 1073741682:
error_string = "STATUS_FLOAT_DIVIDE_BY_ZERO";
break;
case 1073741683:
error_string = "STATUS_FLOAT_DENORMAL_OPERAND";
break;
case 1073741684:
error_string = "STATUS_ARRAY_BOUNDS_EXCEEDED";
break;
case 1073741783:
error_string = "STATUS_INVALID_UNWIND_TARGET";
break;
case 1073741786:
error_string = "STATUS_INVALID_DISPOSITION";
break;
case 1073741787:
error_string = "STATUS_NONCONTINUABLE_EXCEPTION";
break;
case 1073741790:
error_string = "STATUS_ACCESS_DENIED";
break;
case 1073741794:
error_string = "STATUS_INVALID_LOCK_SEQUENCE";
break;
case 1073741795:
error_string = "STATUS_ILLEGAL_INSTRUCTION";
break;
case 1073741800:
error_string = "STATUS_CONFLICTING_ADDRESSES";
break;
case 1073741801:
error_string = "STATUS_NO_MEMORY";
break;
case 1073741811:
error_string = "STATUS_INVALID_PARAMETER";
break;
case 1073741816:
error_string = "STATUS_INVALID_HANDLE";
break;
case 1073741818:
error_string = "STATUS_IN_PAGE_ERROR";
break;
case 1073741819:
error_string = "STATUS_ACCESS_VIOLATION";
break;
case 1073741829:
error_string = "STATUS_SEGMENT_NOTIFICATION";
break;
case 1073741845:
error_string = "STATUS_FATAL_APP_EXIT";
break;
case 1072103400:
error_string = "STATUS_CURRENT_TRANSACTION_NOT_VALID";
break;
case 1072365548:
error_string = "STATUS_SXS_CORRUPT_ACTIVATION_STACK";
break;
case 1072365552:
error_string = "STATUS_SXS_INVALID_DEACTIVATION";
break;
case 1072365566:
error_string = "STATUS_SXS_CANT_GEN_ACTCTX";
break;
case 1073739514:
error_string = "STATUS_VIRUS_INFECTED";
break;
case 1073740004:
error_string = "STATUS_INVALID_THREAD";
break;
case 1073740016:
error_string = "STATUS_CALLBACK_RETURNED_WHILE_IMPERSONATING";
break;
case 1073740022:
error_string = "STATUS_THREADPOOL_HANDLE_EXCEPTION";
break;
case 1073740767:
error_string = "STATUS_VERIFIER_STOP";
break;
case 1073740768:
error_string = "STATUS_ASSERTION_FAILURE";
break;
case 1073740771:
error_string = "STATUS_FATAL_USER_CALLBACK_EXCEPTION";
break;
case 1073740777:
error_string = "STATUS_INVALID_CRUNTIME_PARAMETER";
break;
case 1073740782:
error_string = "STATUS_DELAY_LOAD_FAILED";
break;
case 1073740959:
error_string = "STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT";
break;
case 1073741131:
error_string = "STATUS_FLOAT_MULTIPLE_TRAPS";
break;
case 1073741132:
error_string = "STATUS_FLOAT_MULTIPLE_FAULTS";
break;
case 1073741205:
error_string = "STATUS_DLL_INIT_FAILED_LOGOFF";
break;
case 1073741212:
error_string = "STATUS_RESOURCE_NOT_OWNED";
break;
case 1073741431:
error_string = "STATUS_TOO_LATE";
break;
case 1073741511:
error_string = "STATUS_ENTRYPOINT_NOT_FOUND";
break;
case 1073741523:
error_string = "STATUS_COMMITMENT_LIMIT";
break;
case 1073741558:
error_string = "STATUS_PROCESS_IS_TERMINATING";
break;
case 1073741569:
error_string = "STATUS_BAD_FUNCTION_TABLE";
break;
case 1073741581:
error_string = "STATUS_INVALID_PARAMETER_5";
break;
case 1073741595:
error_string = "STATUS_INTERNAL_ERROR";
break;
case 1073741662:
error_string = "STATUS_MEDIA_WRITE_PROTECTED";
break;
case 1073741670:
error_string = "STATUS_INSUFFICIENT_RESOURCES";
break;
case 1073741701:
error_string = "STATUS_INVALID_IMAGE_FORMAT";
break;
case 1073741738:
error_string = "STATUS_DELETE_PENDING";
break;
case 1073741744:
error_string = "STATUS_EA_TOO_LARGE";
break;
case 1073741749:
error_string = "STATUS_THREAD_IS_TERMINATING";
break;
case 1073741756:
error_string = "STATUS_QUOTA_EXCEEDED";
break;
case 1073741757:
error_string = "STATUS_SHARING_VIOLATION";
break;
case 1073741766:
error_string = "STATUS_OBJECT_PATH_NOT_FOUND";
break;
case 1073741772:
error_string = "STATUS_OBJECT_NAME_NOT_FOUND";
break;
case 1073741784:
error_string = "STATUS_BAD_STACK";
break;
case 1073741785:
error_string = "STATUS_UNWIND";
break;
case 1073741788:
error_string = "STATUS_OBJECT_TYPE_MISMATCH";
break;
case 1073741796:
error_string = "STATUS_INVALID_SYSTEM_SERVICE";
break;
case 1073741820:
error_string = "STATUS_INFO_LENGTH_MISMATCH";
break;
case 1073741822:
error_string = "STATUS_NOT_IMPLEMENTED";
break;
case 1073741823:
error_string = "STATUS_UNSUCCESSFUL";
break;
case 2147483644:
error_string = "STATUS_SINGLE_STEP";
break;
case 2147483645:
error_string = "STATUS_BREAKPOINT";
break;
case 2147483646:
error_string = "STATUS_DATATYPE_MISALIGNMENT";
break;
default:
本文来源 Chromium,由 山外的鸭子哥 整理编辑,其版权均为 Chromium 所有,文章内容系作者个人观点,不代表 蓝点网 对观点赞同或支持。如需转载,请注明文章来源。
已赞2
扫码关注蓝点网微信公众号

评论:

6 条评论,访客:6 条,站长:0 条

0%好评

  • 好评:(0%)
  • 中评:(0%)
  • 差评:(0%)

最新评论

  1. yun
    yun发布于: 
    Internet Explorer 11.0 Internet Explorer 11.0 Windows 8.1 x64 Edition Windows 8.1 x64 Edition

    崩溃了怎么解决呀?

  2. 美女!
    美女!发布于: 
    QQbrowser 10.5.4039.400 QQbrowser 10.5.4039.400 Windows 10 x64 Edition Windows 10 x64 Edition

    RESULT_CODE_MISSING_DATA
    废了废了咋办!!

  3. 国色天香
    国色天香发布于: 
    UC Browser 6.2.4098.3 UC Browser 6.2.4098.3 Windows 10 x64 Edition Windows 10 x64 Edition

    哦,懂了,我的是这个RESULT_CODE_MISSING_DATA

  4. Harvey
    Harvey发布于: 
    Google Chrome 79.0.3945.88 Google Chrome 79.0.3945.88 Windows 10 x64 Edition Windows 10 x64 Edition

    不会是阿三做的吧😂

  5. 木头科学二百五
    木头科学二百五发布于: 
    Google Chrome 81.0.4017.0 Google Chrome 81.0.4017.0 Windows 10 x64 Edition Windows 10 x64 Edition

    2333
    问题找到了!微软工程师参与开发

    • bakura1
      bakura1发布于: 
      Google Chrome 77.0.3865.90 Google Chrome 77.0.3865.90 Windows 10 x64 Edition Windows 10 x64 Edition

      开除巨婴攻城狮,问题解决。同时也杀毒了,避免中了艾洛普病毒。

bakura1进行回复 取消回复