MP Shutting down (4 Viewers)

mickb

Portal Pro
June 8, 2005
96
15
68
Travelling Australia
Home Country
Australia Australia
I have an issue that started in 1.37 and so I updated to 1.38 and updated all my installed plugins but the issue has continued. My single seat MP will run perfectly for sometimes days and other times it may crash a couple of times a day. I will be watching a video and it will freeze and then MP shuts and I am left at the Windows 11 desktop. Most times just restarting MP fixes it, but occasionally I have had to restart the pc. I have attached the logs in the hope that one of the MP experts on here may be able to shed some light on the problem.

Thanks in anticipation.
 

Attachments

  • MP_Logs_MEDIA_26_05_26_09_26.zip
    3.9 MB

CyberSimian

Test Group
  • Team MediaPortal
  • June 10, 2013
    3,629
    2,664
    Southampton
    Home Country
    United Kingdom United Kingdom
    There seems to be some sort of problem with Trakt. At the very end of "MediaPortal.log":

    Code:
    [2026-05-26 09:23:10,989] [Error  ] [Scrobble ] [ERROR] - MediaPortal: Unhandled exception occured
    [2026-05-26 09:23:11,330] [Log    ] [Scrobble ] [ERROR] - Exception: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.0.0.1:443
       at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
       at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
       --- End of inner exception stack trace ---
       at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at TraktAPI.TraktAPI.CreatePostRequest(String address, String postData, String method, String contentType)
       at TraktAPI.TraktAPI.PostToTrakt(String address, String postData, Boolean logRequest, String method, String contentType, Boolean tryRefresh)
       at TraktAPI.TraktAPI.StartEpisodeScrobble(TraktScrobbleEpisode episode)
       at TraktPlugin.TraktHandlers.TVSeries.<Scrobble>b__16_0(Object episodeObj)
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart(Object obj)  Message: Unable to connect to the remote server  Site   : System.IO.Stream GetRequestStream(System.Net.TransportContext ByRef)  Source : System  Inner Exception(s):  -> Unable to connect to the remote server  -> A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.0.0.1:443  Stack Trace:     at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at TraktAPI.TraktAPI.CreatePostRequest(String address, String postData, String method, String contentType)
       at TraktAPI.TraktAPI.PostToTrakt(String address, String postData, Boolean logRequest, String method, String contentType, Boolean tryRefresh)
       at TraktAPI.TraktAPI.StartEpisodeScrobble(TraktScrobbleEpisode episode)
       at TraktPlugin.TraktHandlers.TVSeries.<Scrobble>b__16_0(Object episodeObj)
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart(Object obj)

    Also, "MovingPictures.log" has this:

    Code:
    23-May-2026 16:44:53 Error [   ScriptableScraper]: Error parsing scriptable scraper XML file: Data at the root level is invalid. Line 415, position 9.

    I don't use any of these plugins, and don't know what might be wrong. Perhaps @ajs or @doskabouter can help.

    -- from CyberSimian in the UK
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    5,232
    4,184
    Nuenen
    Home Country
    Netherlands Netherlands
    not 100% sure but at least 95% that the error from trakt is reaching mediaportal itself.It is kind of weird that a plugin can pulldown mediaportal itself, and the best solution would probably be to add try except onto every call in a plugin, but to minimize the changes, its probably best if the traktplugin itself is a bit more robust in this area.
    so maybe @ltfearme can take a look at this?
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,762
    7,230
    Sydney
    Home Country
    Australia Australia
    There are a lot of improvements that can be made to that code. I can see the particular place it crashed, and there was no error handling in place. Will see what time I can put aside to resolve it.

    @CyberSimian, the log shows you are connecting to trakt via 10.0.0.1:443. Is that a local proxy or something?
     

    mickb

    Portal Pro
    June 8, 2005
    96
    15
    68
    Travelling Australia
    Home Country
    Australia Australia
    There are a lot of improvements that can be made to that code. I can see the particular place it crashed, and there was no error handling in place. Will see what time I can put aside to resolve it.

    @CyberSimian, the log shows you are connecting to trakt via 10.0.0.1:443. Is that a local proxy or something?
    Hi Itfearme, no I don't use a proxy. My PC for Mediaportal connects to my router & NAS by ethernet. I do not have a permanent internet connection and USB tether my phone to my router when necessary, like when I am updating shows. It was all working correctly but for some reason Trakt stopped connecting. I checked for updates to Trakt and the update fixed the connection issue but then I started getting the crashes. It was then I updated MP to 1.38 from 1.37 and updated all of the plugings that had updates, but the crashes continued. Hope this bit of context helps
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    5,232
    4,184
    Nuenen
    Home Country
    Netherlands Netherlands
    I got a similar error yesterday just when a watched episode ended...
    Didn't copy the logs unfortunately but now i'm in a weird situation. Trakt website shows that episode as watched, but in onlinevideos (where i watched that episode) it still is not flagged as watched.
    The watched.json doesn't contain that episode but i think it should pick it up from the trakt site despite:
    Code:
    User <me> successfully signed in and retrieved online settings from trakt.tv
    2026-05-28 21:08:03.698 [INFO] [Sync][21]: Started refresh of tv show user data from trakt.tv
    2026-05-28 21:08:03.702 [INFO] [Sync][21]: Getting current user unwatched episodes from trakt.tv
    2026-05-28 21:08:03.702 [DEBG] [Sync][21]: Loading file from disk. Filename = 'C:\ProgramData\Team MediaPortal\MediaPortal\Trakt\blazwets\Library\Episodes\Watched.json'
    2026-05-28 21:08:03.787 [INFO] [Sync][21]: Getting current user watched episodes from trakt.tv
    2026-05-28 21:08:03.788 [INFO] [Sync][21]: Getting current user last activity times from trakt.tv
    2026-05-28 21:08:03.788 [DEBG] [Sync][21]: Address: https://api.trakt.tv/sync/last_activities
    2026-05-28 21:08:03.911 [DEBG] [Sync][21]: Response: {"all":"2026-05-25T19:09:12.000Z","movies":{"watched_at":"2025-12-20T23:19:40.000Z","collected_at":"2015-11-05T22:20:05.000Z","rated_at":"2015-11-05T22:20:05.000Z","watchlisted_at":"2021-06-05T21:56:40.000Z","favorited_at":"2015-11-05T22:20:05.000Z","recommendations_at":"2015-11-05T22:20:05.000Z","commented_at":"2015-11-05T22:20:05.000Z","paused_at":"2026-05-17T07:08:22.000Z","hidden_at":"2021-10-07T19:27:49.000Z"},"episodes":{"watched_at":"2026-05-25T19:09:12.000Z","collected_at":"2015-11-05T22:20:05.000Z","rated_at":"2015-11-05T22:20:05.000Z","watchlisted_at":"2022-05-21T21:54:07.000Z","commented_at":"2015-11-05T22:20:05.000Z","paused_at":"2026-05-12T07:02:06.000Z"},"shows":{"rated_at":"2015-11-05T22:20:05.000Z","watchlisted_at":"2020-11-27T20:05:28.000Z","favorited_at":"2015-11-05T22:20:05.000Z","recommendations_at":"2015-11-05T22:20:05.000Z","commented_at":"2015-11-05T22:20:05.000Z","hidden_at":"2023-05-14T20:29:29.000Z","dropped_at":"2026-05-25T19:09:12.000Z"},"seasons":{"rated_at":"2015-11-05T22:20:05.000Z","watchlisted_at":"2015-11-05T22:20:05.000Z","commented_at":"2015-11-05T22:20:05.000Z","hidden_at":"2015-11-05T22:20:05.000Z"},"comments":{"liked_at":"2015-11-05T22:20:05.000Z","reacted_at":"2015-11-05T22:20:05.000Z","blocked_at":"2015-11-05T22:20:05.000Z"},"lists":{"liked_at":"2015-11-05T22:20:05.000Z","reacted_at":"2015-11-05T22:20:05.000Z","updated_at":"2015-11-05T22:20:05.000Z","commented_at":"2015-11-05T22:20:05.000Z"},"watchlist":{"updated_at":"2022-05-21T21:54:06.000Z"},"favorites":{"updated_at":"2020-07-24T23:28:37.000Z"},"recommendations":{"updated_at":"2020-07-24T23:28:37.000Z"},"collaborations":{"updated_at":"2015-11-05T22:20:05.000Z"},"account":{"settings_at":"2026-05-19T16:23:35.000Z","followed_at":"2021-04-10T20:06:32.000Z","following_at":"2015-11-05T22:20:05.000Z","pending_at":"2015-11-05T22:20:05.000Z","requested_at":"2015-11-05T22:20:05.000Z"},"saved_filters":{"updated_at":"2015-11-05T22:20:05.000Z"},"notes":{"updated_at":"2015-11-05T22:20:05.000Z"}}, Headers: {...}
    2026-05-28 21:08:03.912 [DEBG] [Sync][21]: Comparing previous watched episodes against current watched episodes such that unwatched can be determined
    what is the best way to get this back in sync?
     

    Users who are viewing this thread

    Top Bottom