Linux Kodi hangs without warnings
#1
Thumbs Down 
Hi All,

I'm using ubuntu 15.04 and after the change from XBMC to Kodi is when I started having this issue. It happens out of nowhere, it can hapen on the main screen, after watching several tv chapters, trying to install a new add-on. And the thing is that it kills completely the machine, I can't ssh or even if I'm logged in kill the process.

What could it be happening, how and which logs could I send?

Regards,
Djcrash1981.
Reply
#2
Tell us about your hardware: Provide dmesg | pastebinit and a kodi.log after boot up.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
It's an old desktop computer.
Mem: 3 GB Memory
CPU: AMD PHenom 8450 Triple-Core Processor
Graphics: Gallium 0.4 on ATI RS740
2 HD: SDA 120 gb; SDB 320 gb
OS: Ubuntu 15.04 64 bits
Dmesg: http://pastebin.com/aU1q86x9
Kodi.log: http://pastebin.com/sCCbPDA1

And that's all I could get before it freezes and I have to reboot to use the PC, this only happens with kodi, all other programs works issueless.
Reply
#4
I've got the same problem. Computer with Kodi hangs randomly, logs are empty, there is no point to start looking for the cause. I've already checked different power supplies, another hdd. Also tested Kodi 15.1, and 15.2 beta (compiled - Aug 29).

OS: Lubuntu 15.04 64 bits
Mem: 8Gb
CPU: Intel® Quad-Core Processor J1900 (2 GHz)
Graphics: Intel integrated (Intel® 7th generation (Gen 7) graphics)
1 HD: 1,5TB WDC WD15EARS-00MVWB0

Dmesg: http://pastebin.com/m8h85qpW
Kodi.log: http://pastebin.com/gq9zW3QA
lshw: http://pastebin.com/1LwxSnVE

Other apps works of course flawlessly. If there is a way to solve this, i'm waiting for instructions how to get this solved.

I've also noticed, that during work kodi uses almost whole memory, maybe there is a problem. I've tested RAM with memtest+, and it shows 4 full passes with no errors.
Reply
#5
Quote:CPU: Intel Quad-Core Processor J1900 (2 GHz)

You really have a problem: https://bugs.freedesktop.org/show_bug.cgi?id=88012

but a different one than the op poster. Your bug has nothing to do with kodi.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#6
(2015-09-14, 19:20)djcrash1981 Wrote: Kodi.log: http://pastebin.com/sCCbPDA1

(2015-09-14, 23:00)Shev Wrote: Kodi.log: http://pastebin.com/gq9zW3QA

Please post debug logs. Both of your kodi logs are just regular logs:

12:12:41 T:140311893874624 NOTICE: Disabled debug logging due to GUI setting. Level 0.

to Settings → System → Debugging and turn on Enable debug logging. and then restart Kodi to get fresh logs

Cheers!
Reply
#7
For the BYT guy it does not matter - he is doomed anyways :-) Can either downgrade to kernel 3.16 or self patch a recent kernel with the patch provided in the above kernel bug.

Alternatively - if he trusts me as a stranger:

Code:
wget https://dl.dropboxusercontent.com/u/55728161/linux-headers-3.19.2-legacy%2Bedid%2B_3.19.2-legacy%2Bedid%2B-10.00.Custom_amd64.deb
wget https://dl.dropboxusercontent.com/u/55728161/linux-image-3.19.2-legacy%2Bedid%2B_3.19.2-legacy%2Bedid%2B-10.00.Custom_amd64.deb
sudo dpkg -i *edid*deb
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#8
Quote:For the BYT guy it does not matter - he is doomed anyways

Well, how come then with kodi closed .mkv files runs normally? If Kodi is closed, lubuntu can work 24/7 without hangs.

I've just watched 3h mkv file on gmplayer without any problems. The same file causes hangs after 20-40 minutes of play in Kodi.

