hp-systray hangs, causing excess CPU usage, after failing to load dbus.

Bug #640876 reported by Boyd Stephen Smith Jr.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Triaged
Undecided
Unassigned

Bug Description

$ hp-systray -l debug

HP Linux Imaging and Printing System (ver. 3.10.6)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp-systray[29208]: debug: Locking: /home/bss/.hplip/hp-systray.lock
hp-systray[29208]: debug: Creating pipe: hpssd (7) ==> systemtray (6)
hp-systray[29208]: debug: Creating pipe: hpssd (8) ==> hpdio (6)
hp-systray[29208]: debug: Creating pipe: hpdio (10) ==> hpssd (9)
hp-systray(hpdio)[29210]: debug: PID=29210
error: dbus failed to load (python-dbus ver. 0.80+ required). Exiting...
hp-systray(qt4)[29208]: debug: PID=29208
hp-systray(qt4)[29208]: debug: Loading user settings...
hp-systray(qt4)[29208]: debug: FAB command: /usr/bin/hp-fab
hp-systray(qt4)[29208]: debug: Scan command: kooka
hp-systray(qt4)[29208]: debug: Auto refresh: False
hp-systray(qt4)[29208]: debug: Auto refresh rate: 30
hp-systray(qt4)[29208]: debug: Auto refresh type: 0
hp-systray(qt4)[29208]: debug: Systray visible: 0
hp-systray(qt4)[29208]: debug: Systray messages: 1
hp-systray(qt4)[29208]: debug: Last used device URI: hp:/net/Photosmart_C8100_series?ip=10.0.0.116
hp-systray(qt4)[29208]: debug: Last used printer:
hp-systray(qt4)[29208]: debug: Working directory: .
hp-systray(qt4)[29208]: debug: Device URI socket://BizHub-C452 is invalid/unknown
hp-systray(qt4)[29208]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-systray(qt4)[29208]: debug: hp:/net/Photosmart_C8100_series?ip=10.0.0.116: back_end:hp is_hp:True bus:net model:Photosmart_C8100_series serial: dev_file: host:10.0.0.116 zc: port:1
hp-systray(qt4)[29208]: debug: Cache miss: photosmart_c8100_series
hp-systray(qt4)[29208]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-systray(qt4)[29208]: debug: Searching for section [photosmart_c8100_series] in file /usr/share/hplip/data/models/models.dat
hp-systray(qt4)[29208]: debug: Found section [photosmart_c8100_series] in file /usr/share/hplip/data/models/models.dat
hp-systray(qt4)[29208]: debug: hp:/net/Photosmart_C8100_series?ip=10.0.0.116: back_end:hp is_hp:True bus:net model:Photosmart_C8100_series serial: dev_file: host:10.0.0.116 zc: port:1
hp-systray(qt4)[29208]: debug: hp:/net/Photosmart_C8100_series?ip=10.0.0.116: back_end:hp is_hp:True bus:net model:Photosmart_C8100_series serial: dev_file: host:10.0.0.116 zc: port:1

Revision history for this message
Boyd Stephen Smith Jr. (bss03) wrote :
Revision history for this message
Boyd Stephen Smith Jr. (bss03) wrote :

In case it is not clear, hp-systray fails to provide any functionality when it hangs like this. It also pegs one CPU at nearly 100%.

Also, if the debug output is a bit noisy, the main error appears to be:
error: dbus failed to load (python-dbus ver. 0.80+ required). Exiting...

Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) wrote :

Thanks for providing clues.

Please run "hp-toolbox -g" post the output when it hangs.
Also, post "hp-systray -g" output when it hangs.

Thanks for reporting with us,
Naga Samrat Chowdary, Narla

Revision history for this message
Boyd Stephen Smith Jr. (bss03) wrote :

% hp-systray -g

