unity-panel-service uses ~100% CPU when libreoffice-gtk is installed and enabled

Bug #1041354 reported by Jeremy Bícha
204
This bug affects 42 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Fix Released
High
Unassigned
Quantal
Fix Released
High
Unassigned
unity (Ubuntu)
Invalid
Undecided
Unassigned
Quantal
Invalid
Undecided
Unassigned

Bug Description

unity-panel-service takes up most of the CPU, making Unity basically unresponsive. This has happened several times already.

A sudo kill -9 <pid of unity-panel-service did work to get things back under control this time.

I'm also having signficant freeze problems with LibreOffice. Both of these problems started yesterday.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: unity-services 6.2.0-0ubuntu3
ProcVersionSignature: Ubuntu 3.5.0-11.11-generic 3.5.2
Uname: Linux 3.5.0-11-generic x86_64
ApportVersion: 2.5.1-0ubuntu2
Architecture: amd64
CheckboxSubmission: 201084ed41ea7548f8becd47fa4d1e6c
CheckboxSystem: c541d13ea4f205f2fd751f76ed21105b
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
Date: Fri Aug 24 15:48:13 2012
ExecutablePath: /usr/lib/unity/unity-panel-service
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
XsessionErrors:
 (tracker-miner-fs:2333): Tracker-WARNING **: Could not open directory '/home/jeremy/Downloads/backups/www': Permission denied
 (tracker-miner-fs:2333): Tracker-WARNING **: Could not open directory '/home/jeremy/Downloads/backups/log/lighttpd': Permission denied
 (gnome-settings-daemon:2289): color-plugin-WARNING **: Done switch to new account, reload devices
 (gnome-settings-daemon:2289): color-plugin-WARNING **: Done switch to new account, reload devices
 (gnome-settings-daemon:2289): color-plugin-WARNING **: Done switch to new account, reload devices

Revision history for this message
Jeremy Bícha (jbicha) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Bowmore (bowmore) wrote :

Same here, the process unity-panel-service causes high CPU-load and I have experienced LO freezes too today.

It has to do with LO but doesn't seem to be connected to the quickstarter (systray) as:
libreoffice --quickstart=no
still causes high CPU-load.

Revision history for this message
dino99 (9d9) wrote :
Download full text (9.6 KiB)

i'm using libreoffice-calc daily on Quantal i386 with nouveau driver and logged as gnome-classic (no ppa), and i've the same issue: after a while (> 1 hour) i get a core fully occupied (100 %) and ram eated, then complete freeze. Need to kill the process and restart calc.
As you said soffice.bin process reproduce that issue even if the user does nothing, simply open it and that trouble comes up by itself.

So its clearly a libreoffice issue and not an unity one, as unity is fully purged on my system.

Opening it from a terminal gives some errors:

[CODE]

oem@dub:~$ sudo libreoffice-calc
sudo: libreoffice-calc: command not found
oem@dub:~$ sudo libreoffice
Fontconfig warning: "/usr/lib/libreoffice/share/fonts/truetype/fc_local.conf", line 13: Having multiple <family> in <alias> isn't supported and may not works as expected
g_lo_action_group_set_action_enabled - .uno:AddDirect
g_lo_action_group_set_action_enabled - .uno:RecentFileList
g_lo_action_group_set_action_enabled - .uno:AutoPilotMenu
g_lo_action_group_set_action_enabled - .uno:AvailableToolbars
g_lo_action_group_set_action_enabled - .uno:ScriptOrganizer
g_lo_action_group_set_action_enabled - .uno:AddDirect
g_lo_action_group_set_action_enabled - .uno:RecentFileList
g_lo_action_group_set_action_enabled - .uno:AutoPilotMenu
g_lo_action_group_set_action_enabled - .uno:Save
g_lo_action_group_set_action_enabled - .uno:SaveAs
g_lo_action_group_set_action_enabled - .uno:SaveAll
g_lo_action_group_set_action_enabled - .uno:SendMail
g_lo_action_group_set_action_enabled - .uno:SetDocumentProperties
g_lo_action_group_set_action_enabled - .uno:Print
g_lo_action_group_set_action_enabled - .uno:PrinterSetup
g_lo_action_group_set_action_enabled - .uno:AddressBookSource
g_lo_action_group_set_action_enabled - .uno:SaveAsTemplate
g_lo_action_group_set_action_enabled - .uno:Undo
g_lo_action_group_set_action_enabled - .uno:Cut
g_lo_action_group_set_action_enabled - .uno:Copy
g_lo_action_group_set_action_enabled - .uno:Paste
g_lo_action_group_set_action_enabled - .uno:AvailableToolbars
g_lo_action_group_set_action_enabled - .uno:StatusBarVisible
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .uno:MacroRecorder
g_lo_action_group_set_action_enabled - .uno:ScriptOrganizer
g_lo_action_group_set_action_enabled - .uno:NewWindow
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .cmd:RestoreVisibility
g_lo_action_group_set_action_enabled - .uno:AddDirect
g_lo_action_group_set_action_enabled - .uno:RecentF...

Read more...

Revision history for this message
Bowmore (bowmore) wrote :

