MediaPortal stopped due to an exception Type 'TraktPlugin.TraktAPI.DataStructures.TraktMovieSummary'

Discussion in 'Trakt' started by Terra, August 21, 2017.

  1. Terra

    Terra Portal Pro

    Joined:
    August 25, 2009
    Messages:
    230
    Likes Received:
    36
    Ratings:
    +55 / 1
    Home Country:
    Austria Austria
    Show System Specs
    Hi there,

    Frequently my MePo crashes when I resume from windows standby or when I start it.
    I found this in the log files last time, seems some issue with Trakt?
    It is not really re-produceable with any steps, just happens sometimes and wanted to report it.



    Logs attached!

    Code (Text):
    1. [2017-08-21 01:24:41,128] [Log    ] [MPMain   ] [ERROR] - Exception: System.Runtime.Serialization.SerializationException: Type 'TraktPlugin.TraktAPI.DataStructures.TraktMovieSummary' with data contract name 'TraktMovieSummary:http://schemas.datacontract.org/2004/07/TraktPlugin.TraktAPI.DataStructures' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.
    2.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, Boolean verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
    3.    at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.SerializeWithXsiType(XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
    4.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    5.    at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    6.    at WriteTraktMovieCollectedToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , ClassDataContract , XmlDictionaryString[] )
    7.    at System.Runtime.Serialization.Json.JsonClassDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
    8.    at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    9.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    10.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    11.    at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    12.    at WriteArrayOfTraktMovieCollectedToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , CollectionDataContract )
    13.    at System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
    14.    at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    15.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    16.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph)
    17.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)
    18.    at System.Runtime.Serialization.XmlObjectSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
    19.    at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
    20.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(XmlDictionaryWriter writer, Object graph)
    21.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(Stream stream, Object graph)
    22.    at TraktPlugin.TraktAPI.Extensions.JSONExtensions.ToJSON(Object obj) in C:\Development\Trakt\TraktPlugin\TraktAPI\Extensions\JsonExtensions.cs:line 90
    23.    at TraktPlugin.TraktCache.Save() in C:\Development\Trakt\TraktPlugin\Cache\TraktCache.cs:line 3931
    24.    at TraktPlugin.TraktSettings.SaveSettings(Boolean savePersistedCache) in C:\Development\Trakt\TraktPlugin\TraktSettings.cs:line 1076
    25.    at TraktPlugin.TraktPlugin.DeInit() in C:\Development\Trakt\TraktPlugin\TraktPlugin.cs:line 157
    26.    at MediaPortal.GUI.Library.GUIWindowManager.<>c.<Clear>b__70_0(GUIWindow window)
    27.    at MediaPortal.GUI.Library.GUIWindowManager.LockAndDoOnAllRegisteredWindows(Action`1 toDo)
    28.    at MediaPortal.GUI.Library.GUIWindowManager.Clear()
    29.    at MediaPortalApp.OnExit()
    30.    at MediaPortalApp.Main(String[] args)  Message: Type 'TraktPlugin.TraktAPI.DataStructures.TraktMovieSummary' with data contract name 'TraktMovieSummary:http://schemas.datacontract.org/2004/07/TraktPlugin.TraktAPI.DataStructures' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.  Site   : Void SerializeAndVerifyType(System.Runtime.Serialization.DataContract, System.Runtime.Serialization.XmlWriterDelegator, System.Object, Boolean, System.RuntimeTypeHandle, System.Type)  Source : System.Runtime.Serialization  Stack Trace:     at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, Boolean verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
    31.    at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.SerializeWithXsiType(XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
    32.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    33.    at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    34.    at WriteTraktMovieCollectedToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , ClassDataContract , XmlDictionaryString[] )
    35.    at System.Runtime.Serialization.Json.JsonClassDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
    36.    at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    37.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    38.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    39.    at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    40.    at WriteArrayOfTraktMovieCollectedToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , CollectionDataContract )
    41.    at System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
    42.    at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    43.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    44.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph)
    45.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)
    46.    at System.Runtime.Serialization.XmlObjectSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
    47.    at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
    48.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(XmlDictionaryWriter writer, Object graph)
    49.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(Stream stream, Object graph)
    50.    at TraktPlugin.TraktAPI.Extensions.JSONExtensions.ToJSON(Object obj) in C:\Development\Trakt\TraktPlugin\TraktAPI\Extensions\JsonExtensions.cs:line 90
    51.    at TraktPlugin.TraktCache.Save() in C:\Development\Trakt\TraktPlugin\Cache\TraktCache.cs:line 3931
    52.    at TraktPlugin.TraktSettings.SaveSettings(Boolean savePersistedCache) in C:\Development\Trakt\TraktPlugin\TraktSettings.cs:line 1076
    53.    at TraktPlugin.TraktPlugin.DeInit() in C:\Development\Trakt\TraktPlugin\TraktPlugin.cs:line 157
    54.    at MediaPortal.GUI.Library.GUIWindowManager.<>c.<Clear>b__70_0(GUIWindow window)
    55.    at MediaPortal.GUI.Library.GUIWindowManager.LockAndDoOnAllRegisteredWindows(Action`1 toDo)
    56.    at MediaPortal.GUI.Library.GUIWindowManager.Clear()
    57.    at MediaPortalApp.OnExit()
    58.    at MediaPortalApp.Main(String[] args)
    59. [2017-08-21 01:24:41,151] [Error  ] [MPMain   ] [ERROR] - MediaPortal stopped due to an exception Type 'TraktPlugin.TraktAPI.DataStructures.TraktMovieSummary' with data contract name 'TraktMovieSummary:http://schemas.datacontract.org/2004/07/TraktPlugin.TraktAPI.DataStructures' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer. System.Runtime.Serialization    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, Boolean verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
    60.    at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.SerializeWithXsiType(XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
    61.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    62.    at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    63.    at WriteTraktMovieCollectedToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , ClassDataContract , XmlDictionaryString[] )
    64.    at System.Runtime.Serialization.Json.JsonClassDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
    65.    at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    66.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    67.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    68.    at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
    69.    at WriteArrayOfTraktMovieCollectedToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , CollectionDataContract )
    70.    at System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
    71.    at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    72.    at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
    73.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph)
    74.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)
    75.    at System.Runtime.Serialization.XmlObjectSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
    76.    at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
    77.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(XmlDictionaryWriter writer, Object graph)
    78.    at System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(Stream stream, Object graph)
    79.    at TraktPlugin.TraktAPI.Extensions.JSONExtensions.ToJSON(Object obj) in C:\Development\Trakt\TraktPlugin\TraktAPI\Extensions\JsonExtensions.cs:line 90
    80.    at TraktPlugin.TraktCache.Save() in C:\Development\Trakt\TraktPlugin\Cache\TraktCache.cs:line 3931
    81.    at TraktPlugin.TraktSettings.SaveSettings(Boolean savePersistedCache) in C:\Development\Trakt\TraktPlugin\TraktSettings.cs:line 1076
    82.    at TraktPlugin.TraktPlugin.DeInit() in C:\Development\Trakt\TraktPlugin\TraktPlugin.cs:line 157
    83.    at MediaPortal.GUI.Library.GUIWindowManager.<>c.<Clear>b__70_0(GUIWindow window)
    84.    at MediaPortal.GUI.Library.GUIWindowManager.LockAndDoOnAllRegisteredWindows(Action`1 toDo)
    85.    at MediaPortal.GUI.Library.GUIWindowManager.Clear()
    86.    at MediaPortalApp.OnExit()
    87.    at MediaPortalApp.Main(String[] args)
    88.  
     
    • Agree Agree x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,466
    Likes Received:
    4,261
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,409 / 0
    Home Country:
    Australia Australia
    Thanks, I will look into it and add some guards to prevent such a scenario from happening.
     
    • Like Like x 1
    • Thank You! Thank You! x 1
  4. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,258
    Likes Received:
    4,995
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,421 / 38
    Home Country:
    Germany Germany
    Show System Specs
    Can confirm it here since some weeks - MP even crashes when e.g. hovering over the Trending Movies/Series in BasicHome ;)
     
  5. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,270
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,229 / 9
    Home Country:
    France France
    Show System Specs
    Hi Guys :)
    I'm getting most often getting a MP crash when going back to home when i'm from myvideo playlist.

    Code (Text):
    1. Application: MediaPortal.exe
    2. Framework Version: v4.0.30319
    3. Description: The process was terminated due to an unhandled exception.
    4. Exception Info: System.NullReferenceException
    5.    at MediaPortal.GUI.Library.GUIImageAllocator.ClearCachedAllocatorImages()
    6.    at MediaPortal.GUI.Library.GUIFilmstripControl.OnMessage(MediaPortal.GUI.Library.GUIMessage)
    7.    at MediaPortal.GUI.Library.GUIFacadeControl.set_CurrentLayout(Layout)
    8.  
    9. Exception Info: System.Reflection.TargetInvocationException
    10.    at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
    11.    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
    12.    at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
    13.    at System.Reflection.RuntimePropertyInfo.SetValue(System.Object, System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
    14.    at System.Reflection.RuntimePropertyInfo.SetValue(System.Object, System.Object, System.Object[])
    15.    at TraktPlugin.GUI.GUIWindowExtensions.SetCurrentLayout(MediaPortal.GUI.Library.GUIFacadeControl, System.String)
    16.    at TraktPlugin.TraktDashboard.LoadTrendingShowsFacade(System.Collections.Generic.IEnumerable`1<TraktAPI.DataStructures.TraktShowTrending>, MediaPortal.GUI.Library.GUIFacadeControl)
    17.    at TraktPlugin.TraktDashboard.LoadTrendingShows(Boolean)
    18.    at TraktPlugin.TraktDashboard.LoadTrendingShows()
    19.    at TraktPlugin.TraktDashboard.<Init>b__76_4(System.Object)
    20.    at System.Threading.TimerQueueTimer.CallCallbackInContext(System.Object)
    21.    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    22.    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    23.    at System.Threading.TimerQueueTimer.CallCallback()
    24.    at System.Threading.TimerQueueTimer.Fire()
    25.    at System.Threading.TimerQueue.FireNextTimers()
    26.    at System.Threading.TimerQueue.AppDomainTimerCallback()
    27.  
    28.  
    I have try to look if something can be catch on MP code, but i didn't find what, so not sure if something can be done on Trakt code side :)
     
    • Thank You! Thank You! x 1
  6. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,466
    Likes Received:
    4,261
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,409 / 0
    Home Country:
    Australia Australia
    Hi Sebastii, Im not sure the trakt plugin will be able to catch that, could you add some extra null checks in ClearCachedAllocatorImages() ?
     
    • Thank You! Thank You! x 2
  7. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,270
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,229 / 9
    Home Country:
    France France
    Show System Specs
    Sure :)
    It happen randomly but has it happen often :p
     
    • Thank You! Thank You! x 1
  8. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,270
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,229 / 9
    Home Country:
    France France
    Show System Specs
    Added :

    Code (C#):
    1. public static void ClearCachedAllocatorImages()
    2.     {
    3.       if (_cachedAllocatorImages != null)
    4.       {
    5.         foreach (String sTextureName in _cachedAllocatorImages)
    6.         {
    7.           if (sTextureName != null) Flush(sTextureName);
    8.         }
    9.         _cachedAllocatorImages.Clear();
    10.       }
    11.       _cachedAllocatorImages = null;
    12.       _cachedAllocatorImages = new List<string>();
    13.     }
    Null check for sTextureName -> if (sTextureName != null) Flush(sTextureName); :p
     
    • Thank You! Thank You! x 1
  9. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,270
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,229 / 9
    Home Country:
    France France
    Show System Specs
    I'm just getting the crash :)
    It seems to be because in line :
    foreach (String sTextureName in _cachedAllocatorImages)
    There is no _cachedAllocatorImages (count is 0) and then it failed here, let's try by adding :

    Code (C#):
    1. public static void ClearCachedAllocatorImages()
    2.     {
    3.       if (_cachedAllocatorImages != null)
    4.       {
    5.         if (_cachedAllocatorImages.Count > 0)
    6.         {
    7.           foreach (String sTextureName in _cachedAllocatorImages)
    8.           {
    9.             if (sTextureName != null) Flush(sTextureName);
    10.           }
    11.         }
    12.         _cachedAllocatorImages.Clear();
    13.       }
    14.       _cachedAllocatorImages = null;
    15.       _cachedAllocatorImages = new List<string>();
    16.     }
    What do you thing @ltfearme ?
    :p
     
    • Thank You! Thank You! x 1
  10. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,270
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,229 / 9
    Home Country:
    France France
    Show System Specs
    And a json error, maybe related to the first post :

    upload_2017-8-22_13-45-16.png
     
    • Thank You! Thank You! x 1
  11. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,466
    Likes Received:
    4,261
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,409 / 0
    Home Country:
    Australia Australia
    I think that last error is because it could not find the Newtonsoft.Json dll. I plan on removing that dependency as its only used for the calendar functions which I plan to update.
     
    • Like Like x 1
    • Thank You! Thank You! x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!