baobab eats 80% of CPU when its window loses focus
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | baobab (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
Steps to reproduce:
1. Run Baobab
2. Have it index some directory
3. Wait for it to finish
4. Open 'top' in a terminal
5. Focus the Baobab window, look at the CPU usage of the /usr/bin/baobab --gapplication-
6. Focus some other window, look at the CPU usage of the /usr/bin/baobab --gapplication-
7. Repeat steps 5 and 6 until the pattern becomes clear
Expected results:
CPU usage is low in both step 5 and 6.
Actual results:
CPU usage in step 5 is 0. In step 6 it rises to 80% of one core.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: baobab 3.16.1-1ubuntu1
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Oct 30 08:40:48 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-07-25 (1191 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: baobab
UpgradeStatus: Upgraded to wily on 2015-10-22 (7 days ago)
| Marius Gedminas (mgedmin) wrote : | #1 |
| Marius Gedminas (mgedmin) wrote : | #2 |
| Marius Gedminas (mgedmin) wrote : | #3 |
I installed baobab-dbgsym and tried a couple of system-wide profilers (sysprof; perf top -g). They don't see any symbols in baobab :(
perf report --sort comm,dso shows this:
Children Self Command Shared Object ◆
+ 51,13% 0,00% baobab [unknown] ▒
+ 42,56% 40,07% baobab libgtk-
+ 9,39% 9,35% baobab libglib-
+ 9,34% 8,99% baobab libgobject-
+ 6,95% 6,56% baobab libc-2.21.so ▒
+ 6,70% 0,00% Xorg [unknown] ▒
+ 6,63% 6,50% Xorg intel_drv.so ▒
+ 4,30% 4,20% baobab libcairo.
+ 3,84% 0,00% gnome-shell [unknown] ▒
+ 2,96% 2,95% swapper [kernel.kallsyms] ▒
+ 2,91% 0,22% gnome-shell libc-2.21.so ▒
+ 2,80% 2,56% Xorg [kernel.kallsyms] ▒
+ 2,78% 0,39% gnome-shell [kernel.kallsyms] ▒
+ 2,75% 1,03% Xorg libc-2.21.so ▒
+ 2,42% 0,01% gnome-shell [drm] ▒
+ 2,42% 2,38% gnome-shell [i915] ▒
+ 1,86% 0,01% EMT libc-2.21.so ▒
+ 1,75% 1,75% EMT [vboxpci] ▒
+ 1,68% 1,63% Xorg Xorg ...
| Marius Gedminas (mgedmin) wrote : | #4 |
I cannot reproduce with baobab 3.18.1-


I cannot reproduce this with an upstream build of Baobab 3.18.1, but then again I also do not see any upstream commits that could've been bugfixes for this.