Bug 11294 - hplip-gui causes applet.py to eat 100% CPU usage
Summary: hplip-gui causes applet.py to eat 100% CPU usage
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: High major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: 4RC 4errata
Keywords: NO_PATCH, UPSTREAM
Depends on:
Blocks:
 
Reported: 2013-09-26 17:37 CEST by Tamás Hajdu
Modified: 2015-07-14 20:40 CEST (History)
9 users (show)

See Also:
Source RPM: hplip, nvidia
CVE:
Status comment:


Attachments
top showing the 2 faulty process (79.30 KB, image/png)
2013-10-03 14:19 CEST, Tamás Hajdu
Details

Description Tamás Hajdu 2013-09-26 17:37:35 CEST
Description of problem:
When applet.py runs, it uses one cpu at 100% constantly.
Running it from console does the same thing.

This (similar) output keeps recurring on strace output:
recvmsg(4, 0x7fff04d566a0, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvfrom(5, 0x113ad74, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN}, {fd=7, events=POLLIN}, {fd=4, events=POLLIN}], 5, 0) = 1 ([{fd=6, revents=POLLIN}])
recvfrom(5, 0x113ad74, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN}, {fd=7, events=POLLIN}, {fd=4, events=POLLIN}], 5, 4294967295) = 2 ([{fd=6, revents=POLLIN}, {fd=4, revents=POLLIN}])
read(6, "\3\0\0\0\0\0\0\0", 16)         = 8
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"l\4\1\1$\0\0\0a(\0\0\265\0\0\0\1\1o\0(\0\0\0/org/kde"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 236
write(6, "\1\0\0\0\0\0\0\0", 8)         = 8

Version-Release number of selected component (if applicable):
1.3.12

How reproducible:
always

Steps to Reproduce:
1. install cauldron
2. run for ex kde 
3. see constant 100% cpu used by applet.py


Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2013-09-27 21:25:41 CEST
a task manager can't tell you from where this come ?

Keywords: (none) => NEEDINFO

Comment 2 Tamás Hajdu 2013-09-28 00:16:50 CEST
I am sorry, but I don't really understand that. What should I post to give better sight of the issue?
Comment 3 Tamás Hajdu 2013-09-28 10:13:59 CEST
This day a new sympton arose. Now not just the applet.py takes 100%, but an other python process does the same.
Comment 4 Tamás Hajdu 2013-09-28 10:22:05 CEST
I have one configured printer, which is on an other box (shared from a windows)
Comment 5 Tamás Hajdu 2013-09-28 10:29:50 CEST
In MCC, I have tried to change it's config (the printer configured is no longer available on my network) and CUPS says this:
CUPS server error
Comment 6 Tamás Hajdu 2013-09-28 10:31:05 CEST
There was an error during the CUPS operation: 'Transport endpoint is not connected'.

It is just an idea, but isn't it possible that applet.py is eating up CPU while it tries to connect to a printer which can't be connected?
Comment 7 Tamás Hajdu 2013-09-28 10:33:03 CEST
I have removed the printer from the system, applet.py still eats up the CPU.
Comment 8 Manuel Hiebel 2013-10-03 12:20:17 CEST
there was a cups update, still valid ?
Comment 9 Tamás Hajdu 2013-10-03 14:17:24 CEST
Installed all updates, rebooted my box, but sadly it is the same. I attach a small screenshot from top. If you need anything that could help in debugging please post it.
Comment 10 Tamás Hajdu 2013-10-03 14:19:14 CEST
Created attachment 4402 [details]
top showing the 2 faulty process
Manuel Hiebel 2013-10-03 18:12:18 CEST

Keywords: NEEDINFO => (none)
Priority: Normal => release_blocker
CC: (none) => thierry.vignaud

Comment 11 Tamás Hajdu 2013-10-10 13:40:32 CEST
With the latest updates, applet.py is no longer eating up CPU, but still there is an other python process which does.
Comment 12 Tamás Hajdu 2013-11-07 18:13:57 CET
Still no change with the latest updates.

