MP & MPtray both crash immediately on start.

Discussion in 'General Support' started by rsbrux, December 6, 2014.

  1. rsbrux
    • Team MediaPortal

    rsbrux Documentation Group

    Joined:
    April 15, 2007
    Messages:
    1,022
    Likes Received:
    67
    Ratings:
    +91 / 1
    Home Country:
    Switzerland Switzerland
    Show System Specs
    Everything was working fine last night (or rather early this morning), but now (just when I could finally convince DW to watch "The Hobbit" with me) I cannot get MP to start. TV server still appears to run OK. I am attaching the logs, but MP error logs are empty. I don't find any evidence in the Windows event logs of a software update having been installed.overnight. The first two event log errors (and many subsequent ones) look something like the following for the MP crashes:
    Show Spoiler
    Application: MediaPortal.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.IO.IOException
    Stack:
    at System.Xml.XmlTextWriter.WriteStartElement(System.String, System.String, System.String)
    at System.Xml.XmlDOMTextWriter.WriteStartElement(System.String, System.String, System.String)
    at System.Xml.XmlElement.WriteStartElement(System.Xml.XmlWriter)
    at System.Xml.XmlElement.WriteElementTo(System.Xml.XmlWriter, System.Xml.XmlElement)
    at System.Xml.XmlElement.WriteTo(System.Xml.XmlWriter)
    at System.Xml.XmlDocument.Save(System.Xml.XmlWriter)
    at System.Xml.XmlDocument.Save(System.IO.TextWriter)
    at MediaPortal.Profile.XmlSettingsProvider.Save()
    at MediaPortal.Profile.CacheSettingsProvider.Save()
    at MediaPortal.Profile.Settings.SaveCache()
    at MediaPortalApp.Main(System.String[])

    After those first two errors (and subsequently after each .NET Runtime error similar to the above, there is an entry like this in the Event Log:
    Show Spoiler
    Faulting application name: MediaPortal.exe, version: 1.9.0.0, time stamp: 0x54168047
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x53159a86
    Exception code: 0xe0434352
    Fault offset: 0x0000c42d
    Faulting process id: 0xc64
    Faulting application start time: 0x01d0110a7dde453e
    Faulting application path: C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    Report Id: bde809ed-7cfd-11e4-a0bf-e840f20a34db

    There are a couple of events about an hour before the first MP failure (and one immediately after) complaining about low disk, but I don't understand how this could be a problem. I have 40 GB free on C: and 6 GB free on D:, and I have run out of space on D: many times before without it causing any lasting problems. Here they are anyhow, just in case they are relevant:
    1st Low Disk Event Before MP Failure (open)
    Windows (4040) Windows: An attempt to write to the file "d:\ProgramData\Microsoft\Search\Data\Applications\Windows\MSStmp.log" at offset 0 (0x0000000000000000) for 1048576 (0x00100000) bytes failed after 0 seconds with system error 112 (0x00000070): "There is not enough space on the disk. ". The write operation will fail with error -1808 (0xfffff8f0). If this error persists then the file may be damaged and may need to be restored from a previous backup.

    2nd Low Disk Error Before MP Failure (open)
    Windows (4040) Windows: The database engine is rejecting update operations due to low free disk space on the log disk.

    Low Disk Error Immediately After 1st .NET Runtime Error (open)
    Windows (4040) Windows: An attempt to write to the file "d:\ProgramData\Microsoft\Search\Data\Applications\Windows\MSSres00002.jrs" at offset 0 (0x0000000000000000) for 1048576 (0x00100000) bytes failed after 0 seconds with system error 112 (0x00000070): "There is not enough space on the disk. ". The write operation will fail with error -1808 (0xfffff8f0). If this error persists then the file may be damaged and may need to be restored from a previous backup.

    Can anyone give me any tips on how to troubleshoot this and get MP running again?

    P.S. MP Configuration also crashes immediately on attempted start with the following data:
    Show Spoiler
    Problem signature:
    Problem Event Name: CLR20r3
    Problem Signature 01: configuration.exe
    Problem Signature 02: 1.9.0.0
    Problem Signature 03: 54168040
    Problem Signature 04: System.Xml
    Problem Signature 05: 4.0.0.0
    Problem Signature 06: 53b51313
    Problem Signature 07: 748
    Problem Signature 08: 27
    Problem Signature 09: System.Xml.XmlException
    OS Version: 6.1.7601.2.1.0.256.48
    Locale ID: 2055
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

    Read our privacy statement online:
    http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

    If the online privacy statement is not available, please read our privacy statement offline:
    C:\Windows\system32\en-US\erofflps.txt


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. clarkey2r

    clarkey2r Portal Pro

    Joined:
    February 9, 2009
    Messages:
    215
    Likes Received:
    3
    Ratings:
    +3 / 1
    Home Country:
    United Kingdom United Kingdom
    Did you get any luck with this? Oddly enough, one of my clients has started to crash with similar runtime errors, have you installed any windows updates recently?
     
  4. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    @rsbrux
    I'd be almost certain that your MediaPortal.xml file is corrupt/empty.
    If your D: drive gets so full that MediaPortal.xml can't be written then it will cause problems like this, regardless of if you make the space available later. The damage is already done. I don't know if you'd call this a "lasting problem". It is fixable (by freeing space, deleting MediaPortal.xml, then running MP config to reconfigure)... but you lose your configuration. Doesn't seem particularly ideal.
     
    • Thank You! Thank You! x 1
  5. rsbrux
    • Team MediaPortal

    rsbrux Documentation Group

    Joined:
    April 15, 2007
    Messages:
    1,022
    Likes Received:
    67
    Ratings:
    +91 / 1
    Home Country:
    Switzerland Switzerland
    Show System Specs
    @clarkey2r
    No windows updates, just a Firefox update.

    @mm1352000
    Thanks for the tip! MediaPortal.xml was indeed 0 Bytes. I thought that it was only written by MP Config and didn't realize that MP itself was also writing to it during normal operation. After replacing it with a month-old backup version, I can start MP Config again. I am waiting for a backup to finish before I try to restart MP. Meanwhile I have enabled a disk quota for D: so as to avoid this in the future. Of course it would be nice if:
    1. MP would warn when attempting to schedule more recordings than will fit in the space available. Then I could selectively delete the old recordings I least value, instead of letting MP delete them arbitrarily by date.
    2. MP (and MP config) would display a useful error message on attempting to start with an invalid MediaPortal.xml. I realize that it might not be possible to catch all types of file corruption, but a zero-length file should be obvious enough.
    Thanks for your help!
     
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!