Glipper uses hundreds of megabytes of RAM after extended usage

Bug #1078156 reported by CyLith
78
This bug affects 15 people
Affects Status Importance Assigned to Milestone
Glipper
New
Undecided
Unassigned

Bug Description

I run glipper on Linux Mint with XFCE4. After about a week of leaving it running, the System Monitor shows it to be using (currently) 565.7 MB of memory. I am using the repository version 2.3. About two weeks ago, glipper used about 900 MB of RAM and I had to reboot the machine. I really have no idea how I would diagnose the problem or give any steps for reproducing this behavior, since it is accumulated over more than a hundred hours of usage. I should note that I often VNC into this machine with SSVNC, which does clipboard sharing, if that helps. I would love to be able to provide any additional information from my system, but I simply don't know what to do.

Tags: memory
Revision history for this message
Romuald Brunet (j-romuald) wrote :

Patch proposal, greatly reduce memory usage over time

Revision history for this message
Romuald Brunet (j-romuald) wrote :

New try at posting patch …

Revision history for this message
CyLith (victor-liu) wrote :

For a while, I just completely commented out showing the menu (I don't use it), and memory usage stayed constant at 14-15 MB.

I have since upgraded to the repository's version 2.4, and I have applied Romuald Brunet's patch, and memory usage is quite constant. Just after I start up glipper, it uses about 14-15 MB of memory, and now after several days of use, it's holding steady at 31.1 MB, with no increase when I show the menu from the AppIndicator. Unfortunately, I didn't monitor memory usage of just vanilla repo 2.4 without the patch for more than a few days. Without the patch, I noticed memory usage would go up about 0.1 MB every 2-3 showings of the menu, which is quite modest especially if it's not used often.

I tried VNC'ing into this computer with the x11vnc server, and doing some copy pasting and showing of the menu (all with the patch), and afterwards memory usage is now up to 31.5 MB. It jumped up about a minute after closing the session, so I really don't know what caused it. If I notice anything interesting, I'll write another update.

Revision history for this message
Timo Palomaa (timppis) wrote :

Since I've just upgraded to 13.10, I have not (yet at least) seen this occur, but in 13.04 I did get this often. Sometimes upwards of 400 MB. Don't know for sure, but the Glipper version was most likely 2.4-3 (the latest in Raring). Since you mentioned virtual machines, I did also use VirtualBox quite a lot and with clipboard sharing.

Revision history for this message
Zeka (zekaspb) wrote :

uptime 3:30, look at my attachment !

Revision history for this message
Robert Tari (robert-tari) wrote :

Glipper 2.4 in Ubuntu MATE 16.04 uses over 1GB of memory after a few hours of running time.

Revision history for this message
Alexander (vredda) wrote :

> Glipper 2.4 in Ubuntu MATE 16.04 uses over 1GB of memory after a few hours of running time.

the same for me

Revision history for this message
Aidan Samuel (aidan-samuel) wrote :

Using Glipper 2.4 in Ubuntu Desktop 16.04. Just caught it using 900MB of memory after a few hours of usage.

I cleared the history, but the memory was not released.

Revision history for this message
sev si (severin-sigl3) wrote :

same here 500MiB
Glipper 2.4, Ubuntu 16.04.1, Cinnamon Desktop
up 2 days

Revision history for this message
honzik (cerny-honza) wrote :
Download full text (3.2 KiB)

same for me - Glipper 2.4, Ubuntu 14.04.5 LTS

Original exception was:
RuntimeError
Error in sys.excepthook:
RuntimeError

Original exception was:
RuntimeError
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/glipper/Clipboards.py", line 67, in on_clipboard_owner_change
    self.clipboard_text = self.unicode_or_none(clipboard.wait_for_text())
RuntimeError: maximum recursion depth exceeded
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/glipper/Clipboards.py", line 67, in on_clipboard_owner_change
    self.clipboard_text = self.unicode_or_none(clipboard.wait_for_text())
  File "/usr/lib/python2.7/dist-packages/glipper/Clipboards.py", line 81, in unicode_or_none
    return unicode(bytes_utf8, 'UTF-8')
RuntimeError: maximum recursion depth exceeded
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/glipper/History.py", line 26, in on_new_item
    self.add(item, is_from_selection)
  File "/usr/lib/python2.7/dist-packages/glipper/History.py", line 67, in add
    ctrl_c_item = get_glipper_clipboards().get_default_clipboard_text()
  File "/usr/lib/python2.7/dist-packages/glipper/Clipboards.py", line 29, in get_default_clipboard_text
    return self.default_clipboard.get_text()
RuntimeError: maximum recursion depth exceeded
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/glipper/AppIndicator.py", line 145, in on_history_changed
    self.update_menu(history_list)
  File "/usr/lib/python2.7/dist-packages/glipper/AppIndicator.py", line 68, in update_menu
    plugins_menu_items = get_glipper_plugins_manager().get_menu_items()
RuntimeError: maximum recursion depth exceeded
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/glipper/AppIndicator.py", line 145, in on_history_changed
    self.update_menu(history_list)
  File "/usr/lib/python2.7/dist-packages/glipper/AppIndicator.py", line 113, in update_menu
    plugins_item = gtk.MenuItem(_("Pl_ugins"), True)
  File "/usr/lib/python2.7/gettext.py", line 581, in gettext
    return dgettext(_current_domain, message)
  File "/usr/lib/python2.7/gettext.py", line 545, in dgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib/python2.7/gettext.py", line 480, in translation
    mofiles = find(domain, localedir, languages, all=1)
RuntimeError: maximum recursion depth exceeded
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/glipper/AppIndicator.py", line 145, in on_history_changed
    self.update_menu(history_list)
  File "/usr/lib/python2.7/dist-packages/glipper/AppIndicator.py", line 113, in update_menu
    plugins_item = gtk.MenuItem(_("Pl_ugins"), True)
  File "/usr/lib/python2.7/gettext.py", line 581, in gettext
    return dgettext(_current_domain, message)
  File "/usr/lib/python2.7/gettext.py", line 545, in dgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib/python2.7/gettext.py", line 480, in translation
    mofiles = find(domain, localedir, languages, all=1)
  File "/usr/lib/python2.7/gettext.py", line 428, in find
    val = os.environ.get(envar)
  File "/usr/lib/python2.7/UserDict.py", line 59, in get
    if key not in sel...

Read more...

Revision history for this message
Dani (damufo) wrote :

Same for me.
Debian 9 Stretch XFCE
3.4 GB of RAM

Revision history for this message
Craig O (shanness) wrote :

This is crazy! Can someone please fix it?

  PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
22618 craig 20 0 4342M 3223M 11724 S 0.0 10.0 0:00.00 python /usr/bin/glipper
22620 craig 20 0 4342M 3223M 11724 S 0.0 10.0 0:00.00 python /usr/bin/glipper
22621 craig 20 0 4342M 3223M 11724 S 0.0 10.0 0:15.47 python /usr/bin/glipper
22528 craig 20 0 4342M 3223M 11724 S 0.0 10.0 3:06.65 python /usr/bin/glipper

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.