MediaPortal stopped due to an exception Type 'TraktPlugin.TraktAPI.DataStructures.TraktMovieSummary' (1 Viewer)

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,697
    7,081
    Sydney
    Australia Australia
    Country flag
    Maybe there is a race condition somewhere, perhaps try making a copy of _cachedAllocatorImages before iterating over it?
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    Damien, another lead maybe for MP crash in Trakt : in \Trakt-for-Mediaportal\TraktPlugin\GUI\GUIExtensions.cs

    I can't see why :( or maybe like you said put a lock.

    C#:
    /// <summary>
            /// Acts the same as the CurrentLayout / View property.
            /// </summary>
            /// <remarks>this extension method was added to allow backwards compatibility with MediaPortal 1.1</remarks>
            /// <param name="self"></param>
            /// <returns>instance of GUIListControl or null</returns>
            public static void SetCurrentLayout(this GUIFacadeControl self, string layout)
            {
                PropertyInfo property = GetPropertyInfo<GUIFacadeControl>("CurrentLayout", "View");
                property.SetValue(self, Enum.Parse(property.PropertyType, layout), null);
            }
    Code:
    Application: MediaPortal.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
       at MediaPortal.GUI.Library.GUIImageAllocator.ClearCachedAllocatorImages()
       at MediaPortal.GUI.Library.GUIFilmstripControl.OnMessage(MediaPortal.GUI.Library.GUIMessage)
       at MediaPortal.GUI.Library.GUIFacadeControl.set_CurrentLayout(Layout)
    
    Exception Info: System.Reflection.TargetInvocationException
       at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
       at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
       at System.Reflection.RuntimePropertyInfo.SetValue(System.Object, System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
       at System.Reflection.RuntimePropertyInfo.SetValue(System.Object, System.Object, System.Object[])
       at TraktPlugin.GUI.GUIWindowExtensions.SetCurrentLayout(MediaPortal.GUI.Library.GUIFacadeControl, System.String)
       at TraktPlugin.TraktDashboard.LoadTrendingMoviesFacade(System.Collections.Generic.IEnumerable`1<TraktAPI.DataStructures.TraktMovieTrending>, MediaPortal.GUI.Library.GUIFacadeControl)
       at TraktPlugin.TraktDashboard.LoadTrendingMovies(Boolean)
       at TraktPlugin.TraktDashboard.LoadTrendingMovies()
       at TraktPlugin.TraktDashboard.<Init>b__76_2(System.Object)
       at System.Threading.TimerQueueTimer.CallCallbackInContext(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.TimerQueueTimer.CallCallback()
       at System.Threading.TimerQueueTimer.Fire()
       at System.Threading.TimerQueue.FireQueuedTimerCompletion(System.Object)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,697
    7,081
    Sydney
    Australia Australia
    Country flag
    I can probably remove those extension methods now since the plugin doesn't officially support MP 1.1 anymore anyway.

    Maybe that will help, probably easy for you to compile your own trakt plugin to test, find all instances where it calls that extension method (or just in the dashboard class) and replace with the native call.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,697
    7,081
    Sydney
    Australia Australia
    Country flag
    Replace:
    Code:
    facade.SetCurrentLayout(TraktSkinSettings.DashboardActivityFacadeType);
    with
    Code:
    facade.CurrentLayout = GUIFacadeControl.Layout.List;
    and
    Code:
    facade.SetCurrentLayout(trendingSettings.FacadeType);
    with
    Code:
    facade.CurrentLayout = GUIFacadeControl.Layout.Filmstrip;
    The layout types are loaded from skin settings, so its important to realise that this might not work for the skin you use. It needs a few tweaks.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,697
    7,081
    Sydney
    Australia Australia
    Country flag
    @Sebastii, I committed some changes to remove the old backwards compatibility code. It will be interesting to know whether you get the same crash still.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    Will try it :) thanks, i didn't take the time to change on my side so big thanks :p
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    mickb [solved] Mediaportal Stops working General Support 5
    M MP 2.2.3 Unable to play .ts recordings and MediaPortal stops working for TV viewing General 31
    ajs [solved] 4982: Why this error hard stop when Mediaportal start? MediaPortal 1 3
    Patrik-See [solved] MediaPortal 2.2 Fernseher bleibt schwarz nach TV Sender Stop Allgemeines Support- und Diskussionsforum 2
    G Update von MediaPortal Installationsprobleme? 0
    ajs [News] MediaPortal 1 - 1.25 Released! News and Announcements 1
    horned_reaper Standby is prevented by MediaPortal client General Support 0
    U [solved] MediaPortal crashing on startup General Support 10
    g0rsq Info box randomly popping up when watching TV or other video MediaPortal 2 Newcomers Forum 1
    high [unanswered] Hallo möchte gerne Mediaportal. nutzen kann mich jemand anrufen? contactform feedback and requests 2
    ajs [News] MediaPortal 1.25 Pre-Release ready for testing! News and Announcements 0
    ajs [Rejected] Mediaportal Codename MediaPortal 1 41
    M 2nd (Touch-)Display Support on MediaPortal 2 such MPDisplay++? General 2
    N Steam release of MediaPortal MediaPortal 1 Talk 0
    torone Dritter versuch mit Mediaportal 2 Allgemeines Support- und Diskussionsforum 1
    M Fehlerhafter Link auf der aktuellen MediaPortal Seite Page- und Forumsfeedback 0
    H 1.24.0 MP 1.24 high CPU utilization when 'Keep MediaPortal always on top' option enabled Bugreports 4
    J [solved] Newbie to MediaPortal 2 - Cannot open/run TV programs Newcomers Forum 4
    atlantic How to use Spotify inside Mediaportal? Listen Music 18
    horned_reaper MediaPortal configuration error log message General Support 1
    Rob Hexenmeister Mediaportal Properties #plot etc... General Support 3
    ajs [News] MediaPortal 1 - 1.24 Released! News and Announcements 3
    S [solved] access the desktop without leaving mediaportal General Support 5
    J New computer with win10 and how will i set Mediaportal up ? Newcomers Forum 55
    T MediaPortal Extensions Manager Fehlermeldung bei Installation einer Erweiterung Installationsprobleme? 1
    Similar threads

























    Top Bottom