Help needed troubleshooting freezing issues in Kodi/LE w Mediaportal backend (1 Viewer)

tomoqv

Portal Pro
June 28, 2006
125
4
Stockholm
Home Country
Sweden Sweden
My current setup:
Mediaportal TV Server (v 1.18.1 on Win7 Pro) - wired network connection
Kodi (v 17.6 on Ubuntu 16.04.3) - wired network connection
LibreElec (v 8.02 on RPi3) - Wi-Fi connection
Mediaportal PVR Client (v 2.4.19)

The problem:
Intermittent Kodi or LE UI freezes when streaming live TV or recordings from my PVR backend. Usually the freezes occur within an hour after starting playback, but before the freeze everything works as expected. I know it is the UI that freezes, because I can still access my Kodi clients through ssh. My current workaround is too reboot the client or just kill and restart Kodi on the Ubuntu PC. After rebooting or restarting the PVR client, I can resume PVR streaming again (but expect another freeze within an hour or so).

Sometimes, if I just leave the Kodi or LE client alone after a freeze, PVR starts again. My kodi.log includes such a case where Kodi froze (around 14:04) and then resumed streaming again after 20-30 minutes.

I have been running this setup for a few years without any major issues. These problems started occuring around the time I replaced my Asus RT-AC68U with a Ubiquiti EdgeRouter X and a couple of Unifi AP Pro.

Kodi log file:
Ubuntu Pastebin

MP tvserver_streaming server.Log
Ubuntu Pastebin

I will update with the LE kodi.log next time it freezes. In line with Murphy's law or the "demo devil", PVR streaming just ran for 2 hours without freezing.

Any help on troubleshooting this would be greatly appreciated!
 

