Bug CPU 100% since 14.1
#1
Hi!!

I have a problem with kodi in raspberry pi.

I think that I have located the problem.

Since version 14.1 something has changed in the part of code of upnp Client o DNLA Client. (with version 14.1 No problems... but the newest has the problem p.e. 16.1)

I have 2 DLNA servers in my network in other machines (minidlna, xupnpd) and I think that one of them, done that the cpu of raspberry pi goes 100%

I have activated a detalled log in advancedsettings.xml:

Code:
<advancedsettings>
<loglevel>2</loglevel> <!-- Change this to "1" to hide the on-screen debug log text -->
<debug>
<extralogging>true</extralogging>
<setextraloglevel>8192</setextraloglevel>
<showloginfo>true</showloginfo>
</debug>
</advancedsettings>

and I can see a lot of lines about DNLA client:

Code:
12:18:53 8155.075195 T:1962692608    INFO: Platinum [platinum.media.server.browser]: Device Removed: Device GUID: 4d696e69-444c-164e-9d41-dc9c520747edDevice Type: urn:schemas-upnp-org:device:MediaServer:1Device Base Url: http://192.168.1.2:8200/Device Friendly Name: P2tube
12:18:53 8155.075684 T:1962692608    INFO: Platinum [platinum.media.server.browser]: Device Removed: Device GUID: 60bd2fb3-dabe-cb14-c766-0e319b54c29aDevice Type: urn:schemas-upnp-org:device:MediaServer:1Device Base Url: http://192.168.1.2:4044/Device Friendly Name: MovistarTV
12:18:53 8155.077148 T:1962692608    INFO: Platinum [platinum.core.event]: Deleting subscriber (uuid:62d51069-d3f7-11e6-bd38-dc9c520747ed)
12:18:53 8155.077637 T:1962692608    INFO: Platinum [platinum.core.event]: Deleting subscriber (uuid:62d65a0d-d3f7-11e6-bd38-dc9c520747ed)
12:18:53 8155.078125 T:1962692608    INFO: Platinum [platinum.core.event]: Deleting subscriber (uuid:a102f34c-a8ea-4cd3-b6b5-149ec7bfb8b3)
12:18:53 8155.078125 T:1962692608    INFO: Platinum [platinum.core.event]: Deleting subscriber (uuid:1a9a8c05-eabb-4080-a2cb-3fc0f38697e2)

A part of full file kodi.log is:

http://pastebin.com/ghZN9Qcs

I disable all option of upnp/dlna in:
Settings->Service Settings->UPnP / DLNA.

even I have revise the file: guisettings.xml

Quote:<upnpannounce default="true">false</upnpannounce>
<upnpcontroller default="true">false</upnpcontroller>
<upnplookforexternalsubtitles default="true">false</upnplookforexternalsubtitles>
<upnprenderer default="true">false</upnprenderer>
<upnpserver default="true">false</upnpserver>

However in the logs I see the kodi try to subscribe my DLNA servers

I can find other people with the same issue:

http://openelec.tv/forum/108-database/80...ase#161187

Is it posible disable the DLNA client in Kodi??

Thanks for your help.

Regards
Reply
#2
I've seen this when one of the media sources is a upnp source. Remove the source and it will stop.
Reply
#3
Hi @BigNoid!!

Could you explain me??

Must I stop my 2 DLNA servers?? or What can I do?

The file sources.xml don't have any upnp source:

Quote:<sources>
<programs>
<default pathversion="1"></default>
</programs>
<video>
<default pathversion="1"></default>
<source>
<name>Videos</name>
<path pathversion="1">/storage/videos/</path>
<allowsharing>true</allowsharing>
</source>
<source>
<name>Peliculas</name>
<path pathversion="1">nfs://192.168.1.2/nas/videos/Peliculas/</path>
<allowsharing>true</allowsharing>
</source>
</video>
<music>
<default pathversion="1"></default>
<source>
<name>Music</name>
<path pathversion="1">/storage/music/</path>
<allowsharing>true</allowsharing>
</source>
</music>
<pictures>
<default pathversion="1"></default>
<source>
<name>Pictures</name>
<path pathversion="1">/storage/pictures/</path>
<allowsharing>true</allowsharing>
</source>
</pictures>
<files>
<default pathversion="1"></default>
</files>
</sources>

Thanks
Reply
#4
I guess this is a different problem than mine. I had a upnp source and it would continuously announce updates to that source even though upnp was completely disabled.
Can't help you any further with this than. In any case, post a full debug log so maybe someone who knows about upnp can have a look.
Reply
#5
if you don't need Kodi to share your local library via UPNP, then please try disabling library sharing via UPNP (especially "announce library updates") and see if things get better.
Reply
#6
Hi @da-anda

I have all disable:

guisettings.xml
Quote: <upnpannounce default="true">false</upnpannounce>
<upnpcontroller default="true">false</upnpcontroller>
<upnplookforexternalsubtitles default="true">false</upnplookforexternalsubtitles>
<upnprenderer default="true">false</upnprenderer>
<upnpserver default="true">false</upnpserver>

I need that kodi don't try to sustribe to the DLNA servers that there are in my local network.

Thanks
Reply
#7
Hello!!!

After the week-end testing... I can say that I find the problem. Something without sense... but...

I have a Ubuntu Server 14.04.5 LTS (amd64) with the package xupnpd instaled:

Quote:dpkg -l | grep xupnpd
ii xupnpd 1.03-ubuntu1 i386 xupnpd - eXtensible UPnP agent

If I stop this service, all work properly. however, if this service is running, Kodi, start to make threads, and the kodi procces uses the 100% of CPU and it's produces forzen image.

After this. I decide to try in another machine, so I stopped XUPNPD in the ubuntu server, and install xupnpd in a raspberry pi that I had lost in a drawer using:

https://github.com/txt3rob/xupnpd-raspberry-armhf

And in a raspberry pi 1, all work properly.

I can´t understand why, the same package, the same version, and the same configuration file, can make different behavior... and make kodi go mad...

in the raspberry pi 1:

Quote:ii xupnpd 1.03-ubuntu1 armhf xupnpd - eXtensible UPnP agent

I don't kow if it is a bug of kodi, a bug of xupnpd x86 or.... I don't know.

Thanks for your help.

regards
Reply

Logout Mark Read Team Forum Stats Members Help
CPU 100% since 14.10