hp-systray has high CPU usage - Ubuntu Intrepid

Bug #305807 reported by Daniel Saunders
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
Undecided
Unassigned

Bug Description

I have an Ubuntu Intrepid server* connected to an HP 3330 MFP printer via USB (though the same thing happened when connected via. the Parallel Port). After some time, the server becomes slow, and looking at the output from 'top' shows that the hp-systray process is taking between 80-100% of CPU power.

I think that this is a repost of this bug - http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/882464ff7d6e8de1

hplip version is 2.8.7-0ubuntu6

* Server is also a mythtv backend/frontend, running XFCE4 as its desktop environment.

Revision history for this message
Michal Sojka (sojkam1-fel) wrote :

Hi,

I'm experiencing this problem now with hplip 3.9.2-1 in debian unstable. If I do strace -p
<pid>, I can see:

read(7, "", 236) = 0
select(8, [7], [], [7], {1, 0}) = 1 (in [7], left {0, 999997})
read(7, "", 236) = 0
select(8, [7], [], [7], {1, 0}) = 1 (in [7], left {0, 999997})
read(7, "", 236) = 0
select(8, [7], [], [7], {1, 0}) = 1 (in [7], left {0, 999997})
read(7, "", 236) = 0
select(8, [7], [], [7], {1, 0}) = 1 (in [7], left {0, 999997})
read(7, "", 236) = 0
select(8, [7], [], [7], {1, 0}) = 1 (in [7], left {0, 999997})
read(7, "", 236) = 0
select(8, [7], [], [7], {1, 0}) = 1 (in [7], left {0, 999997})
read(7, "", 236) = 0
...

I used gdb to track it down:
(gdb) bt
#0 posix_read (self=0x0, args=0x83a1fcc) at ../Modules/posixmodule.c:6101
#1 0x080ced6a in PyEval_EvalFrameEx (f=0x8313ddc, throwflag=0) at
../Python/ceval.c:3612
#2 0x080d00c5 in PyEval_EvalCodeEx (co=0xb7b7f7b8, globals=0x8381acc,
locals=0x0, args=0x81790b8, argcount=2, kws=0x81790c0, kwcount=0,
defs=0x8383118, defcount=2, closure=0x0)
    at ../Python/ceval.c:2875
#3 0x080ce9fc in PyEval_EvalFrameEx (f=0x8178f7c, throwflag=0) at
../Python/ceval.c:3708
#4 0x080d00c5 in PyEval_EvalCodeEx (co=0xb7f0ea88, globals=0xb7f5eacc,
locals=0xb7f5eacc, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0)
    at ../Python/ceval.c:2875
#5 0x080d02d7 in PyEval_EvalCode (co=0xb7f0ea88, globals=0xb7f5eacc,
locals=0xb7f5eacc) at ../Python/ceval.c:514
#6 0x080ed71f in PyRun_FileExFlags (fp=0x816e008, filename=0xbfbb8b8d
"/usr/bin/hp-systray", start=257, globals=0xb7f5eacc, locals=0xb7f5eacc,
closeit=1, flags=0xbfbb7548)
    at ../Python/pythonrun.c:1273
#7 0x080ed9ea in PyRun_SimpleFileExFlags (fp=0x816e008,
filename=0xbfbb8b8d "/usr/bin/hp-systray", closeit=1, flags=0xbfbb7548)
at ../Python/pythonrun.c:879
#8 0x08059357 in Py_Main (argc=1, argv=0xbfbb7614) at ../Modules/main.c:532
#9 0x08058722 in main (argc=0, argv=0xb7c75ec8) at ../Modules/python.c:23

The problematic place in python source is here:
(gdb) pyframe
/usr/share/hplip/hpdio.py (94): run

Since the read() reads a pipe and returns 0, probably the other end of
pipe was closed. The pipe is created at systray.py:122 and is used to
communicate with something called hpssd (see lines 134 and 141). So I
guess there is some problem with the hpssd, which is not correctly
handled in hpdio.py.

Regards
Michal Sojka

Revision history for this message
Michal Sojka (sojkam1-fel) wrote :

Debian bug report with information on my setup can be found at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519696

Revision history for this message
dwelch91 (dwelch91) wrote : Re: [Bug 305807] Re: hp-systray has high CPU usage - Ubuntu Intrepid

A patch was released to address this issue:

http://sourceforge.net/project/showfiles.php?group_id=149981&package_id=165777&release_id=662527

On 3/14/09, Michal Sojka <email address hidden> wrote:
>
> Debian bug report with information on my setup can be found at
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519696
>
>
> --
> hp-systray has high CPU usage - Ubuntu Intrepid
> https://bugs.launchpad.net/bugs/305807
> You received this bug notification because you are a member of HP Linux
> Imaging and Printing, which is subscribed to HPLIP.
>

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :

Patch will be in the next release of HPLIP (after 3.9.2) and the patch was posted to Sourceforge.

Aaron

Changed in hplip:
assignee: nobody → kalosaurusrex
status: New → Fix Released
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.