Results 1 to 10 of 10

Thread: osd memory leaks

  1. #1
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default osd memory leaks

    there is defaintely a memory leak in the osd, whenever a osd is drawn about 8K of memory is lost, an easy way to see this is to open an osd menu and move the mouse over diferent items, each time the selection is changed the osd is redrawn and 8K of memory is lost

  2. #2
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    can you post the exact code for ron to look at.... we have been hunting a bug here

  3. #3
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    Code:
    MyMenu=osd.Classes.Menu:New();
    MyMenu:Show(true,"Select Task",{"Media Player","Applications"});

  4. #4
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    2,140

    Default

    I don't use the OSD myself, so I might be wrong...

    But could it be caused by the garbage collection mechanism in lua ?

    when calling lua functions, memory is used up, which is only reclaimed when the garbage collector is activated.

    (You can force this by calling collectgarbage(); manually)


    Marcel

  5. #5
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    it might be but ron appears to have set the garbeage collector threshold to be quite high, it appears to only trigger when about 5mb of garbage needs to be collected

  6. #6
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,305

    Default

    I wonder if this can be the reason that Girder crashes after maybe 60-100 CID OSD messages on my system.
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

  7. #7
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Alan, what happens if you use

    collectgarbage ()

  8. #8
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    yep that stops the memory going up

  9. #9
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Quote Originally Posted by birty
    yep that stops the memory going up
    so no leak?

  10. #10
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    nope

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •