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

tomoqv

Portal Pro
June 28, 2006
125
4
Stockholm
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,571
    8,218
    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
    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,571
    8,218
    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
    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,571
    8,218
    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,571
    8,218
    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 (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    J IPTV Sweden, need help with m3u list MediaPortal 1 Plugins 14
    U [solved] Beginner needs help recording live TV General 19
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    milagroso Remote control with EventGhost - I'm stuck, need help General 3
    W Need help getting my TV guide working again General Support 1
    A I need help with 110 and 119 west Installation, configuration support 21
    A Need help rescaning Channels for 110 and 119 west MediaPortal 1 Talk 2
    C EPG-Buddy: so close to no help needed Electronic Program Guide 8
    S [solved] Alright, I need help with BD ISO's Newcomers Forum 19
    ajs LMH need help! Help plz ... How select episodes in Online Rating sort order My TVSeries 21
    J Help with new grabber file. WebEPG 1
    wizard123 [solved] MP1 Build help MediaPortal 1 21
    D Please help with getting Schedules Direct to work Newcomers Forum 10
    A IPTV from https m3u8 urls - Help General 6
    M A little help with new install pls Installation, configuration support 3
    N Music player help Listen Music 4
    A Enigma2 receiver channels on Windows PC with Media Portal help General Support 0
    A Help! MP2 - DVB-T Not recognised (DRIVERS?) General 12
    D Font size reduced. help. Skins and Plugins Installer (MPEI) 0
    S Gpu/hdtv/mp setup help please Newcomers Forum 3
    mjmapi Help, getting My TVSeries 16
    F Setup Help General 1
    B pls help. tv stops playing but resumes if I push pause and play General 0
    TLD Help setting up HVR-1955 remote & blaster on MP Remotes 20
    ajs [solved] Help plz :) Moving Pictures write to LatestsMediaHandler log ... Moving Pictures 4
    Top Bottom