Chromium 和 Chrome 崩溃过于频繁(Ubuntu 14.04)

Chromium 和 Chrome 崩溃过于频繁(Ubuntu 14.04)

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

无论如何,当我重新打开它们时,我会看到带有恢复选项的主页。我单击“恢复”,所有内容开始加载,然后它再次冻结并崩溃,然后所有内容都关闭了。所以我根本无法恢复会话。(顺便问一下,有没有办法可以获取我打开过的网站列表?我无法恢复 chrome 或 chromium,否则它们会崩溃,所以我无法访问我的任何选项卡。)

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

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)

答案1

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

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

更新 /etc/security/limits.conf

* hard nofile 65535
* soft nofile 65535

并重新启动。

答案2

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

ulimit -a

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

ulimit -n 4096
chromium-browser

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

参考:

答案3

我也遇到了同样的问题。在 Google 上搜索后,我发现了这一点邮政这解决了我的问题。也许你应该试一试。

相关内容