[Bug] Empty plugin section throws exception (1 Viewer)

HomeY

Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Hi guys,

    I just noticed we can run into an exception when we enter the plugins section, without having a single plugin in there (for example when all are shown in 'Home' in MP configuration, you plugins text should be set as green and not in blue):
    Code:
    [2014-04-09 17:18:15,138] [Error  ] [MPMain   ] [ERROR] - OnAction exception:System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at MediaPortal.GUI.Library.GUIMenuControl.OnUp()
       at MediaPortal.GUI.Library.GUIMenuControl.OnAction(Action action)
       at MediaPortal.GUI.Library.GUIOverlayWindow.OnMouseMove(Int32 cx, Int32 cy, Action action)
       at MediaPortal.GUI.Library.GUIWindow.OnAction(Action action)

    Steps to reproduce:
    • Make sure you have 0 plugins listed in the plugin section (so set all plugins with 'in Home')
    • Enter plugin section
    • Use arrow left/right and the exception is shown in the logs.

    I tested the same with DefaultWide, and without a single plugin available in the section, this skin hides the entire Plugin section. Would be nice if we could have similar behavior for Titan ;)

    MP1-4430: Entering empty plugin section and use Arrow left/right, results in exception
     
    Last edited by a moderator:

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    i don't know if related.
    tested with WorldWeather without Skin files, so black GUI with "missing files"
    and using ramdon keyboard arrows. MP crashing
    this is the MP exception :
    Consultez la fin de ce message pour plus de détails sur l'appel du débogage
    juste-à-temps (JIT) à la place de cette boîte de dialogue.

    ************** Texte de l'exception **************
    System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
    à Micropolis.MPCore.MediaPortalHandler.SetSettingAsString(Settings writer, String section, String name, String value)
    à WorldWeatherPlugin.WorldWeather.(Int32 ,   )
    à WorldWeatherPlugin.WorldWeather.(Object , RunWorkerCompletedEventArgs )
    à System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
    à System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)


    ************** Assemblys chargés **************
    mscorlib
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18444 built by: FX451RTMGDR
    CodeBase : file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    MediaPortal
    Version de l'assembly : 1.7.100.0
    Version Win32 : 1.7.100.0
    CodeBase : file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/MediaPortal.exe
    ----------------------------------------
    Core
    Version de l'assembly : 1.7.100.0
    Version Win32 : 1.7.100.0
    CodeBase : file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Core.DLL
    ----------------------------------------
    System.Windows.Forms
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    Microsoft.DirectX.Direct3D
    Version de l'assembly : 1.0.2902.0
    Version Win32 : 9.05.132.0000
    CodeBase : file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll
    ----------------------------------------
    Utils
    Version de l'assembly : 1.7.100.0
    Version Win32 : 1.7.100.0
    CodeBase : file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Utils.DLL
    ----------------------------------------
    System.Configuration
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.ServiceProcess
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
    ----------------------------------------
    Common.Utils
    Version de l'assembly : 1.7.100.0
    Version Win32 : 1.7.100.0
    CodeBase : file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Common.Utils.DLL
    ----------------------------------------
    System.Xml
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    log4net
    Version de l'assembly : 1.2.11.0
    Version Win32 : 1.2.11.0
    CodeBase : file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/log4net.DLL
    ----------------------------------------
    System.Core
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    Microsoft.GeneratedCode
    Version de l'assembly : 1.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Microsoft.DirectX
    Version de l'assembly : 1.0.2902.0
    Version Win32 : 5.04.00.2904
    CodeBase : file:///C:/Windows/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll
    ----------------------------------------
    RemotePlugins
    Version de l'assembly : 1.7.100.0
    Version Win32 : 1.7.100.0
    CodeBase : file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/RemotePlugins.DLL
    ----------------------------------------
    Interop.X10
    Version de l'assembly : 1.0.0.0
    Version Win32 : 1.0.0.0
    CodeBase : file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Interop.X10.DLL
    ----------------------------------------
    mscorlib.resources
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/mscorlib.resources.dll
    ----------------------------------------
    System.Windows.Forms.resources
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll
    ----------------------------------------
    PresentationCore
    Version de l'assembly : 4.0.0.0
    Version Win32 : 4.0.30319.18408 built by: FX451RTMGR
     

    Users who are viewing this thread

    Top Bottom