Bug 120184 - icq buddy-icons not shown after kopete crashed
Summary: icq buddy-icons not shown after kopete crashed
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: ICQ and AIM Plugins (other bugs)
Version First Reported In: 0.12
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-15 18:22 UTC by S. Burmeister
Modified: 2006-03-10 19:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2006-01-15 18:22:00 UTC
Version:           0.12 (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs
OS:                Linux

After I get a crash (https://bugs.kde.org/show_bug.cgi?id=120172 if you want to try it) the icons for icq-only users are not shown anymore. Jabber icons are also not loaded when the contact comes online.

I can restart kopete and even the computer several times, it will not change anything. The next day however, it works again.

Is this maybe due to some temp-files or something similar?
Comment 1 S. Burmeister 2006-01-15 18:47:56 UTC
This seems to be true for those contacts only that were online when kopete crashed.
Comment 2 S. Burmeister 2006-01-16 15:31:18 UTC
Are the pictures supposed to be saved to oscarpictures? If so, they are not for me, even though they show up in the contactlist.
Comment 3 S. Burmeister 2006-01-18 12:52:10 UTC
I had a look at the debug output regarding the icq-buddyicons issue. 
I always get an error, even if the icon is shown.

kopete (oscar/icq): WARNING: [void ICQContact::haveIcon(const QString&, QByteArray)] Failed to convert buddy icon to QImage

Further, I found out that one can reproduce the issue. One should go online with icq after a long break, e.g. be offline over night. That way all buddy icons are loaded perfectly in the morning. Then one quits kopete and restarts immediately. The away messages are shown instantly and buddy icons working, I guess that kopete takes them from some cache, as normally it takes some time to get the away-messages.

Then one quits kopete for 15-20 minutes. If kopete is restarted, the icons for the contacts that have been online the time before will not appear.

From debug I could see that I got

kopete (oscar/icq): [virtual void ICQContact::userInfoUpdated(const QString&, const UserDetails&)] updating buddy icon in 9 seconds

then one with 5 and 6 again, then 2 but it never actually requested the icons. I waited about a minute or so.

I went offline again and online. This time icons were requested, yet not shown.

kopete (oscar - raw protocol): [void BuddyIconTask::handleICQBuddyIconResponse()] Receiving buddy icon for xxxxxxxxx
kopete (oscar/icq): [void ICQContact::haveIcon(const QString&, QByteArray)] Updating icon for xxxxxxxxx
kopete (oscar/icq): WARNING: [void ICQContact::haveIcon(const QString&, QByteArray)] Failed to convert buddy icon to QImage

Yet xxxxxx did not show an icon in the contact-list
Comment 4 S. Burmeister 2006-01-18 13:01:28 UTC
Another thing I noticed. kopete requests and receives buddy-icons for contacts that have been online before but not anymore when going offline/online several times.
Comment 5 Roman Jarosz 2006-02-06 23:06:40 UTC
I think I track this problem down, but need more time to fix it.
It's not problem with retrieving them but with the client you are retrieving from. I discovered that after some amount of time kopete get disconnected from SSBI ( server-stored buddy icons ) probably timeout and than the other clients can't retrieve buddy-icons because SSBI server will send only hash without image.

Kopete won't request buddy-icons only when hash is different than that in kopete.
In oscarpictures is saved only your buddy-icon.
Comment 6 Roman Jarosz 2006-02-11 21:32:52 UTC
The icons for contacts weren't probably visible after crash because icq server only sends buddy icon data for approximately half an hour to other clients.
It's fixed in 0.12 now kopete caches buddy icons ( r508122 ).

Don't know why jabber icons aren't loaded but if that are icq contacts in jabber  than it could be the same problem.
Comment 7 Olivier Goffart 2006-03-10 19:24:00 UTC
> It's fixed in 0.12 now kopete caches buddy icons ( r508122 ).

so it is fixed.

and i can't reproduce the problem with Jabber