Bug 346797

Summary: Massive memleak when sending/receiving youtube link
Product: [Unmaintained] telepathy Reporter: Martin Kyral <sine.nomine>
Component: text-uiAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED UPSTREAM    
Severity: major CC: mklapetek
Priority: NOR    
Version: 0.9.0   
Target Milestone: Future   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: strace of ktp-text-ui when it was leaking

Description Martin Kyral 2015-04-27 15:24:05 UTC
Normally ktp-text-ui takes decent amount of memory. However, when either party of the converation sends a link to youtube video (most likely other streaming serives etc., too), ktp-text-ui starts grow rapidly, consimung all the available memory (I have 8GB) and force system to swap in just 3 or 4 minutes.

Happening when IM via g+ account and IIRC, FB messaging does this too.

The only "solution" is to write some messages quickly and kill the process (write the messages in order to prevent the yt link being loaded among the recent messages after entering the converastion again).

Not sure if it happens everytime, but often enough.

Version:
ktp-text-ui-0.9.0-1.fc22.x86_64

Reproducible: Sometimes

Steps to Reproduce:
1.  start a conversation with someone via g+ / FB
2. send link(s) to youtube content

Actual Results:  
ktp-text-ui grows in memory making the system swap to death

Expected Results:  
ktp-text-ui doesn't leak memory
Comment 1 Martin Kyral 2015-04-27 15:24:44 UTC
Created attachment 92280 [details]
strace of ktp-text-ui when it was leaking
Comment 2 Martin Klapetek 2015-04-29 08:53:37 UTC
Tbh it's not entirely unexpected. The YouTube plugin is nothing but trouble, so much that it's disabled by default in the 15.04 release.

Unfortunately this all is out of our hands as that uses webkit + flash plugin to render, nothing we can control.

I'd suggest to simply disable the YouTube plugin in the settings.