It is really only happening on my system?
Tamás Hajdu 2013-11-07 18:14:36 CET

Hardware: i586 => x86_64

Comment 13 Jess Neri 2013-11-16 18:42:15 CET
python is using 100% of my processor, too.  

I only have Firefox and MCC running while I try to fix a "waiting for printer to become available error", which arose when I switched to Cauldron.  The printer is an Epson Stylus C88+.

CC: (none) => jneri

Comment 14 Jess Neri 2013-11-19 16:03:49 CET
Thank you.  

The latest update has allowed me to once again auto-locate my usb printer and eliminated the "waiting for printer to become available" error.
Olav Vitters 2013-11-20 00:08:46 CET

CC: (none) => olav

Comment 15 Florian Bauer 2013-12-02 18:10:14 CET
on my system (MGA4 64bit cauldron) there's also a pyhton process running at full load (one cpu core at 100%). I can't say which python-script is running as the "top" doesn't give me this information.
Killing the process solves the issue temporarly. 
Maybe it's some MCC thing like checking for updates??

CC: (none) => alfaflo

Comment 16 Thierry Vignaud 2013-12-02 20:07:20 CET
No it's not.

"ps awx" is your friend for getting the full script path.
or "ls -ld /proc/<pid>/cwd"0
Comment 17 Florian Bauer 2013-12-05 17:35:30 CET
thanks for the hint.
it's hp-systray which causes the high cpu load

ps awx | grep python
2338 ?        Rs    16:04 python /usr/bin/hp-systray -x

top
 2338 florian   20   0  555m  73m  37m R  100  2.4  18:14.90 python
Comment 18 Thierry Vignaud 2013-12-19 12:37:20 CET
Could you upgrade to system-config-printer-1.4.2-11 then restart your session and see if the bug is fixed?

Keywords: (none) => NEEDINFO

Comment 19 Tamás Hajdu 2013-12-20 09:59:18 CET
Will do that when I got back from work.
Comment 20 Tamás Hajdu 2013-12-21 12:57:56 CET
The bug still persists. After updating everything hp-systray still eats up cpu.
Helge Hielscher 2014-01-06 09:52:45 CET

CC: (none) => hhielscher

Comment 21 Manuel Hiebel 2014-01-08 19:57:31 CET
seen that it also affect users in a forums :/

Keywords: NEEDINFO => (none)
Whiteboard: (none) => 4RC

Comment 22 pat leny 2014-01-08 21:25:46 CET
i confirm that hp-systray -x causes the high cpu load
my system-config-printer is the 1.4.3
bye

CC: (none) => pleny29

Comment 23 pat leny 2014-01-08 21:40:49 CET
I have solved my pb when i have erased the package Hplip-gui
bye
Thierry Vignaud 2014-01-08 22:54:19 CET

CC: (none) => doktor5000
Summary: applet.py causes 100% CPU usage => hplip-gui causes applet.py to eat 100% CPU usage
Source RPM: system-config-printer-1.3.12-6.mga3 => system-config-printer-1.3.12-6.mga3, hplip

Comment 24 Florian Hubold 2014-01-08 23:44:04 CET
(In reply to Florian Bauer from comment #15)
> on my system (MGA4 64bit cauldron) there's also a pyhton process running at
> full load (one cpu core at 100%).

What printer do you use, and is it directly connected to your box?


FWIW, there's a report open about a similar issue upstream: https://bugs.launchpad.net/hplip/+bug/391570

Only thing I could do is probably to disable systray icon, as this had been disabled for quite some time before (as it seems to have caused some issues in the past).
Comment 25 Florian Bauer 2014-01-09 19:38:48 CET
I've also uninstalled the hplip-gui to "solve" my problem.
I don't have a HP printer and I - honestly - don't know what this systray-icon exactly do ;-)

