Bug 332099 - transfer from chat applet to text-ui hangs
Summary: transfer from chat applet to text-ui hangs
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: chat-plasmoid (show other bugs)
Version: 0.8.0
Platform: unspecified Linux
: NOR major
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-13 14:59 UTC by Martin Bednar
Modified: 2015-03-24 17:05 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
text-ui screenshot (30.91 KB, image/png)
2014-03-13 15:00 UTC, Martin Bednar
Details
log when issue arised (136.00 KB, text/plain)
2014-03-29 20:55 UTC, Martin Bednar
Details
Bustle log (75.14 KB, application/octet-stream)
2014-04-26 21:54 UTC, David Edmundson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bednar 2014-03-13 14:59:19 UTC
When I  transfer a chat from the chat applet to a chat window, the chat window stays empty. I gave it 5 minutes, and it didn't magically fill up.

Reproducible: Always

Steps to Reproduce:
1. Enable contact list applet and chat applet
2. click a contact in contact list to start chat
3. click icon in chat applet to move chat from applet to a window.
Actual Results:  
text-ui window stays "empty"

Expected Results:  
chat moved, or available in both places.
Comment 1 Martin Bednar 2014-03-13 15:00:38 UTC
Created attachment 85566 [details]
text-ui screenshot

state of text-ui after trying to move chat from applet to text-ui
Comment 2 David Edmundson 2014-03-13 15:07:16 UTC
Next time it happens, could you:

1 run ktp-debugger.
2 Copy and paste me the mission control tab as the attachment.
3 Ideally give me timestamps of approximate when you transferred the chat. so I know where to look.

Privacy note:
This debug data _will_ contain email addresses of yourself and who you are talking to, but not any message content.

I've seen this happen before, if it does happen, restarting plasma relinquishes the chat and it will be visible as a new window.
Incoming messages are never lost.
Comment 3 Martin Bednar 2014-03-13 15:28:22 UTC
ktp-debugger shows nothing at the exact moment I try to switch from applet to window. But it is full of :
13/03/2014 16:25:58.395768 - [tp-glib] tp_cli_connection_interface_contact_capabilities_call_update_capabilities: assertion 'TP_IS_CONNECTION (proxy)' failed

This one appeared when I restarted plasma-desktop.
Maybe I'm doing something wrong/have some bad setting somewhere.
Comment 4 mchugh19@yahoo.com 2014-03-26 19:42:19 UTC
I too see this since upgrading to 0.7.80 in kubuntu 14.04 beta.

Eventually the window populates with the im content, but I am unable to enter any text into the bottom. 

Also, selecting previous conversations opens up the history browser, but it just displays the message "There are no logs for this contact" even though I can see the files in ~/.local/share/TpLogger/logs/gabble_jabber_...
Comment 5 Martin Bednar 2014-03-29 20:55:31 UTC
Created attachment 85829 [details]
log when issue arised

Enabled chat plasmoid ad 21:44:36 (.793216 more or less)
Tried tranferring around 21:45:33 (.611751 more or less)

What was interesting was that it also happened when trying to open a normal chat while the system was under very heavy I/O load.  Tentative timestamp is 21:34:20 (.41674) But that might be a different bug from an older version...
Comment 6 Alvaro Manuel Recio Perez 2014-04-24 14:37:17 UTC
Do any of you happen to have enabled the "Application Menu in Window Decoration" feture? (http://blog.martin-graesslin.com/blog/2013/01/4-10-feature-presentation-application-menu-in-window-decoration/) Your symptoms seem identical to the ones I've described in Bug #333829.
Comment 7 mchugh19@yahoo.com 2014-04-25 13:09:43 UTC
Thanks Alvaro! Disabling the menu in window decoration fixed the issue for me.
Comment 8 David Edmundson 2014-04-26 21:54:43 UTC
Created attachment 86285 [details]
Bustle log

I can reproduce when delegating channels that were started locally
whereas it seems to work when delegating channels that were started remotely.

Bustle log shows the text-UI channel dispatcher trying to talk to MC and not getting any reply. It then just ignores the channel and the request times out.
Comment 9 David Edmundson 2014-04-26 23:10:34 UTC
I am 90% sure the bug is in TpQt; 
 - during the initial construction it tries to call methods on the ChannelDispatcher to find out about the channel.
 - The channel isn't listed by the channel dispatcher as another handler has it. 
 - Unfortunately Channel handling code in TpQt is really mental.

Quick fix: 
 In the plasmoid,  instead of delegating the channel we could just close it; and then call ensureChannel again.
Comment 10 David Edmundson 2015-03-23 16:39:28 UTC
I fixed this in TpQt
Comment 11 David Edmundson 2015-03-23 16:39:38 UTC
I fixed this in TpQt