It seems to be a menubar issue.

After dectivating globalmenu by removing the packages:
appmenu-gtk, appmenu-qt, appmenu-gtk3, indicator-appmenu
CPU-load is back to normal again.

Revision history for this message
Felix Möller (felix-derklecks) wrote :

Another option is to remove libreoffice-gtk. This leaves the global menu for the rest of the desktop...

Revision history for this message
Allison Karlitskaya (desrt) wrote :

The new libreoffice upload is causing this. It updates its menubar once per second, which it does by completely removing and readding all menu items and actions. The resulting thrash is what causes the panel to use 100%.

They're working on it...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in appmenu-gtk (Ubuntu):
status: New → Confirmed
Changed in libreoffice (Ubuntu):
status: New → Confirmed
dino99 (9d9)
no longer affects: df-libreoffice
Revision history for this message
nameremoved (errorwhywhywhy-deactivatedaccount) wrote :

This bug affects me constantly, causing my computer to freeze irrocoverably.

Revision history for this message
penalvch (penalvch) wrote :

Jeremy Bicha, thank you for reporting this and helping make Ubuntu better. Could you please execute the following in a terminal:
apport-collect -p libreoffice 1041354

As well, do you have lo-menubar and/or libreoffice-gtk installed? If so, if you uninstall either or both, does the CPU continue to go to 100%?

Changed in libreoffice (Ubuntu):
status: Confirmed → Incomplete
no longer affects: appmenu-gtk (Ubuntu)
Revision history for this message
dino99 (9d9) wrote :

finally got a libreoffice crash, reported as bug #1041865

it is on Quantal i386 logged as gnome-classic (unity purged & no ppa around). I have libreoffice-gtk installed, as removing it is not a solution (menu icons unusable) but seems related with this issue.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

As was mentioned in the other bug report, this isn't specific to Unity. I have been having problems in GNOME Shell also.

Revision history for this message
Omer Akram (om26er) wrote :

not a unity bug, rather libreoffice. Closed the unty bug.

