38

Ever since I upgraded to Ubuntu 14.04, Chrome (google-chrome-stable) crashes a lot more often than before.

I do keep several tabs open (>20), but they are all light (no multimedia) and have never caused any problems in the past.

The processor and memory use is pretty low when the browser becomes unresponsive and the whole system is still usable.

Is there an easy fix? Where can I find more logs for a more complete diagnostic?

enter image description here enter image description here

Casper
  • 2,998
  • 10
  • 33
  • 56
  • Just to verify: The only thing that becomes unresponsive is chrome, correct? When chrome dies, does the rest of the computer slow down/crash as well? – Mitch Jul 29 '14 at 13:13
  • Sorry, I forgot to add that only chrome is affected. Everything else keeps working fine. – Ricky Robinson Jul 29 '14 at 13:15
  • That's fine - I just wanted to verify. Is chrome (and everything else) the newest version? (sudo apt-get update && sudo apt-get upgrade) – Mitch Jul 29 '14 at 13:18
  • Yes, everything is up-to-date. – Ricky Robinson Jul 29 '14 at 13:19
  • And my last question: google-chrome-stable or google-chrome-dev? (also, it would be useful to add this information to your original post) – Mitch Jul 29 '14 at 13:21
  • It's google-chrome-stable – Ricky Robinson Jul 29 '14 at 13:22
  • Does chromium fare any better? – amanthethy Jul 29 '14 at 13:36
  • should it? I thought I'd be better off downloading the original browser. I'll try then. – Ricky Robinson Jul 29 '14 at 13:37
  • 1
    Chromium is the original. It's repackaged as Chrome afterwards. – amanthethy Jul 29 '14 at 13:39
  • I'm having the same problem on 12.04, posted video and info here: http://youtu.be/BcQAbHj2c0k --disable-gpu did not fix the issue, error output was ERROR:host_shared_bitmap_manager.cc(144) Cannot create shared memory buffer – Jeff Ward Oct 17 '14 at 13:58
  • How about reinstalling chrome since you didn't make mention of trying this. –  Oct 20 '14 at 01:59
  • curious what extensions you use. I use hangouts, and a quite a few others. When I disable them all... no more crashes. But I get crashes anytime hangouts is enabled, even if it's the only extensions. I also seem to notice behavior that causes it to crash when I move hangouts to a different screen than the chrome window, or if I have two windows open on different screens, only one crashes. – Brian Vanderbusch Nov 01 '14 at 22:53
  • As for extensions, I don't have much at all. Anyways, chrome stopped crashing a couple of months ago... I guess some recent updates fixed it. – Ricky Robinson Nov 02 '14 at 14:44
  • 1
    What was your upgrade path to 14.04? Did you install it fresh or upgrade from 13.10? I am curious as I am still experiencing this issue ~2-3 times a day. – robbmj Feb 16 '15 at 00:13
  • It was an upgrade. The problem I described may very well have been just a conflict between the add-ons I had, I really do not know. I remember having Adblock Plus, which I removed at some point. – Ricky Robinson Feb 16 '15 at 10:28

6 Answers6

19

I have the same problem - try to run it with --disable-gpu flag, like

google-chrome --disable-gpu

also I use three monitors on two nvidia videocards with opened developer tools (I guess this is the reason)

