stream stalled – picture freeze

Hello.

I am running a LE8 with KODI krypton 17.1 (details below). I watch TV using a simple PVR client. After a couple of hours, when I leave the PVR running, the picture freezes.
I have sometimes noticed the very same behavior when I was watching a live stream for a long time so it's not "PVR only" bug (filmon free stream).
Checking the logs, the last line is always: (full log linked below)
"NOTICE: CVideoPlayerAudio::Process - stream stalled"

The problem takes a while to reproduce (sometimes about 5-6 hours) but it always reproduces.
In order to get KODI to "unfreeze" I should stop the stream (using "X" button on keyboard), open a different stream (opening the same one doesn't do anything) and only then I can switch back to the original stream.

I am attaching the full log as per rules but it is very long so I am attaching a snippet from the same logs too illustrating the problem: https://pastebin.com/DHc3iu6c (link to full log below)

From the snippet, I can see that the "freeze" happened at "05:38:09". When I arrived to check the TV at 11am, the picture was still frozen.
Sometimes, it seems the stream magically "unfreezes" after being frozen for couple of hours.

I am a software developer myself but I have no idea about KODI internals. Digging the code I found a where the problem happens but as I don't understand the flow I cannot see how can I fix it.
https://github.com/xbmc/xbmc/blob/master...o.cpp#L273
There as well seems to be a weird "sleep(10)" and that is inside a loop...
If anyone has any proposals I more than happy to implement it, recompile KODI and do a QA for the fix.

I have found another thread but on FireTV stick that seems to have the same problem but for them it seems that the problem got fixed.
http://forum.kodi.tv/showthread.php?tid=303248&page=2

I am using LibreELEC for amlogic boxes: https://github.com/kszaq/LibreELEC.tv/tree/8.0.1c
Hardware: arm (64bit kernel, 32bit userspace) s905x chipset, mali-450 GPU. 2gb ram, 16gb storage.
Full log: https://pastebin.com/KB04QW37
KODI revision: LE pkg version "fc1619b" 17.1 krypton.

Any help/info is highly appreciated.

Issues With Iptv Add-ons

I use Kodi 17 on a new Nvidia Shield TV box. I have been adding a lot of add-on's with no issue. Those that run movies and sports per-se. But every IPTV type add-on I get installed, I get a error log message. I have read the log and it reads "Control 5...

Python Interpreter 2.7, 2.6 unicode size UCS2 or UCS4

Hi I am crazy enough to create cbinded addons for kodi running on linuxes. I am following PEP513, manylinux1 format with libcso.6 dependency only. Rest of the modules are compiled statically. My question is, in default kodi distributions>=13, is ...

TV Shows with External Player Causing Kodi to Hang on Return

Good day,

I have a strange issue. I recently built a new Windows 10 machine and installed the latest version of Kodi (17.1). I have created my playercorefactory and advancedsettings XML files to allow for external video playback with VLC, just as I did with my old Windows machine.

I am able to play MKV files that are categorized as movies without issue. Kodi launches the external player and returns to normal after the MKV file is closed with the external player.

The issue I’m having is with TV Shows, also using MKV files. Kodi will launch the external player and everything works perfectly. I can close the external player and return to Kodi, and everything within Kodi appears okay (I can navigate, click into menus, etc.). However, when I attempt to exit or launch another video, Kodi freezes and must be killed through Task Manager.

Again, this only happens when watching a TV Show. Movies play and act fine using the external player. And for what it’s worth, the MKV TV Show files will play perfectly fine using Kodi’s internal player.

I installed the previous version of Kodi (Jarvis) and the same issue occurred. It’s as if a script within the TV Shows is causing the hang? I do have a clean install with zero user add-ons.

Below is my relevant information and link to my log file:

1. Kodi Version 17.1
2. Windows 10
3. Intel Core I5 6600 Skylake
4. 16GB RAM
5. AMD Radeon RX 460, Driver Version 17.2.1 (AMD HDMI audio in use)

Log File: https://pastebin.com/gd54BHDP

Thank you for your time.

How does the Power Off work?

Hi, I would like to change the way the libreELEC based system shutdown timeout is done. Question: What part handles the power off timer function? Why? The Raspberry in the next room uses the shared folders on the system. After some time the system sh...

Have to change audio setup on each file

Hello, When I play a video file on my Nvidia Shield with Kodi 17.1, I randomly don't have sound. If I open the "audio" menu and switch "on" or "off" the option "stereo upmix", the sound comes back. It's really a pain in the foot to have to go to this...

Video playback decoders

I'm on Krypton 17.1 and an Intel NUC running Windows 10x64. In Windows itself in its media player and even in Mediaportal playback I get low cpu usage and instant response when seeking videos of 1920x1080. But in kodi I get higher cpu usage and secon...

Buffering

My old android box started to buffer a lot ,so I bought a h96 pro ,now same thing on every channel ,called my provider and they say wifi is all good,got Kodi 17 ,why does continue to buffer?

Keyboard map asking to delete item

Hi, Having issues with my harmony remote. Most of the time the "Exit" button goes back as I'd like, but when on my video menus it's asking me if I'd like to delete the item from the library. Can anyway advise why this might be happening and point me to...

List Cache Keeper – Reshow media plugin lists faster

Reshow media plugin lists faster. Keeps media plugin list's cache files so they can be used to reshow lists faster. Lists can be automatically expired after a specified number of hours or manually refreshed via context menu or keymap. Once installe...

Super favoirites issue

Thank you for such an amazing skin , Am having an issue with super favourite, when i create a super favourite, then add a few addons for example to it then add it as a tile in the Home screen, then open it , its ok , but going back to the home screen i...

addContextMenuItems

I have dug up our old Emby addon to refresh with the latest changes to both Kodi and Emby. This is the original one that loads lists of items from the Emby server displays them for browsing and playback selection. I noticed now with the context menu I...