Client out of memory on huge thumbs directory

Discussion in '1.0.2 and SVN Builds' started by erikture, January 12, 2010.

  1. erikture
    • Premium Supporter

    erikture MP Donator

    Joined:
    March 26, 2008
    Messages:
    87
    Likes Received:
    5
    Ratings:
    +5 / 0
    Home Country:
    Sweden Sweden
    MediaPortal Version: 1.1 beta and SVN-Snapshot:-01-08-2010 02-15h
    MediaPortal Skin: Blue3Wide
    Windows Version: Windows 7 x64 SVN-Snapshot:-01-08-2010 02-15h
    Memory: 4Gb

    Hello!

    Yesterday I thought that I had messed up my installation but now I have fond that it was not so.
    I have a huge collection of thumbs mostly related to movingpictures. At startup of Mediaportal there is some traversing of the thumbs directory, not by MovingPictures but by Mediaportal to create some cached images and fonts. This causes the dump below. If I remove the MovingPicture thumbs dir Mediaportal starts fine. It does not matter if I disable the MovingPicture plugin.
    I am not sure if it is the images in the Movingpictures thums directory that causes the error or if that is just the once that resulted in the final out of memory. I also have huge number of music thumbs and picture thumbs. The error window that shows at startup says something about out of memory. That could explain why it works on one of my computers and not on the other. It fails on the one that has the tvserver installed too, ie probably less memory for the client.

    The out of memory does occure when creating the cached images not realy when creating the cached fonts as the dump shows.
    The dump is just a result of the previous out of memory.

    I appology for crossposting both in the svn thread and in the bug report forum.


    /Erik



    2010-01-10 20:09:14.137416 [Warn.][MPMain]: GraphicContext: NO screen calibration file found for resolution 720x556!
    2010-01-10 20:09:14.150416 [Info.][MPMain]: GraphicContext: MP will render at 50 FPS, use animations = True
    2010-01-10 20:09:14.326426 [Info.][MPMain]: fonts.Dispose()
    2010-01-10 20:09:14.332427 [Info.][MPMain]: Load fonts from c:\Public\MediaPortal\Skin\Blue3wide\fonts.xml
    2010-01-10 20:09:14.502437 [Debug][MPMain]: fonts.InitializeDeviceObjects()
    2010-01-10 20:09:14.583441 [Debug][MPMain]: TextureLoader.CreateFile C:\ProgramData\Team MediaPortal\MediaPortal\Cache\Blue3wide\fonts\debug_12.dds
    2010-01-10 20:09:14.680447 [Info.][MPMain]: D3D: InitializeDeviceObjects - Exception: System.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.GUI.Library.GUIFont.InitializeDeviceObjects()
    at MediaPortal.GUI.Library.GUIFontManager.InitializeDeviceObjects()
    at MediaPortalApp.InitializeDeviceObjects()
    at MediaPortal.D3DApp.InitializeEnvironment()
    2010-01-10 20:09:14.682447 [Info.][MPMain]: DirectInput: not enabled
    2010-01-10 20:09:14.720449 [Info.][MPMain]: X10 debug: Could not get interface
    2010-01-10 20:09:14.856457 [Info.][MPMain]: MAP: using custom mappings for Microsoft MCE
    2010-01-10 20:09:14.866457 [Info.][MPMain]: MCE: MCE remote enabled
    2010-01-10 20:09:14.891459 [Info.][MPMain]: Main: Running
    2010-01-10 20:09:14.971463 [Info.][MPMain]: Exception ystem.ObjectDisposedException: Cannot access a disposed object.
    Object name: 'MediaPortalApp'.
    at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Form.CreateHandle()
    at System.Windows.Forms.Control.get_Handle()
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at MediaPortalApp.Main(String[] args)
    2010-01-10 20:09:14.972463 [Info.][MPMain]: Exception :Cannot access a disposed object.
    Object name: 'MediaPortalApp'.
    2010-01-10 20:09:14.973463 [Info.][MPMain]: site :Void CreateHandle()
    2010-01-10 20:09:14.974464 [Info.][MPMain]: source ystem.Windows.Forms
    2010-01-10 20:09:14.974464 [Info.][MPMain]: stacktrace: at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Form.CreateHandle()
    at System.Windows.Forms.Control.get_Handle()
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at MediaPortalApp.Main(String[] args)
    2010-01-10 20:09:14.975464 [Info.][MPMain]: MediaPortal stopped due to an exception Cannot access a disposed object.
    Object name: 'MediaPortalApp'. System.Windows.Forms at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Form.CreateHandle()
    at System.Windows.Forms.Control.get_Handle()
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at MediaPortalApp.Main(String[] args)
    2010-01-10 20:09:14.999465 [Debug][MPMain]: Main: SaveLastActiveModule - enabled False
    2010-01-10 20:09:14.999465 [Info.][MPMain]: Main: Exiting
    2010-01-10 20:09:15.011466 [Info.][MPMain]: fonts.Dispose()
    2010-01-10 20:09:15.011466 [Debug][MPMain]: TextureManager: Dispose()
    2010-01-10 20:09:15.012466 [Info.][MPMain]: TexturePackerispose()
    2010-01-10 20:09:15.012466 [Debug][MPMain]: Windowmanager: closing current window
    2010-01-10 20:09:15.013466 [Info.][MPMain]: TexturePacker: Removing packed skin
    2010-01-10 20:09:15.713506 [Debug][2]: FastImage: Cleaning up GDI+ before shutting down
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Furetto

    Furetto Moderator - Dutch Forums

    Joined:
    April 11, 2005
    Messages:
    664
    Likes Received:
    60
    Gender:
    Male
    Occupation:
    Network Admin
    Location:
    Brussels
    Ratings:
    +60 / 0
    Home Country:
    Belgium Belgium
    Show System Specs
    This is caused by Moving Pictures storing their covers and fanart in PNG since the last revision. Plans are to switch to yet another format for the next release, so you won't have this issue again.

    Temporary workaround:
    • Disable Moving Pictures plugin
    • Move MovPic thum directory outside the Thumbs subdirectory
    • Clear the skin cache
    • Start MP and use every skin so the cache is populated, then close MP again
    • Out the thumb directory back
    • Enable MovPic again
     
  4. erikture
    • Premium Supporter

    erikture MP Donator

    Joined:
    March 26, 2008
    Messages:
    87
    Likes Received:
    5
    Ratings:
    +5 / 0
    Home Country:
    Sweden Sweden
    Ok!

    I will try that.
    But should´nt Mediaportal be able to handle this?
    In the logfile there were a lot of lines telling that the images where to big but I think it was only warnings. Nothing about that it could crash the whole application. If a image is not suitable for caching shouldnt it be ignored by Mediaportal?

    /Erik
     
  5. Furetto

    Furetto Moderator - Dutch Forums

    Joined:
    April 11, 2005
    Messages:
    664
    Likes Received:
    60
    Gender:
    Male
    Occupation:
    Network Admin
    Location:
    Brussels
    Ratings:
    +60 / 0
    Home Country:
    Belgium Belgium
    Show System Specs
    Well, I guess you have a point. And maybe there will be an update to MP to handle this kind of situation, but not while there's a feature-freeze for 1.1.0 going on.

    Fanart was not originally planned for, when development of MP started, and so probably nobody expected to have huge PNG's in the Thumbs directory that was originally meant for TV-station-logos and such...
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!