After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 511063 - Can mix up conversations
Can mix up conversations
Status: RESOLVED NOTGNOME
Product: empathy
Classification: Core
Component: Chat
unspecified
Other All
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2008-01-21 16:37 UTC by Simon McVittie
Modified: 2008-08-13 20:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon McVittie 2008-01-21 16:37:25 UTC
Please describe the problem:
Conversation windows can unexpectedly get reused for a different conversation, causing great user confusion:

16:27 < contyk> ot, btw: has anyone ever noticed Empathy mixes conversations if 
                you manually reconnect while you have the chat window opened? 
                like it sends/receives messages to/from a different buddy than 
                I think according to the active tab...

Robot101 has also spotted this at some point.

You must forget/invalidate all handles for a Connection as soon as it disconnects - they'll likely refer to someone else if it reconnects.

Also, you should be using HoldHandles() when appropriate, if you're not already.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Ignacio Casal Quinteiro (nacho) 2008-01-22 20:33:40 UTC
Today i had the same problem.
Comment 2 Dafydd Harries 2008-02-05 14:15:00 UTC
I got this too.

The problem is when saving the messages, not when loading them; I have a log file jabber0/x@foo.org/20080120.log where the messages in the logfile are actually from y@bar.org.
Comment 3 Dafydd Harries 2008-02-05 18:58:13 UTC
It's not just the log: I have two conversation windows open, and they get swapped. I.e. window 1 is with alice@foo.org, and window 2 is with beatrice@bar.org. At some point, messages from Beatrice started going to window 1, and messages from Alice started going to window 2. Window 1 says "Alice" in the title, but "Beatrice" next to new messages, and vice versa for Window 2.

It might be correlated with me going offline and coming online again.

This is pretty bad. I might send messages to the wrong person by accident if I didn't notice that this had happened.
Comment 4 Xavier Claessens 2008-02-06 13:16:51 UTC
I doubt the problem is a mix handles because I hold them and don't reuse them after reconnection. it happened to me once, I'll take a look at this bug.
Comment 5 Hubert Figuiere (:hub) 2008-02-10 02:29:42 UTC
has happened to me often.

I use empathy-0.21.5.2
Comment 6 Xavier Claessens 2008-02-10 10:26:01 UTC
After long hours of debugging it seems the problem is in MC. I keep this bug open until MC's maintainer confirm, probably monday.
Comment 7 Xavier Claessens 2008-02-11 12:39:49 UTC
But found in MC, should be fixed soon.
Comment 8 ViRMiN 2008-08-13 20:46:21 UTC
Hi, I've had a suggested to forward the "bug" I found with Intrepid to this area...

Here's the link to my Ubuntu bug report - https://bugs.launchpad.net/ubuntu/+source/empathy/+bug/257705