Bug 118308

Summary: Kopete gets slow or freezes
Product: [Unmaintained] kopete Reporter: Andreas Schallenberg <Andreas.Schallenberg>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED LATER    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.11   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andreas Schallenberg 2005-12-14 13:07:00 UTC
Version:           0.11 (using KDE 3.5.0 Level "a" , SUSE 9.2 UNSUPPORTED)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.18-default

Kopete gets slow on opening chat windows, sometimes
freezes up (doesn't even react on close requests).

To reproduce here I need to switch to the chat
style "kopete" (the new one). The problem seems to
occur when kopete is able to display an image for
the contact in the chat window.

Opening the chat window takes several seconds.
Immediately after click on the contact a message
appears (when started from console):

QFont::setPointSize: Point size <= 0 (-1)

After some seconds the chat window appears.
At the same time (or just before that) the message
on the console is repeated.

Then I am unable to enter messages in the chat
window. Sometimes kopete then freezes so that
even closing it gets impossible. It does react
on SIGQUIT, however.

The problem disappears when switching e.g. to
GAIM-style chat. Maybe because there are no images
for the contacts displayed.

KDE 3.5, rpms from SUSE
Comment 1 Becheru Petru-Ioan 2005-12-24 11:09:00 UTC
confirmed in debian packages !! 
Comment 2 Olivier Goffart 2005-12-24 13:54:51 UTC
*** Bug 118443 has been marked as a duplicate of this bug. ***
Comment 3 Unknown 2005-12-26 18:05:01 UTC
I don't see Bug 118443 as a duplicate. This bug is referring to a specific blocking problem. 
I see the blocking on nearly every action Kopete is doing, independent of the chat style or the display of avatars. It is not a style specific problem but a kopete problem.

"nearly every action" means opening new windows (chat, file transfers, pop ups (and therefore user changing their status)), sending messages, changing my status.
Comment 4 Aleksandar Balalovski 2006-01-06 14:43:24 UTC
I have noticed this bug too on KDE 3.5, it is not up to the KDENetwork modules, I have tested and noticed that the bug is either related to KDEPim or KDEBase...

Slackware 10.2, Kde 3.5
Comment 5 Unknown 2006-01-09 15:13:09 UTC
The bug is not limited to KDE 3.5 but it's getting worse especially for slow machines. 
Comment 6 Aleksandar Balalovski 2006-01-11 19:22:27 UTC
Ok I solved the issue when I removed the ~/.fonts directory. Now KDE works with its default Fonts directory, can't tell where it puts the fonts to but it is solved issue...

Or it could be that I had 4300 fonts in ~/.fonts/ ... ?

[solved] for me
Comment 7 Matt Rogers 2006-01-11 23:51:57 UTC
the insane amount of fonts is surely the cause, since fontconfig doesn't
do well with large sets of fonts. fontconfig will be getting better soon
though, as soon as they come out with a new stable release.
Comment 8 Andreas Schallenberg 2006-01-12 09:24:06 UTC
It cannot be the only reason because I got only 2 additional fonts installed.
Comment 9 Unknown 2006-01-13 19:47:23 UTC
it is not, I have 0 in there. So it is not solved but hidden again. The problem is not that obvious on fast machines (even though I managed to reproduce it with the abovementioned themes.

IMHO, it is a similar problem like the filtering in kmail: lots of blocking operations without the need for it.
Comment 10 Will Stephenson 2006-01-18 09:56:27 UTC
Do you have the History plugin enabled?  If so, do you have the 'show previous x messages' option on?  

What happens if you turn 'show previous...' off?

What happens if you turn History off?

TIA

Will
Comment 11 Andreas Schallenberg 2006-01-18 13:41:46 UTC
Yes, I have the history-plugin enabled. Disabling it or
not showing previous messages makes the chat window
appear immediately again. This seems to be the right
direction to look for.
Comment 12 Unknown 2006-01-18 14:14:03 UTC
it does not on slow machines (btw, slow means 1ghz :( )!
It is just masking the real problem because it reduces the time for some actions. 
It is similar to the filter bug in kmail, for normal filter it does not appear but for calculation intensive like spam checking it does, create a filter with lots of reg exp applied to the whole message and you will see the same problem with this filter, so the problem is not the spam checking even if the error occurs there most.
Same applies here. we can reduce the delay by deactivating every notification etc. but the problem will be still there.
Comment 13 Matt Rogers 2006-02-01 02:04:43 UTC
has anybody tried the 0.12 branch in subversion to see if this goes away with the new styles?
Comment 14 Chani 2006-02-01 03:15:30 UTC
> ------- Additional Comments From mattr kde org  2006-02-01 02:04 -------
> has anybody tried the 0.12 branch in subversion to see if this goes away with the new styles?


I've been having some awful performance problems with 0.12, but I
haven't confirmed whether it's kopete's fault - konq is being kinda
laggy too.

it hasn't locked up or crashed, but whenever something important
happens it'll freeze for several seconds - I'll often see a half-drawn
window for whatever it's trying to open. sending and receiving
messages was taking several seconds too, although it seemed to improve
after reopening the chatwindow (which had probably been left open at
least a week).

it's not behaving consistently, though... when I got home and first
tried to do something (10 minutes ago), it took maybe 10 seconds for
kopete to wake up and respond to clicks. right now it seems to be
perfectly fine, no real lag. it'll probably go back to being laggy at
some point...

--
This insane ranting was brought to you by evyl bananas, and the number 3.
www.chani3.com
Comment 15 Matt Rogers 2006-02-26 16:16:22 UTC
This should be fixed in 0.12 due to the change in the style engine. If concrete information on how to reproduce can be provided with 0.12, please reopen.