CPU 100% in raspberry pi 1

  • Hi Everybody!

    I have a problem, and I need some of your help.
    I Have a Raspberry pi 1 with 512 MB of RAM
    I did the following:

    I download the image of Libreelec for RPi1 (7.0.3)
    I write the SD with dd command in ubuntu.
    I power on the RPi1
    I only do the welcome configuration (hostname: libreelec -> Networking: Wired (DHCP) -> Sharing and remote access: SSH enabled, samba disabeld)
    And change the language to spainsh, and county time zone to Europe, Spain, Madrid.
    No more changes, no addons, nothing more.

    and I leave the raspberry pi on, and 2 or 3 hours later my raspberry pi is using the 100% of cpu and It became unusable. (Frozen picture)

    The kody process use the 100% of CPU, as you can see in this image of the command top:

    I have read the info:

    Installing LibreELEC on the RPi - LibreELEC
    Config.txt - LibreELEC
    Raspberry Pi FAQ - LibreELEC

    and nothing of help for me.

    Anyone can help me?

    Do you need same logs or other usefull thing??

    Thanks

    regards.

    Edited once, last by JMaX (January 5, 2017 at 8:58 AM).


  • Nothing happening in the log, so it's possible that some background process(es) are at work, such as scanning for new content or fanart/thumbnails.

    Any solution?

    The process:

    /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd

    No leave the cpu, so my raspberry pi is not usable

    Until now, I don't add any video source.

    Is posible disable the scaning?

    Thanks for your help

    Edited once, last by JMaX (January 5, 2017 at 10:51 AM).

  • I change the log level 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>32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536</setextraloglevel>
    <showloginfo>true</showloginfo>
    </debug>
    </advancedsettings>

    When the process uses the 100% of CPU or if I watch some error in the kodi log, I will upload the log

    Thanks

  • Hi!!

    I think that I have one idea...
    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 up.
    I watched some dlna errors in the log, and I stopped the minidlna server, and reboot the raspberry. Until now the consume of CPU is normal...
    it's a stupid idea.... I think...

    Is it possible turn off the upnp CLIENT of Kodi?

    Thanks.

  • Hi!!

    In this section all is off, even I have revise the file:

    Code
    /storage/.kodi/userdata/guisettings.xml

    and all the option are false:

    Code
    <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 conect my DLNA servers:

    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)

    This error of kodi is happening since 14.1 version. And I can find other people with the same issue:

    OpenELEC Mediacenter - OpenELEC Forum - Kodi crashing with shared MySQL database (1/1)

    part of the log of my kodi is:

    12:18:49 8151.358887 T:1026552736 INFO: Platinum [platinum.core.event]: Creat - Pastebin.com

    regards

    Edited once, last by JMaX (January 6, 2017 at 12:37 PM).

  • 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:

    GitHub - txt3rob/xupnpd-raspberry-armhf: Deb of xupnpd for raspberry pi

    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


    dpkg -l | grep xupnpd
    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