HP Linux Imaging and Printing System (ver. 3.10.6)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp-systray[13914]: debug: Locking: /home/bss/.hplip/hp-systray.lock
hp-systray[13914]: debug: Creating pipe: hpssd (7) ==> systemtray (6)
hp-systray[13914]: debug: Creating pipe: hpssd (8) ==> hpdio (6)
hp-systray[13914]: debug: Creating pipe: hpdio (10) ==> hpssd (9)
hp-systray(hpdio)[13917]: debug: PID=13917
error: dbus failed to load (python-dbus ver. 0.80+ required). Exiting...
hp-systray(qt4)[13914]: debug: PID=13914
hp-systray(qt4)[13914]: debug: Loading user settings...
hp-systray(qt4)[13914]: debug: FAB command: /usr/bin/hp-fab
hp-systray(qt4)[13914]: debug: Scan command: kooka
hp-systray(qt4)[13914]: debug: Auto refresh: False
hp-systray(qt4)[13914]: debug: Auto refresh rate: 30
hp-systray(qt4)[13914]: debug: Auto refresh type: 0
hp-systray(qt4)[13914]: debug: Systray visible: 0
hp-systray(qt4)[13914]: debug: Systray messages: 1
hp-systray(qt4)[13914]: debug: Last used device URI: hp:/net/Photosmart_C8100_series?ip=10.0.0.116
hp-systray(qt4)[13914]: debug: Last used printer:
hp-systray(qt4)[13914]: debug: Working directory: .
hp-systray(qt4)[13914]: debug: Device URI socket://BizHub-C452 is invalid/unknown
hp-systray(qt4)[13914]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-systray(qt4)[13914]: debug: hp:/net/Photosmart_C8100_series?ip=10.0.0.116: back_end:hp is_hp:True bus:net model:Photosmart_C8100_series serial: dev_file: host:10.0.0.116 zc: port:1
hp-systray(qt4)[13914]: debug: Cache miss: photosmart_c8100_series
hp-systray(qt4)[13914]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-systray(qt4)[13914]: debug: Searching for section [photosmart_c8100_series] in file /usr/share/hplip/data/models/models.dat
hp-systray(qt4)[13914]: debug: Found section [photosmart_c8100_series] in file /usr/share/hplip/data/models/models.dat
hp-systray(qt4)[13914]: debug: hp:/net/Photosmart_C8100_series?ip=10.0.0.116: back_end:hp is_hp:True bus:net model:Photosmart_C8100_series serial: dev_file: host:10.0.0.116 zc: port:1
hp-systray(qt4)[13914]: debug: hp:/net/Photosmart_C8100_series?ip=10.0.0.116: back_end:hp is_hp:True bus:net model:Photosmart_C8100_series serial: dev_file: host:10.0.0.116 zc: port:1

Revision history for this message
Boyd Stephen Smith Jr. (bss03) wrote :

% hp-toolbox -g

HP Linux Imaging and Printing System (ver. 3.10.6)
HP Device Manager ver. 15.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Traceback (most recent call last):
  File "/usr/bin/hp-toolbox", line 246, in <module>
    from ui4.devmgr5 import DevMgr5
  File "/usr/share/hplip/ui4/devmgr5.py", line 34, in <module>
    from base import device, utils, pml, maint, models, pkit
  File "/usr/share/hplip/base/pkit.py", line 42, in <module>
    import gobject
ImportError: No module named gobject

Revision history for this message
Boyd Stephen Smith Jr. (bss03) wrote :

% aptitude search '~Rhplip-gui' -F '%p%v'
dbus-x11 1.2.24-3
gksu <none>
hplip 3.10.6-1
kdebase-bin 4:4.4.5-1
kdebase-runtime 4:4.4.5-1
kdesudo 3.4.2.3-2
ktsuss <none>
python-qt3 <none>
python-qt4 4.7.3-1+b1
python-qt4-dbus 4.7.3-1+b1
python-reportlab 2.4-1

Revision history for this message
Boyd Stephen Smith Jr. (bss03) wrote :

Installing python-notify, which is recommended by hplip-gui, seems to have fixed the issue. (python-notify also pulled in some other packages as dependencies.) If python-notify (or one of its deps) is required for basic package is should be upgraded to a Depend instead of a Recommend. I consider running hp-toolbox to be fairly basic functionality for the hplip-gui package, but I could be wrong since there are 10 other binaries besides hp-toolbox and hp-systray in that package.

Since printing functionality is handled the hplip package, I expect this "basic functionality" in this package to include at least one X11 (or other GUI) program. If phyon-notify (or one of its deps) is required for all of those, it should be promoted to a Depends.

Finally it would be really nice if hp-systray cleanly failed instead of hanging when python-notify was missing.

Changed in hplip:
status: New → Confirmed
status: Confirmed → Triaged
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.