[fixed] Attempt to read or write protected memory for configuration items (1 Viewer)

Smeulf

Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    New report tonight, but I think it's a pretty old bug.

    While trying to change the configuration, or just display it, I have often (but randomely) this bug, and of course the screen to select the option is not displayed. I must add I can have 10 time the error until having (or not...) the menu shown.

    Code:
    [2011-08-18 03:23:34,794] [36802  ] [InputMgr ] [ERROR] - MethodDelegateCommand: Error executing method delegate
    System.AccessViolationException: Tentative de lecture ou d'écriture de mémoire protégée. Cela indique souvent qu'une autre mémoire est endommagée.
       à System.Runtime.InteropServices.ComTypes.IEnumMoniker.Next(Int32 celt, IMoniker[] rgelt, IntPtr pceltFetched)
       à MediaPortal.UI.Players.Video.Tools.CodecHandler.GetFilters(Guid[] inputMediaAndSubTypes, Guid[] outputMediaAndSubTypes, Merit merit)
       à MediaPortal.UI.Players.Video.Settings.Configuration.GenericCodecSelection.GetAvailableFilters()
       à MediaPortal.UI.Players.Video.Settings.Configuration.GenericCodecSelection.Load()
       à MediaPortal.UI.Players.Video.Settings.Configuration.VideoMPEG2Codec.Load()
       à MediaPortal.UiComponents.Configuration.ConfigurationController.Initialize(ConfigSetting setting)
       à MediaPortal.UiComponents.Configuration.ConfigurationModel.ShowConfigItem(String configLocation)
       à MediaPortal.UiComponents.Configuration.ConfigurationModel.<>c__DisplayClass7.<AddConfigSettings>b__6()
       à MediaPortal.Core.Commands.MethodDelegateCommand.Execute() dans d:\Smeulf\Desktop\MP2 GIT - Copie\MediaPortal\Source\System\MediaPortal.Core\Commands\MethodDelegateCommand.cs:ligne 50

    Translation of the french message : Attempt to read or write protected memory. This often indicates that other memory is corrupt.

    It ends up with this error too, see log (maybe it's 2 differents problem, we'll see) :

    Code:
    [2011-08-18 03:24:22,425] [84433  ] [AMQ 'ScreenManager'] [ERROR] - Unhandled exception in message handler of async message queue 'ScreenManager' when handling a message of type 'ShowDialog'

    Step to reproduce : Settings / Players / Codec, try to show an option until the error comes (usually it shown after less than 10 attempts)

    Can someone please confirm that bug ? Or is it my computer that have some memory problem ? :confused:
    Cheers.

    Smeulf.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,070
    7,459
    Home Country
    Germany Germany
    AW: Attempt to read or write protected memory for configuration items

    this is a COM exception, I will check the enumeration method if it does (not) free some items.

    :D for reporting...
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,070
    7,459
    Home Country
    Germany Germany
    AW: Attempt to read or write protected memory for configuration items

    I added exception handling to enumeration of filters. So I think it's fixed.

    Please check it, if everything is ok: no exceptions, all filters available for selection...
     

    Smeulf

    Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Re: AW: Attempt to read or write protected memory for configuration items

    I added exception handling to enumeration of filters. So I think it's fixed.

    Please check it, if everything is ok: no exceptions, all filters available for selection...

    It looks very good. Thanks. I set the bug to fix. I'll re-open it if I run again in the same situation, but I have the feeling it will be ok ;)
     

    Users who are viewing this thread

    Top Bottom