Bug 331704 - key-text-ui will continue increase memory usage.
Summary: key-text-ui will continue increase memory usage.
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: text-ui (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-03 14:48 UTC by TOM Harrison
Modified: 2015-07-31 16:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TOM Harrison 2014-03-03 14:48:01 UTC
recent day i have notice a problem about the telepathy.
ktp-text-ui will continue increate memory usage.
today i see the ktp-text-ui use 12G memory.
causing my linux nearly crash.

i am still try to reproduce that problem

Reproducible: Sometimes
Comment 1 TOM Harrison 2014-03-03 14:51:29 UTC
i think is has something with the image preview.
Comment 2 TOM Harrison 2014-03-03 14:54:12 UTC
i think this is a test web image.
http://brea.komica.org/pix/img15051.gif
i see when the preview enable.
the memory will increase and decrease.
Comment 3 David Edmundson 2014-03-03 14:57:21 UTC
it increases and decreases here but it's not expanding out of control.
Comment 4 TOM Harrison 2014-03-03 15:00:43 UTC
i do not know how it happened, but it happened about twice.
i am trying to reproduce it.
Comment 5 David Edmundson 2014-03-03 15:01:47 UTC
OK, though it's sounding like a problem in webkit. If so, there's nothing we can really do.
Comment 6 TOM Harrison 2014-03-03 15:15:15 UTC
if it webkit problem, how could i avoid it, or just could close ktp-text-ui and restart ?
Comment 7 TOM Harrison 2014-03-03 15:21:07 UTC
there are additional information that it seems happened when i did not close the ktp-text-ui for a long time.
Comment 8 Martin Klapetek 2014-04-13 20:39:48 UTC
> if it webkit problem, how could i avoid it, or just could close ktp-text-ui and restart ?

Yes, that would definitely help.

> there are additional information that it seems happened when i did not close the ktp-text-ui for a long time.

How long is "long time"?

-----

I can't reproduce either here, the memory usage stays within sane limits. I can imagine though that if you chat with someone for days, sending lots of images, it might grow up eventually.

Have you been able to reproduce since then?
Comment 9 TOM Harrison 2014-04-14 12:10:05 UTC
actually i am confuse either.
now the telepathy using about 600M, and ia have seeing it grow to 1.7G, and back to 600M.
i am wondering why it use so many memory.
i think maybe is the preview of youtube.
Comment 10 TOM Harrison 2014-04-14 12:15:47 UTC
it seems it has something with youtube preview.
if the youtube preview has enable and some send a youtube website to you.
It will eat more memory. i do not know that if it normal. but it could use about 600M ~ 1.7G is pretty amazing.

by the way, the youtube preview is not work, it always show white.
Comment 11 Martin Klapetek 2014-04-14 14:09:57 UTC
Interesting. I can observe the mem going up with each youtube video about 15MB, however at some point it just stopped raising with each new pasted video link and stayed constant. Though I imagine that a long day conversation full of images and youtube videos might crank it up a little.

The way I see it (and that might not be the only way), we can only limit the amount of messages in the backlog, to let's say 100. That would recycle the memory but would cut the scrollback.

As for the youtube plugin, that all depends on the flash plugin installed and webkit picking it up, nothing we can do there.
Comment 12 Martin Klapetek 2015-07-31 16:27:39 UTC
Youtube is buggy in Qt5 webkit, it has been disabled by default and generally is not recommend to leave enabled.