Bug 1059343

Summary: gnome-shell memory leak when resolution changes
Product: Red Hat Enterprise Linux 7 Reporter: Uri Lublin <uril>
Component: gnome-shellAssignee: Florian Müllner <fmuellner>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-03 15:43:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Uri Lublin 2014-01-29 16:51:16 UTC
Description of problem:
running a loop that changes the resolution enlarges the amount of memoty gnome-shell is using.

Version-Release number of selected component (if applicable):
gnome-shell-3.8.4-21.el7.x86_64

Tested on VM with qxl and with cirrus, and on a Lenovo T520 physical machine

How reproducible:
5/5

Steps to Reproduce:
1. On one gnome-terminal run top -p $(pgrep gnome-shell)
2. On a second gnome-terminal run resolution change in a loop (see script below)
3. See memory usage of gnome-shell getting bigger

script:
#!/bin/bash

V=$(xrandr | awk '$2 ~ /^connected/ {print $1}' | head -1)
MODES_TO_CHECK="1024x768 800x600 1440x900 640x480 1280x1024"
MODES=""
for m in $MODES_TO_CHECK; do
    if xrandr | grep -q $m; then
        MODES="$MODES $m"
    fi
done

function setmode () {
    xrandr --output $V --mode $1
    sleep 3
}

for i in $(req 1 100); do
    for m in $MODES; do
        echo $i $m
        setmode $m
    done
done

Actual results:
Memory used is getting larger

Expected results:
Memory used is not getting larger

Comment 2 Uri Lublin 2014-01-30 11:12:19 UTC
Installed using RHEL-7.0-20140127.0-Client-x86_64-boot.iso

Comment 3 RHEL Program Management 2014-03-22 06:07:59 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 4 Florian Müllner 2014-04-03 15:43:14 UTC

*** This bug has been marked as a duplicate of bug 1027192 ***