Ivan M
  • 291
  • 2
  • 4
  • 3
    Welcome! Could you add more details, like the symptoms you had? – Volker Siegel Oct 01 '14 at 07:38
  • that's something new! Thanks. I can't find any documentation for that option, though. Could you describe what it does? – Ricky Robinson Oct 01 '14 at 13:08
  • 1
    I think its a bug between nvidia driver and chrome's rendering, because I've got these crashings after drivers installation – Ivan M Oct 01 '14 at 14:26
  • I found what it crashes only with then developer tools open – Ivan M Oct 01 '14 at 19:50
  • 1
    I'm getting this with ATI community drivers so not just Nvidia and also when not having developer tools open. – jowan sebastian Nov 14 '14 at 12:09
  • I'm getting this with Intel HD Graphics and two monitors, this option has helped me – d.k Dec 27 '14 at 04:52
  • 2
    hmmm interesting, I also use multiple monitors with 2 nvidia cards, and also have dev tools open almost all the time. is the --disable-gpu option different to the use hardware acceleration when available option in advanced settings? – Horse Feb 16 '15 at 12:51
  • Turning off "Use hardware acceleration when available" under Settings->Advanced->System solved the problem for me. – talyric Mar 29 '16 at 23:53
  • I have the same issue in XUbuntu 16.04LTS + Chrome 54.0.2840.59. and it looks like disabling the gpu either from the command line or from the advanced settings stabilises the crashes. However, I'm doing NaCl and WebGL work, so this solution isn't good for me :-( – mchiasson Nov 11 '16 at 17:41
5

Check out this post on the Google Chrome Help Forum. However, unlike you, the whole system is hanging. I only post it here because it might help other people who come across your post based on the title you gave it. It looks like the system hanging issue might be something to do with Radeon cards so if you don't have one it might not be relevant to you.

snark
  • 301
3

I've had similar issues with Chromium since upgrading to Ubuntu 14.10. Bumping the limit of open files as in my other answer (by using ulimit in bash or editing limits.conf) seems to resolve the issue for me. Summary:

In a shell, run:

ulimit -a

Check the line that reads open files (or run ulimit -n right away). On my system, the value is 1024. Quit Chromium. Then, in the same terminal, issue

ulimit -n 4096
chromium-browser

Replace 4096 by a value suitable for your system. You should be able to use more tabs in this browser session. Once you have found a reasonable limit, persist it in limits.conf:

*                hard    nofile          4096
*                soft    nofile          4096
  • add a line to /etc/pam.d/common-session*:
session required pam_limits.so
  • logout / reboot to apply changes

References:

krlmlr
  • 3,337
1

I know a solution that worked for me, it seems its related to the shell you are using. I was using gnome-flashback as session instead of Unity. When i uninstalled that and used the default Unity again i had no crashes. This hasn't been confirmed yet but from preliminary tests its the case. So the problem seems to lie with Gnome 3 ? Possibly opensource drivers and Chrome, although i doubt its a problem with chrome.

One more thing ... this occurred only on the 64 bit versions of chrome, thus I believe it might only affect 64 bit systems.

dendi
  • 11
  • 1
  • I also notice the same patterns described here. Not sure if that's the cause, but I don't experience this on any chipset of unity flavors, only gnome flavors of Ubuntu. – Brian Vanderbusch Nov 01 '14 at 22:50
  • 1
    guys im using ubuntu 14.04(64bit) with unity and chrome still crashes and the whole computer hangs – Umar Jan 18 '15 at 06:50
0

He's dead, Jim!

Just isn't as funny as it used to be.

By the way, Chromium tells me:

Boo... You have no extensions :-( Want to browse the gallery instead?

It must be something else -- I've always suspected that this is related either to Flash or to JavaScript run by ads/trackers.

Something that has helped: Open the task manager (shift+esc) and just click the End process button until you've closed everything but Browser and GPU Process (these two can't be closed). Now go back to the websites that were crashing and try again.

After killing all of your tabs in this way, you can go back and reload pages with F5 on an as-needed basis. This is the way web browsers should work anyway -- pages release resources and hibernate when not in use.

Long story short, I think Chromium has moved away from its original sandbox-per-page architecture, so now there is a great-deal of interdependence between running web pages -- and this results in the infamous sad-tab, which tends to come in bunches.

It's hard to keep a web-browser running great over time. I hate to say it (or do it), but sometimes you just have to throw up your hands and go back to Firefox.

  • On a couple of occasions, this has caused my computer to initiate a shut down sequence. I don't have the foggiest idea why. I think there was some kind of "mystery process" in the chromium task manager that shouldn't be shut down. So the modified suggestion is -- go slowly through the list of of processes and be observant about what processes you are terminating. – Brent Bradburn Sep 15 '15 at 18:02
0

To disable GPU, another method is through user settings.

  1. Disable the setting: Use hardware acceleration when available

    chrome://settings/search#hardware%20acceleration
    
  2. After restarting browser, check gpu status

    chrome://gpu
    

    You should see everything set to software.

TJR
  • 153