Changed in unity (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
royden (ryts) wrote :

@penalvch:

"As well, do you have lo-menubar and/or libreoffice-gtk installed? If so, if you uninstall either or both, does the CPU continue to go to 100%?"

No with both uninstalled CPU does not rise to 100%.

I assume with Ryan Lortie's (desrt) news there is no need for the "apport-collect -p libreoffice 1041354"?

Revision history for this message
dino99 (9d9) wrote :

lo-menubar is not installed on my system. But removing libreoffice-gtk is not a usable solution as icons become inactive.

Changed in libreoffice (Ubuntu):
status: Incomplete → Confirmed
dino99 (9d9)
summary: - unity-panel-service since yesterday uses ~100% CPU, may be related to
- LibreOffice
+ Libreoffice-gtk since yesterday uses ~100% CPU
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote : Re: unity-panel-service since yesterday uses ~100% CPU when libreoffice-gtk is installed and enabled

@ryts: No need for apport-collect anymore.

summary: - Libreoffice-gtk since yesterday uses ~100% CPU
+ unity-panel-service since yesterday uses ~100% CPU when libreoffice-gtk
+ is installed and enabled
Changed in libreoffice (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-12.10-beta-1
Revision history for this message
Roland (Rolandixor) Taylor (rolandixor) wrote :

I removed libreoffice-gtk and lo-menubar and the problem is gone for me too.

Revision history for this message
Roland (Rolandixor) Taylor (rolandixor) wrote :

I forgot to add, icons are still active for me. Of course, LibreOffice is now ugly, but at least I can work on my novel now :).

Revision history for this message
Graham Lucking (lucking) wrote :

I have this on a fresh install from the 29/08/2012 ISO image. Using the top command and system monitor i saw that when Libreoffice (Writer) is loaded it loads soffice.bin and something called unity-panel-ser. Close Libreoffice and unity-panel-ser disappears from the top readout.

When unity-panel-ser firsts loads it uses 30% CPU and 3% MEM. After 1 minute it is at 99% CPU and 8% MEM. After 10 minute it is at 97-100% CPU and 24% MEM. It is running 1 core of this dual core CPU at 100% and the memory usage is increasing.

At this point the desktop is not updating and applications windows cannot be closed nor are the menu options available. It takes a hard re-set to shutdown the system. This is with Libreoffice 3.6.0.2 Build ID: 360m1 (Build 102).

Regards.

Omer Akram (om26er)
summary: - unity-panel-service since yesterday uses ~100% CPU when libreoffice-gtk
- is installed and enabled
+ unity-panel-service uses ~100% CPU when libreoffice-gtk is installed and
+ enabled
Revision history for this message
dino99 (9d9) wrote :

Ugrading to the newest 3.6.1-rc2-1ubuntu1 bring an other issue: no more menu, only icons when logged as gnome-classic.
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1044666

Revision history for this message
jerrylamos (jerrylamos) wrote :

With Quantal & Firefox, newspaper article with a couple hundred small jpg's selected & copied. Unity Quantal Libre Write pasted article. Loaded slowly. Selected one object Libre froze. Some time later Apport automatically processed bug then recognized it as a duplicate.

sudo apt-get install lxde on top of the same Quantal. pasted the same document in, reasonable load time considering. Deleted out some extra obkects, copied in another whole batch of pictures, deleted extra objects, saved, ran for some time, no problem.

Libre Write & Quantal ran fine with different desktop LXDE.

Jerry

Revision history for this message
Bowmore (bowmore) wrote :

Just upgraded to libreoffice 1:3.6.1~rc2-1ubuntu3 which seems ro have solved this load issue.

However, LO does nolonger respect disabling of the globalmenu (UBUNTU_MENUPROXY=0) and still draws the menubar in the unity panel. This in turn leaves other shells, e.g gnome classic, without an LO menubar, see bug #1044657.

Revision history for this message
dino99 (9d9) wrote :

3.6.1~rc2-1ubuntu3 is a no go on gnome-classic (cant upgrade without removing the previous version)

As 3.6.1 is out now and works out-of-the-box, i hope ubuntu will go ahead asap & drop these rc versions.

Revision history for this message
Sebastien Bacher (seb128) wrote :

it should be fixed in quantal with that update:

libreoffice (1:3.6.1~rc2-1ubuntu1) quantal-proposed; urgency=low

  * version bump for quantal main including upstream, debian and unitymenu
    fixes
  * update unitymenus to commit 91f332524f3b632b3e96d69921e2593c161f0ea5

Changed in libreoffice (Ubuntu Quantal):
status: Confirmed → Fix Released
Revision history for this message
Greg Stachowski (greg-stachowski) wrote :

It's nice that there's a fix for Quantal, now how do we get (request) a fix for Precise?

Revision history for this message
Miguelángel León (migueleonm) wrote :

I must add that in my system unity-panel-service and unity-sync-service both takes a lot of CPU, sometimes global menu and indicators displays several seconds after I clicked them. Til this date, my system is up to date, quantal beta 2

Revision history for this message
Greg Lynch (gregalynch) wrote :

I seem to be having this problem on Raring. LO writer has frozen and then crashed on me three times now, and during the last one I noticed in system monitor that unity-panel-service spiked in its CPU usage right when the crash happened

Revision history for this message
penalvch (penalvch) wrote :

Greg Stachowski, thank you for your comments. You would want to test if the LibreOffice PPA would work for you in Precise via https://launchpad.net/~libreoffice/+archive/libreoffice-4-0?field.series_filter=precise .

Miguelángel León, thank you for your comments. This bug report is not about your problem, but the one reported by Jeremy Bicha. If you have a bug in LibreOffice, the LibreOffice Packaging team, LibreOffice in Ubuntu team, Ubuntu Bug Control team, and Ubuntu Bug Squad would like you to please file a new report by executing the following in a terminal:
ubuntu-bug libreoffice

For more on this, please see the LibreOffice Debugging article:
https://wiki.ubuntu.com/LibreOfficeBugWrangling

the Ubuntu Bug Control team and Ubuntu Bug Squad team article:
https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue

and Ubuntu Community article:
https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Please note, not filing a new report would delay your problem being addressed as quickly as possible.

Greg Lynch, thank you for your comments. You would have a different problem then that reported by Jeremy Bicha. Hence, could you please follow these instructions to have apport report a new bug about your crash that can be dealt with by the automatic retracer. First, execute at a terminal:
cd /var/crash && sudo rm * ; sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y install libreoffice-dbg uno-libs3-dbg ure-dbg && sudo service apport start force_start=1

If you are running the Ubuntu Stable Release you might need to enable apport in /etc/default/apport and restart.

Now reproduce the crash, then open your file manager, navigate to your /var/crash directory and open the crash report you wish to submit.
If this fails you will have to open a terminal and file your report with 'ubuntu-bug /var/crash/_my_crash_report.crash' where _my_crash_report.crash is the crash you would like to report. If you get an error that you aren't allowed to access this report you will have to file it with 'sudo ubuntu-bug /var/crash/_my_crash_report.crash'. If you run the command against the crash report and it does nothing, you may be affected by https://bugs.launchpad.net/ubuntu/+source/apport/+bug/994921 . In order to WORKAROUND this, one would need to open the following file via a command line:
gksudo gedit /etc/apport/crashdb.conf

and comment out the line:
'problem_types': ['Bug', 'Package'],

by changing it to:
# 'problem_types': ['Bug', 'Package'],

Save, close, and try to file the crash report again via:
ubuntu-bug /var/crash/_my_crash_report.crash

Please follow https://wiki.ubuntu.com/LibreOfficeBugWrangling when you file this crash report so the necessary information is provided.

Thank you for your understanding.

Helpful bug reporting tips:
https://help.ubuntu.com/community/ReportingBugs

Revision history for this message
mateamargo (mateamargo) wrote :

For me it happens every time I try to copy files to my pen drive. The difference I see in the panel is the copy file progress within the folder icon.
While the copy is in progress, the unity-panel-service takes almost the 100% of the CPU usage.

I have a laptop with an NVIDIA graphic card running on 13.10.

Revision history for this message
penalvch (penalvch) wrote :

mateamargo, please file a new report via a terminal:
ubuntu-bug unity

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.