! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Terminal leaking memory and has high cpu
Status:
RESOLVED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description Kevin Fenzi 2010-12-06 03:06:21 CET
Terminal in Fedora rawhide seems to have a memory leak and cpu usage issue. 
This same version is fine against stable glib2/vte/etc... 

Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=657080

There's valgrind output attached there, which I can also attach here if you like. 

Some versions: 

Terminal-0.4.5-2.fc15.x86_64
vte-0.27.2-1.fc15.x86_64
glib2-2.27.4-1.fc15.x86_64
gtk2-2.23.2-1.fc15.x86_64

I'm not sure what to make of the valgrind. Can you see a culprit here?

Happy to gather more info or try things.
Comment 1 Kevin Fenzi 2010-12-06 17:20:39 CET
I'll note additionally, that none of the other vte based terminals seem to show this leak, so it seems to me unlikely that it's vte related. From a quick glance at valgrind it seems like glib2 or gtk2 or something deeper. ;(
Comment 2 Matthew Miller 2011-01-21 18:11:06 CET
This is still a problem... any ideas? Thanks.
Comment 3 Kevin Fenzi 2011-01-21 20:18:33 CET
Yeah, still seeing it here too... 

Terminal-0.4.5-3.fc15.x86_64
glib2-2.27.91-1.fc15.x86_64
vte-0.27.2-1.fc15.x86_64
gtk2-2.23.90-1.fc15.x86_64

Slightly newer gtk2 and glib2 now with the same effects. 

One terminal results in about 5% cpu for Terminal and 8% cpu in X. 
Memory grows pretty dramatically as well.
Comment 4 Nick Schermer editbugs 2011-01-27 22:07:04 CET
Since vte 0.27 is an unstable release; same with vte 0.26? Do you have compositing enabled? Any background image/transparency set?
Comment 5 Kevin Fenzi 2011-01-27 22:20:01 CET
I'll try and build a 0.26 vte to try with. It doesn't seem to affect any other vte using terminal apps. :( 

I've tried with compositor and without, and with all 3 of Terminals background options with no real change in behavior. ;(
Comment 6 Nick Schermer editbugs 2011-01-30 18:55:35 CET
Already found the issue, will push a patch soonish.
Comment 7 Nick Schermer editbugs 2011-01-30 19:20:34 CET
Fixed in ec22089.
Comment 8 Kevin Fenzi 2011-01-30 21:46:45 CET
Seems to be fixed here. ;) 

Thanks!
Comment 9 Nick Schermer editbugs 2011-01-30 21:48:13 CET
Created attachment 3448 
terminal 0.4.6 vte 0.27 fix

Patch to fix this issue until 0.4.7 is released.

Bug #6921

Reported by:
Kevin Fenzi
Reported on: 2010-12-06
Last modified on: 2011-01-30

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Version:
unspecified

Attachments

terminal 0.4.6 vte 0.27 fix (3.95 KB, patch)
2011-01-30 21:48 CET , Nick Schermer
no flags

Additional information