mm1352000

Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,222
    Home Country
    New Zealand New Zealand
    Country flag
    Hi

    Is it the stream that's freezing, or the entire UI?
    What does TV Server Configuration "manual control" and "streaming server" sections say about the stream/clients?
     

    tomoqv

    Portal Pro
    June 28, 2006
    125
    4
    Stockholm
    Home Country
    Sweden Sweden
    The entire UI freezes. Last time I checked the MP TV server after a freeze, the stream was still running in "manual control". I haven't checked "streaming server" though.

    Including log file from LibreElec as well after freeze:
    Ubuntu Pastebin
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,222
    Home Country
    New Zealand New Zealand
    Country flag
    The entire UI freezes. Last time I checked the MP TV server after a freeze, the stream was still running in "manual control".
    Okay. From these symptoms it sounds like the problem is on the network, KODI or LE side. Also, in the previous KODI log at ~14:04 you can see:
    [collapse]
    14:01:05.040 T:139654271923968 ERROR: Read - Error( -1, 110, Förbindelsen dog ut (timeout) )
    14:01:30.493 T:139656850999040 DEBUG: Thread JobWorker 139656850999040 terminating (autodelete)
    14:01:35.047 T:139654271923968 ERROR: Read - Error( -1, 110, Förbindelsen dog ut (timeout) )
    14:01:35.048 T:139654271923968 ERROR: AddOnLog: MediaPortal PVR Client: MultiFileReader has error 0xe2 in Loop 0. Try to clear SMB Cache.
    14:01:35.048 T:139654271923968 DEBUG: AddOnLog: MediaPortal PVR Client: RefreshTSBufferFile: filesAdded -1, filesAdded2 -2, filesRemoved -1, filesRemoved2 -2.
    14:01:35.048 T:139654271923968 DEBUG: CSMBFile::Close closing fd 10000
    14:02:05.048 T:139654271923968 INFO: AddOnLog: MediaPortal PVR Client: FileReader::OpenFile() smb://TVServer:tvserver@NEWTVSERVER/Timeshift/live3-1.ts.tsbuffer.
    14:02:35.060 T:139654271923968 DEBUG: CSMBFile::Open - opened smb://USERNAME:pASSWORD@NEWTVSERVER/Timeshift/live3-1.ts.tsbuffer, fd=10000
    14:02:35.061 T:139654271923968 DEBUG: AddOnLog: MediaPortal PVR Client: OpenFile: OpenFile(smb://TVServer:tvserver@NEWTVSERVER/Timeshift/live3-1.ts.tsbuffer) succeeded.
    14:02:35.068 T:139654271923968 DEBUG: CSMBFile::Open - opened smb://USERNAME:pASSWORD@NEWTVSERVER/Timeshift/live3-1.ts.tsbuffer1.ts, fd=10002
    14:02:35.069 T:139654271923968 DEBUG: CSMBFile::Close closing fd 10002
    14:02:35.070 T:139654271923968 DEBUG: CSMBFile::Open - opened smb://USERNAME:pASSWORD@NEWTVSERVER/Timeshift/live3-1.ts.tsbuffer2.ts, fd=10002
    14:02:35.071 T:139654271923968 DEBUG: CSMBFile::Close closing fd 10002
    14:03:05.073 T:139654271923968 ERROR: Read - Error( -1, 110, Förbindelsen dog ut (timeout) )
    14:05:59.373 T:139654734976768 ERROR: Previous line repeats 5 times.[/collapse]

    So, it looks like KODI is having trouble accessing the timeshift files over the network.
    For such problems it's usually best to ask for help on the KODI forum.
     

    tomoqv

    Portal Pro
    June 28, 2006
    125
    4
    Stockholm
    Home Country
    Sweden Sweden
    I have now opened port 8080 for MP TV Server in my router firewall config. Read somewhere that port shouldn't be blocked by a firewall. Could that have something to do with my issue?
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,222
    Home Country
    New Zealand New Zealand
    Country flag
    I doubt it.
    According to the KODI log file, KODI is accessing the time-shift files directly via SMB shares. If that's the case, the streaming server won't be used at all. Also, the streaming server doesn't use port 8080.
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,222
    Home Country
    New Zealand New Zealand
    Country flag
    No, nothing specific. In general reliable SMB shares require reliable networking stacks... so think NIC drivers, firewalls, routers, OS SMB protocol config etc..
     

    Users who are viewing this thread

    Similar threads

    Thanks for your feedback!
    Thanks for your feedback!
    I'm not sure exactly when this started, I've been dealing with it for a while until I had time to troubleshoot it. I'm pretty sure...
    Replies
    34
    Views
    989
    • Locked
    Great! Will you capture this in a Jira so that it shows up in the Changelog?
    Great! Will you capture this in a Jira so that it shows up in the Changelog?
    MediaPortal 2 Version: 2.1.3 Description Hi there, first of all many thanks for all the great work you are doing! I run a...
    Replies
    6
    Views
    1K
    I couldn't track down WHY my kingston V200 SSD was crashing my system but replacing it addressed everything! First I used another HDD (proof of concept) later purchasing a new SSD... haven't looked back as spending $60 got me 100% resolved!
    I couldn't track down WHY my kingston V200 SSD was crashing my system but replacing it addressed everything! First I used another...
    Hi everyone, I do have two issues with my HTPC in which I would appreciate any help to track them down. 1. For a couple of days...
    Replies
    21
    Views
    2K
    There are some known issues with FFWD/RWD - 1.2.0 beta will have some fixes for these. Tony
    There are some known issues with FFWD/RWD - 1.2.0 beta will have some fixes for these. Tony
    MediaPortal Version: 1.1.3.0 MediaPortal Skin: StreamedMP 1.4.12 Windows Version: Windows Server 2008 R2 CPU Type: i7 @ 3.5GHz...
    Replies
    9
    Views
    3K
    ^ I believe this issues is resolved now. Please try next public SVN
    ^ I believe this issues is resolved now. Please try next public SVN
    MediaPortal Version: 1.1.0.0 BETA MediaPortal Skin: Default Windows Version: MCE SP3 CPU Type: Intel 2.6Ghz Dual Core HDD...
    Replies
    10
    Views
    2K
    Top Bottom