Google Chrome briefly hangs before rendering a new tab

6,425

Solution 1

I encountered a similiar behaviour with tabs that weren't (pre)rendered in the background anymore and sometimes not even when brought up front. Fortunately I remembered having activated the GPU-Compositing in about:flags (which worked fine until one or two weeks ago). Disabeling it again solved this issue.

Solution 2

I just now also tracked down another issue with libcairo2 currently in Debian Sid. See Debian bug #682308.

With cairo-1.12.0, there is a regression bug causing tab switching and new tabs opening in Google Chrome and Chromium to stall significantly and spike xorg CPU usage.

Three different workarounds are mentioned in the bug report, awaiting an upstream fix:

  • Running

    nvidia-settings -a InitialPixmapPlacement=0
    
  • Pinning package to version 1.10.2-7.
  • Building recent libcairo with patch changing src/cairo-xlib-display.c by setting display->buggy_gradients to be always TRUE (from a post on the Debian forums) (consider pinning it too, in case future libcairo2 updates still lack the fix).

This finally solved my issues.

UPDATE

This is supposedly fixed in Nvidia driver 304.30 released 2012-07-30. From the changelog (not yet online, due to NvNews recently being hacked recently and Nvidia's own page not hosting the changelog specifically, but it is inside the binary package they provide):

- Fixed a problem where RENDER Glyphs operations would exhibit severe
  performance issues in certain cases, such as when used with gradients
  by Cairo and Chromium.

UPDATE 2

...and now this driver version has hit Debian Unstable, at least.

Share:
6,425

Related videos on Youtube

Anton Nikolayevich
Author by

Anton Nikolayevich

Updated on September 18, 2022

Comments

  • Anton Nikolayevich
    Anton Nikolayevich over 1 year

    Whenever I want to switch to a tab other than the one that is being rendered, Chrome hangs for about 2 seconds before rendering the new tab. This occurs whenever a new tab has to be showed, such as clicking the "New Tab" button, or closing the current tab.

    Here's my version information:

    Google Chrome 14.0.835.163 (Official Build 101024)

    OS:Linux (Ubuntu 11.04)

    WebKit 535.1 (branches/chromium/835@94713)

    The only extension I use is AdBlock, and disabling it had no effect.

    This has only been occurring to me since I updated to the most recent version of Chrome.

    Any idea of what's going on?

    • Duijf
      Duijf over 12 years
      Have you tried disabling the default "New Tab"-Page? You can do so with the extension "New Tab Redirect". Try changing it to about:blank. Does it make any difference?
    • Anton Nikolayevich
      Anton Nikolayevich over 12 years
      I'm not sure if I was clear. This happens even if I have two tabs open, say one on www.google.com, and another on www.youtube.com, and I want to switch from one to the other (also, the problem doesn't depend on the content of the tabs: I can have two tabs on about:version, and switching between them causes the delay).
    • Duijf
      Duijf over 12 years
      As far as I was able to see, there were no bug reports about this problem. Could it be a conflicting application?
    • Anton Nikolayevich
      Anton Nikolayevich over 12 years
      Perhaps, even though this occurs also when not much else is running. Just before I updated Chrome (which caused the issue), I installed gcc-4.4, g++-4.4 and their dependencies (giving me two versions of both gcc and g++: 4.4 and 4.5). However, doing this on a live cd didn't cause any problems, so I guess the two installed versions of gcc and g++ aren't what's causing the problem. Also, I just installed Chromium, and the problem does not exist there.
    • Daniel Andersson
      Daniel Andersson about 12 years
      My issue still stands, and I can't find any reasons. I even tried downgrading to a version where I know it did not happen (both Chrome and the Nvidia driver), and it happened there as well. I tried Chromium and it was the same thing. And the bug reports mentioning this at Google seem to be getting no responses. Anyone with an idea of what could be causing it?
  • mowwwalker
    mowwwalker almost 11 years
    Weird, this REALLY speeded up the rendering process on Chrome.