Kodi Community Forum

Full Version: Kodi freezes 1-3 seconds after playing any video
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Hi there

I've been a Kodi user for many years, this is the first time I'm quite stumped and cannot glean anything from the logs for this unfortunately consistent, yet broad error. I've searched here and other resources but the results are too broad and I cannot find a specific enough search term to narrow down my search. "Kodi freezes on video playback" is just far too generic! First post here, however been a long time member.

Since upgrading from 18.0 to 18.1, any video I try to play will freeze on the first frame of video, with about 1-3 seconds of audio played before Kodi freezes completely (mouse locked too, so I need to restart the WM as well).

This is on Ubuntu 18.04 - all video files play with no issue directly from Ubuntu using VLC so not a storage or media issue. I've tried a fresh .kodi directory and re-importing my library - same issue. I've tried many different movies and shows all with the same, consistent result.

Debug logs uploaded: https://paste.kodi.tv/naqanapapu.kodi

Thanks for any thoughts or suggestions.
The forum moderators have determined that banned addons (wiki) are present on your system. To receive assistance here, these banned items must be removed. If a clean log is not submitted within 3 days, then the relevant post(s) will be removed after this time.
Thanks
I have made a clean .kodi directory so default everything, fresh scan of media - same issue.

New debug log: https://paste.kodi.tv/uxavunopax.kodi

All video files still freeze kodi after 1-3 seconds.

Distro: Ubuntu 18.04.2 LTS
Hardware: i686
GIT Revision: 18.1 Git:20190217-8cfdc89

I looked to rollback to Kodi 18.0 but it looks like that version is no longer available.
That looks suspicious:

2019-02-28 21:08:33.003 T:2991416704 DEBUG: libva info: va_getDriverName() returns 0

could you please check if you have those installed:

https://packages.ubuntu.com/bionic/video/i965-va-driver
2019-02-28 21:08:33.003 T:2991416704 DEBUG: libva info: va_getDriverName() returns 0 <- that looks perfectly fine. 0 is good. -1 would be a problem.
Yes, i965-va-driver definitely installed.
All media files play fine from Ubuntu using VLC, only Kodi is freezing, consistently.

Not sure what else to try. Maybe downgrading to 17 to test to at least rule out an 18.1 issue (as 18.0 worked).
Downgrading to kodi=2:17.6+git20180430.1623-final-0bionic works fine, so it does appear to be an issue related to kodi-18.1.
I purged the install and re-installed 18.1, same issue - consistent freezing after 1-3 seconds.

At least now I can play media with 17.6 (I rolled back again), but - well - that's not what anyone wants. 18.a is where it should be. Particularly if there are very few other known issues.

Why is 18.0 no longer available? I'd rather roll back to that than 17.6

I'm very intrigued - first time in 6+ years of xbmc/kodi, upgrading frequently along the way, that I cannot identify the cause of an issue myself or at least find guidance on my issue quickly. 

I'm a long time linux user so reasonably familiar and keen for any additional suggestions or troubleshooting steps. Time for a backtrace?
(2019-03-01, 09:50)scronkey Wrote: [ -> ]Time for a backtrace?
 That would reveal the issue
When kodi freezes it does not appear to create a core file. Not that I could find in my home dir, or in /var/crash.

I assume this is because kodi is not crashing, it is freezing. Ctrl-c does not terminate either, the only way is to kill the kodi-x11 process.

Is there another way to force a core file so I can get a backtrace?
Run Kodi with gdb. When it deadlocks create a backtrace with this command: thread apply all bt
Thanks - I've grabbed the backtrace by running kodi-x11 from gdb.

When loading in gdb it did state "no debugging symbols found" so not sure if that means it's not useful?

Backtrace: https://paste.kodi.tv/ugofivupoj
Debug log: https://paste.kodi.tv/vatuvifuke.kodi

Thanks again for any thoughts or additional troubleshooting steps.
Could you please create more than a single bt when the app hangs.
Sure - will do whatever is requested.

What is the best method to capture multiple backtraces when kodi freezes? (I'm not very familiar with gdb, so happy to take a pointer or two)

Should I run "thread apply all bt", capture the output then run "thread apply all bt" again, multiple times during the same frozen instance?
Or, run kodi recreating the freeze multiple times and capture each bt?
(2019-03-02, 12:07)scronkey Wrote: [ -> ]Should I run "thread apply all bt", capture the output then run "thread apply all bt" again, multiple times during the same frozen instance?
 Yes. This shows if a thread is really stuck at some point.
Multiple bt captured in the backtrace file below.

Backtrace: https://paste.kodi.tv/olinozoxih
Debug log: https://paste.kodi.tv/icukiwepax.kodi

I think I ran "thread apply all bt" seven times. Let me know if I can run or show anything else.
Pages: 1 2 3 4