The application failed to initialize properly (0xc0000005):Google chrome

修复Google Chrome启动错误

 Google chrome’s “application failed to initialize properly (0xc0000005)error have some temporary fixes.Google chrome (chrome.exe) did not work for me initially, and I got the Google chrome error

 

“The application failed to initialize properly (0xc0000005).Click on OK to terminate the application.”


I was disappointed and doing a search revealed that several people were reporting the same problem on various windows platforms including windows vista (SP1, ultimate), windows XP3 or windows XP2.So the error seem to have been triggered in different versions of windows vista and windows XP platforms and it is not specific to any one of them.Also, the bug was reportedly caused by “Symantec Endpoint Protection“, though in my case, I was not using any symantec product. 
 
If you faced “The application failed to initialize properly (0xc0000005).Click on OK to terminate the application.” error with google chrome (chrome.exe) and you are using symantec, then you could try the following steps: 

  • Back up the registry on an affected system
  • Open the registry on the Agent system by entering regedit from a run prompt
  • Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/SysPlant
  • Open the Start DWORD
  • Change the value to 4 to disable the drivers
  • Reboot the system to commit the changes

The above registry solution to fix the Google chrome error was issued in symantec forums.Read it here.
 
 

The other easier solution is to run Google Chrome with --no-sandbox (with two dashes before “no”). To run it with the above option, edit the property of the shortcut you use to launch Google chrome and add the above option at the end of the “target” line (after the path to the chrome exe) i.e. Right click your shortcut to “Google Chrome” and click Properties. In the target text field, add a space then add --no-sandbox (with two dashes before “no”) right after the ending quotation mark. Run using this shortcut.However make sure that there is a space in between the ending quotation mark and the --no-sandbox option that you add.You could find a shortcut to google chrome on your desktop.Also note that you should use two dashes before “no”.See the pic. below. 

google-chrome-0xc0000005

 
You are in effect loosing the sandbox effect of Google Chrome.

What is sandboxing in Google chrome?

Sandboxing is a special feature in Google chrome, to prevent malware from installing itself onto computer/PC.It also prevents what happens in one tab from affecting the other tabs i.e each tab runs as a seperate process and for each of these processes, all the rights have been stripped. 

processes sandboxed in google chrome

 
Hence, each of these processes are isolated and the websites/web applications you run via these processes can compute but they cannot write files to your hard drive or read files from sensitive areas like your documents or desktop

 

From the above, it is clear that sandboxing has lots of goodness and one would not like to loose this feature of google chrome. However note that sandboxing is only an additional security feature in google. 
 
Update: If you are facing crashes with Google chrome, it might be due to winhttp.dll. Read here how to resolve Google chrome crashes due to winhttp.dll

在遇到“Failed to initialize NVML: N/A”错误时,通常与NVIDIA驱动程序、NVML库或系统环境的配置有关。以下是可能导致该问题的常见原因及相应的解决方案: ### 1. NVIDIA驱动未正确安装或版本不兼容 NVML(NVIDIA Management Library)依赖于NVIDIA驱动程序。如果驱动未安装、安装不完整或版本过低,可能导致NVML初始化失败。建议执行以下步骤: - 使用`nvidia-smi`命令检查驱动是否正常加载。如果命令未找到或输出异常,说明驱动未正确安装。 - 访问[NVIDIA官网](https://www.nvidia.com/Download/index.aspx)下载并安装适用于当前GPU型号的最新驱动。 - 确保驱动版本与CUDA工具包版本兼容,可通过[NVIDIA官方兼容性文档](https://docs.nvidia.com/deeplearning/cuda/installation-guide-linux/index.html)进行核对。 ### 2. NVML库缺失或路径配置错误 NVML库(`libnvidia-ml.so`)是NVIDIA驱动安装的一部分。若系统中缺少该库或其路径未被正确设置,也可能导致初始化失败。解决方法包括: - 检查`/usr/lib`或`/usr/local/cuda/lib64`目录下是否存在`libnvidia-ml.so`文件。若不存在,可能需要重新安装驱动。 - 确保环境变量`LD_LIBRARY_PATH`包含NVML库所在的路径。例如,执行`export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH`。 ### 3. 权限问题或守护进程未运行 某些情况下,用户权限不足或NVIDIA相关的守护进程未启动也可能导致NVML初始化失败。可尝试以下操作: - 使用`sudo`执行相关命令,确保当前用户具有足够的权限访问GPU资源。 - 检查NVIDIA持久模式是否启用,使用`nvidia-smi -pm 1`命令开启持久模式。 - 确认`nvidia-persistenced`服务是否正在运行,必要时重启该服务:`sudo systemctl restart nvidia-persistenced`。 ### 4. 系统重启后驱动未加载 在系统重启后,NVIDIA驱动可能未自动加载,导致NVML初始化失败。检查驱动模块是否加载: - 使用`lsmod | grep nvidia`查看驱动模块是否已加载。若未加载,尝试手动加载:`sudo modprobe nvidia`。 - 若驱动模块加载失败,可能需要检查内核版本是否与驱动兼容,或重新安装驱动。 ### 5. 使用容器环境时的配置问题 如果在Docker或其他容器环境中遇到该问题,需确保容器内正确配置了NVIDIA驱动和NVML库: - 安装[NVIDIA Container Toolkit](https://github.com/NVIDIA/nvidia-docker),确保容器能够访问GPU资源。 - 在运行容器时添加`--gpus all`参数,例如:`docker run --gpus all nvidia/cuda:11.0.3-base nvidia-smi`。 ### 示例代码:检查NVML初始化状态 以下是一个简单的C语言示例,用于检查NVML是否能够正确初始化: ```c #include <stdio.h> #include <nvml.h> int main() { nvmlReturn_t result = nvmlInit(); if (result != NVML_SUCCESS) { printf("Failed to initialize NVML: %s\n", nvmlErrorString(result)); return 1; } printf("NVML initialized successfully.\n"); nvmlShutdown(); return 0; } ``` 编译并运行上述代码时,若输出“Failed to initialize NVML”,则说明存在驱动、库或环境配置问题,需根据上述解决方案逐一排查。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值