Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

"Show OSD" memory leak >= 4K per run.

Found a bug in EventGhost? Report it here.
Post Reply
bengalih
Posts: 48
Joined: Sat Feb 25, 2012 1:13 am

"Show OSD" memory leak >= 4K per run.

Post by bengalih »

Try this simple code in a fresh tree:

Code: Select all

import time
x = 0
while x < 100:
    eg.plugins.EventGhost.ShowOSD(u'test', u'0;-24;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 0.1, False)
    time.sleep (.1)
    x = x + 1
Observe a memory increase of 300-400K for EG process that does not release. This increases every run (100 cycles).

Amount of memory leaked appears related to how much text is in the string (up to a certain amount at least).
Post Reply