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

    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
    9K
    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
    484
    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
    5K
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching live TV. I've now ticked the box to "Use EVR for LiveTV", with a default display refresh rate of 50Hz. In combination with tweaking some of the Nvidia 3D settings for the MP executable only, I now have a...
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching...
    Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
    Replies
    30
    Views
    8K
    I currently have two Quatros running, one connect, one duo using OTA antennae, mostly UHF fringe area, mostly cat5 local network. Hauppauge card retired long ago. I have also retired very early SD units, the Quatros seem to work much better than the older units. Go to SD's support website and download and install the windows...
    I currently have two Quatros running, one connect, one duo using OTA antennae, mostly UHF fringe area, mostly cat5 local network...
    I am currently using a Hauppauge WinTV QuadHD PCIe card on MP1 (1.37) for DVB-T, but 2 of the tuners have died. Thinking about...
    Replies
    3
    Views
    1K
    Top Bottom