Chromium 和 Chrome 经常崩溃 (Ubuntu 14.04)

Mau*_*cio 6 google-chrome chromium 14.04

所以,这周发生了一些奇怪的事情。Chrome 和 Chromium 已开始冻结并随后崩溃。我的系统一直运行良好,但 Chrome 和 Chromium 冻结然后关闭。我唯一能想到的可能是我打开的标签数量(几十个)。

无论如何,当我重新打开它们时,我会看到带有恢复选项的主页。我单击恢复,一切都开始加载,然后它再次冻结并崩溃,一切都关闭了。所以我根本无法恢复会话。(顺便说一句,有没有办法获得我打开的网站的列表?我无法在不崩溃的情况下恢复 chrome 或 chrome,所以我无法访问我的任何选项卡。)

看来这个人有类似的问题:chrome 在 Ubuntu 14.04 中崩溃太频繁。我尝试了那里提出的解决方案,但没有帮助。我什至不知道如何调试这个问题。有什么帮助吗?谢谢!

Chromium 37.0.2062.120 Ubuntu 14.04Google Chrome 38.0.2125.104

编辑

我从终端运行它并收到这些错误。limits.conf今晚将尝试重新启动的方法。

[WARNING:flash/platform/pepper/pep_module.cpp(63)] SANDBOXED
[11401:11401:1028/111248:ERROR:browser_main_loop.cc(206)] /build/buildd/gtk+2.0-2.24.23/gdk/x11/gdkdrawable-x11.c:942 drawable is not a native X11 window (http://bugs.chromium.org/329991)
[11401:11438:1028/111248:ERROR:connection.cc(1060)] AppCache sqlite error 14, errno 0: unable to open database file, sql: SELECT cache_id, url, flags, response_id, response_size FROM Entries  WHERE url = ?
[11401:11438:1028/111248:ERROR:connection.cc(1060)] AppCache sqlite error 14, errno 0: unable to open database file, sql: SELECT cache_id, origin, type, namespace_url, target_url, is_pattern  FROM Namespaces WHERE origin = ?
[417:429:1028/111248:ERROR:webgraphicscontext3d_command_buffer_impl.cc(223)] CommandBufferProxy::Initialize failed.
[417:429:1028/111248:ERROR:webgraphicscontext3d_command_buffer_impl.cc(243)] Failed to initialize command buffer.
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.3tNbYP failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.4i6wXZ failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.ictTW9 failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.hnPgWj failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.xc3EVt failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.5ag4UD failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.YEluUN failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.PDiVTX failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.d48mT7 failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.3pYPSh failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.goJjSr failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.4ZrORB failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.4dHkRL failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.Fq7SQV failed: Too many open files
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.wT20R5 failed: Too many open files
[417:429:1028/111248:ERROR:webgraphicscontext3d_command_buffer_impl.cc(223)] CommandBufferProxy::Initialize failed.
[417:429:1028/111248:ERROR:webgraphicscontext3d_command_buffer_impl.cc(243)] Failed to initialize command buffer.
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.hcPdUf failed: Too many open files
[417:429:1028/111248:ERROR:webgraphicscontext3d_command_buffer_impl.cc(223)] CommandBufferProxy::Initialize failed.
[417:429:1028/111248:ERROR:webgraphicscontext3d_command_buffer_impl.cc(243)] Failed to initialize command buffer.
[11401:11441:1028/111248:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.wuAOYp failed: Too many open files
[417:429:1028/111248:ERROR:webgraphicscontext3d_command_buffer_impl.cc(223)] CommandBufferProxy::Initialize failed.
[417:429:1028/111248:ERROR:webgraphicscontext3d_command_buffer_impl.cc(243)] Failed to initialize command buffer.
[11401:11401:1028/111248:ERROR:ipc_channel_posix.cc(213)] socketpair(): Too many open files
Aborted (core dumped)
Run Code Online (Sandbox Code Playgroud)

Thi*_*ers 4

Chrome 崩溃,因为它无法打开其他文件。

您可以通过增加可能打开的文件数量来解决此问题。

更新/etc/security/limits.conf

* hard nofile 65535
* soft nofile 65535
Run Code Online (Sandbox Code Playgroud)

并重新启动。


krl*_*mlr 2

在按照 Thijs 的建议进行更新之前limits.conf,请尝试一下它是否适合您。在 shell 中,运行:

ulimit -a
Run Code Online (Sandbox Code Playgroud)

检查读取的行open files(或ulimit -n立即运行)。在我的系统上,该值为1024. 退出铬。然后,在同一终端中,发出

ulimit -n 4096
chromium-browser
Run Code Online (Sandbox Code Playgroud)

替换4096为适合您系统的值。您应该能够在此浏览器会话中使用更多选项卡。一旦找到合理的限制,坚持下去limits.conf并重新启动。

参考: