Bug 558016 - yumex dont detect if cancel is pressed in root dialog is press and uses a lot of CPU waiting forever
Summary: yumex dont detect if cancel is pressed in root dialog is press and uses a lot...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yumex
Version: 12
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-23 06:43 UTC by ebird98
Modified: 2010-02-11 14:49 UTC (History)
1 user (show)

Fixed In Version: 2.9.7-1.fc12
Clone Of:
Environment:
Last Closed: 2010-02-11 14:49:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description ebird98 2010-01-23 06:43:22 UTC
Description of problem:
A process named "python" have a high CPU usage.

Version-Release number of selected component (if applicable):
yumex.noarch         2.9.4-1.fc12
python.i686          2.6.2-2.fc12
rpm-python.i686      4.7.2-1.fc12

How reproducible:

Steps to Reproduce:
1.Run the "yumex" from the menu.
2.Click "Cancel" button when Asking for Root's password.
3.Run "top" command in a terminal window, you'll find a process named "python",
it's cpu usage is ...85%-95%...
  
Actual results:
A process named "python",
which cpu usage is ...85%-95%...when Yumex doing nothing.

Expected results:
It should have lower cpu usage.

Additional info:

Comment 1 Tim Lauridsen 2010-01-26 10:29:41 UTC
I can reproduce the issue, but it is not normal operation to Cancel the root password prompt, yumex is starting a background task running as root using consolehelper, so if you cancel the root password, the gui will wait forever for the background task to be loaded and you will see the high CPU usage count.
The right action will be to alert the user and quit the gui.

Comment 2 Tim Lauridsen 2010-01-26 14:50:11 UTC
fixed upstream, so the gui will detect if the backend is not started, if someone is clicking on cancel on the root password dialog.

Comment 3 ebird98 2010-01-28 01:41:15 UTC
Ok, but I have a question:
Why To Ask for root passwd when starting yumex instead of as necessary?

Comment 4 Tim Lauridsen 2010-01-28 17:50:58 UTC
because the yum action is running as a background as root, so we need the root password when the backend is started. So the root password is needed right as the gui is started.

Comment 5 ebird98 2010-01-29 02:54:28 UTC
(In reply to comment #4)
> because the yum action is running as a background as root, so we need the root
> password when the backend is started. So the root password is needed right as
> the gui is started.    

Thank you for your reply:)

Comment 6 Fedora Update System 2010-02-01 16:27:46 UTC
yumex-2.9.7-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/yumex-2.9.7-1.fc12

Comment 7 Fedora Update System 2010-02-02 20:40:58 UTC
yumex-2.9.7-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yumex'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1383

Comment 8 Fedora Update System 2010-02-11 14:49:17 UTC
yumex-2.9.7-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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