MP 1.13 Crashing after exiting (1 Viewer)

Dr Forinor

Portal Pro
December 21, 2015
206
28
44
Home Country
United Kingdom United Kingdom
The last few times I have exited MP, it crashes after exiting.
Can someone have a look at the logs and tell me whats happening please? And how to fix it?
 

HTPCSourcer

Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    [2016-01-23 15:32:37,413] [Log ] [MPMain ] [ERROR] - Exception: System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.xml' is denied.
    For some reason MediaPortal is attempting to write into this path. However, mediaportal.xml should be updated in the C:\ProgramData... path. There should be no copy of this file in the program path. So the question is what you did to have it there?

    A work around would be to allow access to the file copy in the program path - but that's not how things should be.

    I noticed that you are running an experimental 1.13 version. Maybe that's the reason.
     

    Dr Forinor

    Portal Pro
    December 21, 2015
    206
    28
    44
    Home Country
    United Kingdom United Kingdom
    Erm, I have no idea what I did to have it there?

    Should I just upgrade to a stable release? Will that fix it perhaps?
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    A stable version should run ok. At worst, if there is no copy in the user path, it will be created when opening the config and closing it with OK.

    You can verify this yourself by opening and OK'ing e current file with your experimental versioon. Then verify the respective file date/time in the user path. If it has been updated just install a stable version.
     

    Dr Forinor

    Portal Pro
    December 21, 2015
    206
    28
    44
    Home Country
    United Kingdom United Kingdom
    You can verify this yourself by opening and OK'ing e current file with your experimental versioon. Then verify the respective file date/time in the user path. If it has been updated just install a stable version

    Sorry, can you explain what you mean by this please?
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    A virgin Installation has no settings defined and the respective mediaportal.xml is empty. Your current installaiton is weird, yet I assume that the settings are correctly stored in the mediaportal.xml that you can find in the C:\ProgramData\... path rather than in the program directory. Just in case that you might be concerned about losing your settings, you can verify that the version in the C:\Programata path is the one that MePo is using.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,523
    10,466
    France
    Home Country
    France France
    Hi,

    This is strange, the experimental build is based on master and my change is about core.dll (for subtitle and audio part) so no real clue why it happen but like it's master, maybe there is some other branch that trigger this :(
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,523
    10,466
    France
    Home Country
    France France
    Can you try to disable imdb+ ?

    From log it seems to be trigger from it or maybe not :
    IMDb.PluginSettings.SaveSettings()

    @RoChess any idea ?
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,523
    10,466
    France
    Home Country
    France France
    Really can't reproduce it based on the same build :
    I have take your mediaportal.xml and try to reproduce it on debug :
    Code:
    doc = {[c:\programdata\team mediaportal\mediaportal\mediaportal.xml, MediaPortal.Profile.CacheSettingsProvider]}
    It comes from plugin exit of imdb+, so all is ok, i don't why it want to use your 'C:\Program Files (x86)\Team MediaPortal\MediaPortal\...' on your side.

    Edit :
    In the xmlcache list from code, i can see this :
    Code:
    [3] = {[d:\mediaportal-1\mediaportal\mediaportal.application\bin\debug\mediaportal.xml, MediaPortal.Profile.CacheSettingsProvider]}
    So here it will try to do something in the folder where is mediaportal.exe (so it can act like your 'C:\Program Files (x86)\Team MediaPortal\MediaPortal\...' maybe a track to follow :)
    Will see :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,523
    10,466
    France
    Home Country
    France France
    I think i know what happen, while debugging, sometimes, plugin doesn't send the fullpath but only the name mediaportal.xml and when it happen, like MP didn't know the path, it replace it with the one along the executable so : 'C:\Program Files (x86)\Team MediaPortal\MediaPortal\...'

    I just add a check to detect if it's mediaportal.xml without path and replace/initiate it with the correct path : 'c:\programdata\team mediaportal\mediaportal\....'

    So i will able to provide a bin for this to test :)
     

    Users who are viewing this thread

    Similar threads

    MP1 MP2 MP Shutting down DE
    I got a similar error yesterday just when a watched episode ended... Didn't copy the logs unfortunately but now i'm in a weird situation. Trakt website shows that episode as watched, but in onlinevideos (where i watched that episode) it still is not flagged as watched. The watched.json doesn't contain that episode but i think it...
    I got a similar error yesterday just when a watched episode ended... Didn't copy the logs unfortunately but now i'm in a weird...
    I have an issue that started in 1.37 and so I updated to 1.38 and updated all my installed plugins but the issue has continued. My...
    Replies
    6
    Views
    457
    I noticed there's an updated Visual C++ Runtime (14.50.35710), maybe try to reinstall the runtimes? That's what fixed the issue when I tried 1.38.1
    I noticed there's an updated Visual C++ Runtime (14.50.35710), maybe try to reinstall the runtimes? That's what fixed the issue...
    I just updated from 1.37 to 1.38. MediaPortal 1.38 exits abruptly when stopping video playback. I did three tests; Debug with...
    Replies
    38
    Views
    10K
    I was just tinkering with a few settings in the MediaPortal configuration and am happy to have found the cause of the problem. Disabling the option "Single seat setup: force RTSP usage" under "TV/Radio", "Advanced Options" resolved the issue. After I disabled this option, I was able to delete the recordings the first time...
    I was just tinkering with a few settings in the MediaPortal configuration and am happy to have found the cause of the problem...
    Deleting recordings sometimes doesn't work. Neither the 0 button nor the Info/Delete button works. Nothing happens at all with...
    Replies
    6
    Views
    624
    I have also had this problem in the past. There are two components to this problem: Your internet router is pinging the HTPC at regular intervals in order to see if the HTPC is still present on the network. The network adapter in the HTPC has "Wake on Lan" enabled. So at the end of a recording, the HTPC transitions from away mode to...
    I have also had this problem in the past. There are two components to this problem: Your internet router is pinging the HTPC at...
    Nachdem ich mp 1.38 neu installiert habe klappt soweit alles wie früher. Ein Problem besteht aber und das ist Standby nach einer...
    Replies
    6
    Views
    571
    YES, Thanks
    YES, Thanks
    Help please. Error could have started happening after upgrade to 1.38 on 2025-08-04. Thank you EDIT: I have installed 1.38.0...
    Replies
    18
    Views
    6K
    Top Bottom