Bug 164227

Summary: High cpu usage when, inside the configuration window, Devices is chosen and no video device is present
Product: [Applications] kopete Reporter: Andrea <andrea.turrini>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 0.12.7   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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.