← Back to team overview

dx-packages team mailing list archive

[Bug 1300722] Re: hud-service is eating up 100% of one of my CPUs in a poll loop

 

This is only going to happen for Qt apps, as they are still using the
old DBusMenu protocol to export their menus.

I've tried running Kate and Kontact, as these are the apps I'm hearing
that trigger this problem. Opening and closing them, switching around,
and generally trying to operate the program hasn't caused it to happen
for me yet. :(

If I could only reproduce this somehow, I could fix it!

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to hud in Ubuntu.
https://bugs.launchpad.net/bugs/1300722

Title:
  hud-service is eating up 100% of one of my CPUs in a poll loop

Status in Unity HUD:
  Confirmed
Status in “hud” package in Ubuntu:
  In Progress

Bug description:
  hud-service is polling like crazy:

  Context Switches:
    PID  Process                Voluntary   Involuntary     Total
                               Ctxt Sw/Sec  Ctxt Sw/Sec  Ctxt Sw/Sec
    2295 hud-service              46084.63        42.94     46127.58 (very high)
    2325 hud-service                  0.09         0.00         0.09 (very low)
    2329 hud-service                  0.07         0.00         0.07 (very low)
    2340 hud-service                  0.05         0.00         0.05 (very low)
   Total                          46084.84        42.94     46127.78

  File I/O operations:
   No file I/O operations detected.

  System calls traced:
    PID  Process              Syscall               Count    Rate/Sec
    2295 hud-service          poll                 999983   23124.8503
    2295 hud-service          write                    10       0.2313
    2295 hud-service          sendmsg                   4       0.0925
    2325 hud-service          restart_syscall           1       0.0231
    2329 hud-service          restart_syscall           1       0.0231
    2340 hud-service          restart_syscall           1       0.0231
   Total                                          1000000   23125.2435

  (gdb) where
  #0  0x00007fda8121cfbd in poll () at ../sysdeps/unix/syscall-template.S:81
  #1  0x00007fda7f1bb4b8 in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
  #2  0x00007fda7f1ba3ff in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
  #3  0x00007fda7f1a49dc in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
  #4  0x00007fda7f1a5464 in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
  #5  0x00007fda82ce9e65 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
  #6  0x00007fda82d2fc64 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
  #7  0x00007fda82d30582 in QDBusPendingCallWatcher::waitForFinished() () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
  #8  0x00007fda83eb940b in DBusMenuImporter::slotMenuAboutToShow() () from /usr/lib/x86_64-linux-gnu/libdbusmenu-qt5.so.2
  #9  0x00007fda8435d2a6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #10 0x000000000045ab3f in hud::service::DBusMenuCollector::openMenu(QMenu*, unsigned int&) ()
  #11 0x000000000045abd8 in hud::service::DBusMenuCollector::openMenu(QMenu*, unsigned int&) ()
  #12 0x000000000045abd8 in hud::service::DBusMenuCollector::openMenu(QMenu*, unsigned int&) ()
  #13 0x000000000045abd8 in hud::service::DBusMenuCollector::openMenu(QMenu*, unsigned int&) ()
  #14 0x000000000045abd8 in hud::service::DBusMenuCollector::openMenu(QMenu*, unsigned int&) ()
  #15 0x000000000045abd8 in hud::service::DBusMenuCollector::openMenu(QMenu*, unsigned int&) ()
  #16 0x000000000045ae8d in hud::service::DBusMenuCollector::activate() ()
  #17 0x0000000000441e43 in hud::service::WindowImpl::activate() ()
  #18 0x0000000000439f6a in hud::service::QueryImpl::updateToken(QSharedPointer<hud::service::Window>) ()
  #19 0x000000000043a672 in hud::service::QueryImpl::refresh() ()
  #20 0x000000000044b115 in ?? ()
  #21 0x00007fda8435d2a6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #22 0x000000000045662a in hud::service::ApplicationListImpl::FocusedWindowChanged(unsigned int, QString const&, unsigned int) ()
  #23 0x00007fda8435d2a6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #24 0x0000000000467361 in ComCanonicalUnityWindowStackInterface::FocusedWindowChanged(unsigned int, QString const&, unsigned int) ()
  #25 0x00000000004678bd in ?? ()
  #26 0x0000000000467c63 in ComCanonicalUnityWindowStackInterface::qt_metacall(QMetaObject::Call, int, void**) ()
  #27 0x00007fda82cf180f in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
  #28 0x00007fda8435e22e in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #29 0x00007fda823d5c2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
  #30 0x00007fda823dadf6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
  #31 0x00007fda84335c2d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #32 0x00007fda84337e07 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #33 0x00007fda84382cd3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
  #34 0x00007fda833dbe04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #35 0x00007fda833dc048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: hud 13.10.1+14.04.20140326-0ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-20.42-generic 3.13.7
  Uname: Linux 3.13.0-20-generic x86_64
  ApportVersion: 2.14-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Apr  1 12:23:11 2014
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2014-03-25 (7 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140323)
  SourcePackage: hud
  UpgradeStatus: No upgrade log present (probably fresh install)

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


References