Bug 164227 - High cpu usage when, inside the configuration window, Devices is chosen and no video device is present
Summary: High cpu usage when, inside the configuration window, Devices is chosen and n...
Status: RESOLVED WORKSFORME
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: 0.12.7
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-16 16:47 UTC by Andrea
Modified: 2008-07-10 05:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea 2008-06-16 16:47:22 UTC
Version:           0.12.7 (using 3.5.9 "release 64.2" , openSUSE )
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.22.17-0.1-default

Hi all, 
I'm using kopete and I can not chat using video support because I have no webcam.

If I open the Configuration window of kopete and I click on Devices, then kopete correctly shows no device inside the Video tab (that is the only one proposed in Devices screen). The thing I've noted is that when I click on Devices, the CPU usage jumps to 100% and remains at this level until I close the Configuration window. Even if I click on other components (like Accounts or Behavoiur), the CPU still remains at 100%. 
If I open the Configuration window on another component, CPU stays low and remains low until I click on Devices.

Here I try to report CPU usage using "top -p[kopete pid]" at several steps of Configuration window browsing:

- Open Configuration window on Accounts:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4307 ori       15   0  190m  59m  27m S  0.0  5.9   2:45.84 kopete

- Click on Devices:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4307 ori       25   0  192m  59m  27m R 85.3  5.9   3:04.61 kopete

- Click again on Accounts:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4307 ori       25   0  192m  59m  27m R 86.3  5.9   3:34.97 kopete

- Close Configuration window:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4307 ori       15   0  190m  59m  27m S  0.0  5.9   3:56.42 kopete

No new lines are added to ~/.xsession-errors when I perform the above tests.

If I try to compare the output of lsof when I start configuration windows using Devices and Accounts, I obtain no differences except for a change on the device column of a socket.

I know this is a minor report, but I think it could be a witness for some hidden bug inside webcam configuration.

Regards,
Andrea
Comment 1 Stef Louwers 2008-07-07 22:41:40 UTC
This seems solved on kde4 (kopete 0.50.1).
Comment 2 Matt Rogers 2008-07-10 05:32:57 UTC
Working in KDE 4.1. Closing.