← Back to team overview

dx-packages team mailing list archive

[Bug 1076393] Re: Unity freezes when a program uses a lot of CPU and I hover an item on the launcher

 

The description of the bug fits ongoing problems I have experienced in
Ubuntu 12.04 for several months.

When several programs are running (Thunderbird, Chromium and evince are
frequently used on my system) compiz seems to stop responding. The
cursor continues to move with the mouse movement but the rest of the
screen is inactive and unresponsive to input. The keyboard is
unresponsive except that I can ctrl-Fn to another terminal and pull up
sudo top. It seems there is little activity but compiz is active.
Nothing seems to be abnormal except the X-window display is unresponsive
as described.

My solution has been to kill compiz with signal 3. When returning to the
X-window (ctrl-F7 typically) the interface will reset and allow me to
continue to work after the screen redraws. Compiz restarts itself and
the applications I had open redraw albeit not in the same position or
retaining their virtual window space.

 If X-windows becomes unresponsive again (except for the cursor) I can
switch to the terminal and kill compiz again. At some point this will
fail to work and something about compiz restarting itself seems to fail.
Apport never gets involved as there is no crash (I'm not sure how to
trigger apport to report the issue).

If this quasi-crash or freeze happening to others it may be unreported
and lead to user frustration and abandonment of compiz based interfaces
or ubuntu altogether. My suggestion is to formalize the python script
suggested by Davideddu.

I have been using this solution over the last 9 to 12 months. In the
last week after my latest aptitude upgrade I have had to use this rescue
method at typically twice an hour. The latest trigger seems to be  when
evince (3.4.0-0ubuntu1) is trying to startup or render a pdf.

This problem could use some heat. I'd like to help but am not sure how I
can.

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1076393

Title:
  Unity freezes when a program uses a lot of CPU and I hover an item on
  the launcher

Status in Compiz:
  New
Status in Unity:
  New
Status in “compiz” package in Ubuntu:
  Confirmed
Status in “unity” package in Ubuntu:
  Confirmed

Bug description:
  When an application suddenly starts using a lot of CPU (e.g. when I
  import the favourites with Firefox from a big HTML file), Unity thinks
  that the program doesn't respond to commands, and the window becomes
  gray. Though, if I click a button in the window, it works. But if I
  move the pointer on the launcher while the window is gray, Compiz
  stops responding, the window becomes unresponsive but there isn't any
  hard disk activity. I can move the mouse and switch to a TTY. If I run
  "top" in the tty, I don't see any strange activity. If I kill compiz
  and start another window manager (like Metacity), I can continue using
  the program: I'm reporting the bug with Firefox and Metacity...

  Another user noticed this behavior, so I made a python script for him
  to analyze the activity with Unity and KDE while Chrome is starting.
  Look at the attachments. "Memoria" means "Memory", "Utilizzo CPU"
  means "CPU usage", "Rete"= Network, Trasmessi=sent, Ricevuti=received,
  "Variazione dei processi" is the diff between two instances of "ps",
  "Utilizzo risorse da parte di Compiz" was meant to monitor compiz, but
  it didn't work.

To manage notifications about this bug go to:
https://bugs.launchpad.net/compiz/+bug/1076393/+subscriptions