Bug 346797 - Massive memleak when sending/receiving youtube link
Summary: Massive memleak when sending/receiving youtube link
Status: RESOLVED UPSTREAM
Alias: None
Product: telepathy
Classification: Unmaintained
Component: text-ui (show other bugs)
Version: 0.9.0
Platform: Other Linux
: NOR major
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-27 15:24 UTC by Martin Kyral
Modified: 2015-04-29 08:53 UTC (History)
1 user (show)

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


Attachments
strace of ktp-text-ui when it was leaking (100.05 KB, text/plain)
2015-04-27 15:24 UTC, Martin Kyral
Details

Note You need to log in before you can comment on or make changes to this bug.
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.