Tomorrow i will generate these debug logs.
Reply
#9
(2015-09-15, 00:12)Shev Wrote:
Quote:For the BYT guy it does not matter - he is doomed anyways

Well, how come then with kodi closed .mkv files runs normally? If Kodi is closed, lubuntu can work 24/7 without hangs.

I've just watched 3h mkv file on gmplayer without any problems. The same file causes hangs after 20-40 minutes of play in Kodi.

Tomorrow i will generate these debug logs.

I dont think it has anything to do with the videos....i think its just the kernel bug and Kodi makes it crash your system.

Least thats how i read it. Sounds like your system works fine without kodi, but when you turn it on there is problems. And that link fritsch points to the root cause to being a kernel issue, not kodi

Cheers!
Reply
#10
Yeah it's for sure this kernel bug.

Kodi is OpenGL and therefore the power state of the GPU changes fast as hell.

If you want to test without touching any Software: Go to your Bios and disable the C6 powerstate. Set it to C1 and you will see.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#11
Ok, according to bugtrace i should apply these 2 option: https://bugs.freedesktop.org/show_bug.cgi?id=88012#c33 to kernel. Any help how to do this?Wink I know i can use fritsch links and install it. But knowing the steps to do it alone would be easier to do it on future kernels.
Reply
#12
If you choose this solution, you need to completely rebuild the kernel, which is certainly offtopic here.

I gave you two suggestions (one without any SW change) and one with a prebuild kernel.

Try one of those - start with the Bios change and set Max CState to C1. Beware that your BYT will get warmer.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#13
(2015-09-14, 23:13)fritsch Wrote: For the BYT guy it does not matter - he is doomed anyways :-) Can either downgrade to kernel 3.16 or self patch a recent kernel with the patch provided in the above kernel bug.

Alternatively - if he trusts me as a stranger:

Code:
wget https://dl.dropboxusercontent.com/u/55728161/linux-headers-3.19.2-legacy%2Bedid%2B_3.19.2-legacy%2Bedid%2B-10.00.Custom_amd64.deb
wget https://dl.dropboxusercontent.com/u/55728161/linux-image-3.19.2-legacy%2Bedid%2B_3.19.2-legacy%2Bedid%2B-10.00.Custom_amd64.deb
sudo dpkg -i *edid*deb

Thanks Fritsch so if I'm reading correctly this or the BIOS change should do the trick?

Now, here is the strange thing, I've removed the .kodi folder and reopened a new session, I haven't added any folders so my library is empty and kodi has been running for 1 day and 16 hrs and I've been watching some videos without issue and downloading their subtitles.

Here is the log: http://pastebin.com/9Vhph8Pz

So I'm guessing that the issue could be when I add new paths to the library and it starts doing the scan. I'll try that and let you know my findings.

Regards.
Reply
#14
Thanks Fritsh for your advice as I have that bug also after doing a Kernel update last Friday. I understand the issue is with changing the CPU idle/load states too fast and is probably exacerbated by the VAAPI HW acceleration in Kodi which tends to trigger the issue when watching video material. I'm only concerned about your statement "Beware that your BYT will get warmer"! Excuse my ignorance but what is 'BYT'? Is it a specific Intel platform (my PC that exhibits this seg fault is a Intel i3 based platform)? What will get 'warmer' and do you believe it will stress the HW in some way? Also, can other CStates, other then 6/7, be used (e.g. C1E or C3)? Finally, and perhaps more importantly Smile, do you believe this Intel platform-specific kernel bug will be fixed in a upcoming public kernel update ... or is our best bet to just set CState to C1 in the BIOS (or set the Kernel parameter “idle=halt” to force C1) and live with higher idling power consumption?

Thanks again for your support Smile

Cheers
Reply
#15
If you also have the bug _with_ my kernel - you have a different issue. Make 100% sure that you are running this kernel.

Did C1 fix it?

Concerning kodi + vaapi: Yes, we have an architecture designed for full throughput. Bad drivers always happen with kodi first ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi hangs without warnings0