So I would agree to remove this package from standard cups-meta-task?!
Comment 26 Tamás Hajdu 2014-01-10 00:36:14 CET
I would rather disagree. The systray icon is very useful when it is working (of course you have to have an HP printer), similar to what hp has on windows too. Also it has features (like ink-state report) which is not shown by CUPS, besides the bug won't solve itself by just removing it from the standard CUPS meta package.
Comment 27 Tamás Hajdu 2014-01-19 13:43:01 CET
I have found the same issue on other bugtrackers:
Debian, confirmed: https://bugs.launchpad.net/hplip/+bug/556368

Following them I have found the same error in xsession. So I checked on ~/.hplip/hp-systray.lock and the file was there. After removing it hp-systray starts up without errors. It also removes the file on exit.

On my computer removing that file solves this problem. On the other hand I think this could happen again after a reset (so hp-systray will leave the file there).
Comment 28 Florian Hubold 2014-01-19 17:04:11 CET
(In reply to Tamás Hajdu from comment #27)
> I have found the same issue on other bugtrackers:
> Debian, confirmed: https://bugs.launchpad.net/hplip/+bug/556368

That's not Debian, that's a bug reported directly against hplip, and no response from upstream. The debian bugreport is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569976 and also no patch or solution available.

I'm afraid there's nothing we can do about this.

You can only add a comment on the hplip bug, ask about and update and mention that you're also affected.
Comment 29 Florian Hubold 2014-01-19 17:06:52 CET
Removing release_blocker status as no fix is available.

Keywords: (none) => NO_PATCH, UPSTREAM
Priority: release_blocker => High
Source RPM: system-config-printer-1.3.12-6.mga3, hplip => hplip
Severity: normal => major

Manuel Hiebel 2014-01-19 17:14:38 CET

Whiteboard: 4RC => 4RC 4errata

Comment 30 Morgan Leijström 2014-02-05 14:06:29 CET
Could this be another nvidia related issue?
What do the problematic systems use?  nvidia? KDE?

I changed from nividia to noveau and this issue disappeared
(dual core laptop vith nvidia quadro NVS 140, mga4 - 64bit KDE)

CC: (none) => fri

Comment 31 Florian Bauer 2014-02-06 11:01:05 CET
bug occured with proprietary driver module loaded (KDE).
I've uninstalled hp-systray before I've switched to nouveau so I can't say if this would had solved the issue. I can test it on a netbook with intel grafix if it's interesting for developers. (But as I understood nvidia related bugs won't or can't be fixed in MGA4 so the alternative is using nouveau or switching to another distribution)
Dimitrios Glentadakis 2014-02-12 05:36:07 CET

CC: (none) => dglent

Comment 32 Dimitrios Glentadakis 2014-02-12 05:39:10 CET
I have a HP printer, do you know how i can disable the systray icon ?
i saw the options to hide only but not to disable it.
Comment 33 Morgan Leijström 2014-02-12 11:17:50 CET
simply uninstall hplip-gui
Comment 34 Dimitrios Glentadakis 2014-02-14 05:13:55 CET
(In reply to Morgan Leijström from comment #33)
> simply uninstall hplip-gui

Thanks, i think it would be better to mention 'uninstall hplip-gui' in errata.
https://wiki.mageia.org/en/Mageia_4_Errata#HP-Gui
Comment 35 Florian Hubold 2014-02-15 21:47:25 CET
(In reply to Dimitrios Glentadakis from comment #34)
> (In reply to Morgan Leijström from comment #33)
> > simply uninstall hplip-gui
> 
> Thanks, i think it would be better to mention 'uninstall hplip-gui' in
> errata.
> https://wiki.mageia.org/en/Mageia_4_Errata#HP-Gui

You can change things in the wiki, too ;)
Comment 36 Tamás Hajdu 2014-03-24 08:59:22 CET
Hi,

I have happily announce that with the latest nvidia drivers for mag4 solves the problem.
Now the HP GUI starts and works as expected.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 37 Tamás Hajdu 2015-01-17 17:59:27 CET
This issue returned again it mga4.

Now it is the hp-systray applet which eats up the CPU and also with the new nvidia drivers, resume fails in 20% of the time (X restarts).

Here is the Xorg's log:
[ 60324.667] (EE) 
[ 60324.667] (EE) Backtrace:
[ 60324.667] (EE) 0: /etc/X11/X (xorg_backtrace+0x3d) [0x5805dd]
[ 60324.667] (EE) 1: /etc/X11/X (0x400000+0x184349) [0x584349]
[ 60324.667] (EE) 2: /lib64/libpthread.so.0 (0x7f3b0ee87000+0xf720) [0x7f3b0ee96720]
[ 60324.668] (EE) 3: /usr/lib64/xorg/extra-modules/nvidia_drv.so (0x7f3b089a8000+0x87b26) [0x7f3b08a2fb26]
[ 60324.668] (EE) 4: /usr/lib64/xorg/extra-modules/nvidia_drv.so (0x7f3b089a8000+0x4eac27) [0x7f3b08e92c27]
[ 60324.668] (EE) 5: /usr/lib64/xorg/extra-modules/nvidia_drv.so (0x7f3b089a8000+0x4ef0e4) [0x7f3b08e970e4]
[ 60324.668] (EE) 6: /usr/lib64/xorg/extra-modules/nvidia_drv.so (0x7f3b089a8000+0x4fd0b2) [0x7f3b08ea50b2]
[ 60324.668] (EE) 7: /usr/lib64/xorg/extra-modules/nvidia_drv.so (0x7f3b089a8000+0x4f4f81) [0x7f3b08e9cf81]
[ 60324.668] (EE) 8: /etc/X11/X (xf86Wakeup+0x54a) [0x4733fa]
[ 60324.668] (EE) 9: /etc/X11/X (WakeupHandler+0x6d) [0x439c7d]
[ 60324.668] (EE) 10: /etc/X11/X (WaitForSomething+0x1af) [0x57db4f]
[ 60324.668] (EE) 11: /etc/X11/X (0x400000+0x357b1) [0x4357b1]
[ 60324.668] (EE) 12: /etc/X11/X (0x400000+0x24e9a) [0x424e9a]
[ 60324.668] (EE) 13: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7f3b0dcf0c85]
[ 60324.671] (EE) 14: /etc/X11/X (0x400000+0x251df) [0x4251df]
[ 60324.671] (EE) 
[ 60324.671] (EE) Segmentation fault at address 0x25
[ 60324.671] (EE) 
Fatal server error:
[ 60324.671] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 60324.671] (EE) 
[ 60324.671] (EE) 
Please consult the The X.Org Foundation support 
         at http://bugs.mageia.org
 for help.
[ 60324.671] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 60324.671] (EE) 
[ 60327.127] (EE) Server terminated with error (1). Closing log file.

Status: RESOLVED => REOPENED
Version: Cauldron => 4
Resolution: FIXED => (none)
Source RPM: hplip => hplip, nvidia

Comment 38 Florian Hubold 2015-01-18 16:11:40 CET
How is that X server crash or the nvidia driver and/or suspend issues related to this bug report or the hplip applet?
Comment 39 Tamás Hajdu 2015-01-18 18:14:56 CET
For first that was really strange to me too, but if you read back this thread, it somehow effects each other.
Comment 40 Florian Hubold 2015-01-19 21:25:30 CET
(In reply to Tamás Hajdu from comment #39)
> but if you read back this thread, it somehow effects each other.

There's no X crash reported in this bug, please open a separate bug for your X issues and resume problems.
Comment 41 Tamás Hajdu 2015-01-19 21:42:28 CET
That's true. Sorry for binding bugs.
But still hp-systray eats up CPU.
Comment 42 Tamás Hajdu 2015-07-14 20:40:57 CEST
Resolved.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.