1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RPi + OpenELEC KodiCheck error

Discussion in 'Software Support' started by kokan, 2 March 2017.

  1. kokan

    kokan New Member

    Messages:
    5
    Hardware:
    RPi3, +PhilipsHue
    Hello guys,

    I have finally managed to setup Hyperíon on my machine using Hue Lights and it works, for a while at least. But after a while the lights just stop changing, and I have to reboot the machine for it to work again for while.

    I checked the logs and it says something about KodiCheck error: kodi connection error (0).
    No ideia what is going on here... Any help would be much appreciated!

    Thank you,
    Kokan

    Here is my log:

    Code:
    Hyperion Ambilight Deamon (411)
        Version   : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
        Build Time: Jul 25 2016 06:54:40
    INFO: Selected configuration file: /storage/.config/hyperion.config.json
    LEDDEVICE INFO: configuration:
    {
        "colorOrder" : "rgb",
        "lightIds" : [ 8, 9 ],
        "name" : "MyPi",
        "output" : "192.168.0.25",
        "switchOffOnBlack" : false,
        "transitiontime" : 1,
        "type" : "philipshue",
        "username" : "username"
    }
    
    HYPERION INFO: Not creating any smoothing
    EFFECTENGINE INFO: 27 effects loaded from directory /storage/hyperion/effects
    EFFECTENGINE INFO: Initializing Python interpreter
    INFO: Hyperion started and initialised
    INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    started
    INFO: Kodi checker created and started
    INFO: Json server created and started on port 19444
    INFO: Proto server created and started on port 19445
    DISPMANXGRABBER INFO: Display opened with resolution: 1920x1080
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    INFO: Frame grabber created and started
    KODICHECK ERROR: Kodi Connection error (0)
    BORDER SWITCH REQUIRED!!
    CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    EFFECTENGINE INFO: effect finished
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    KODICHECK ERROR: Kodi Connection error (0)
    terminate called after throwing an instance of 'std::out_of_range'
      what():  vector::_M_range_check
    Aborted
    

    And here is my config.file:

    Code:
    // Automatically generated configuration file for Hyperion ambilight daemon
    // Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
    // Generated by: HyperCon (The Hyperion deamon configuration file builder)
    // Created with HyperCon V1.03.1 (11.06.2016)
    
    {
        // DEVICE CONFIGURATION
        "device" :
        {
            "name"       : "MyPi",
            "type"       : "philipshue",
            "output"     : "192.168.0.25",
            "transitiontime"     : 1,
            "switchOffOnBlack"     : true,
            "username"     : "username",
            "colorOrder" : "rgb",
            "lightIds" : [8,9]
        },
    
     
        // FRAME GRABBER CONFIG
        "framegrabber" :
        {
            "width" : 64,
            "height" : 64,
            "frequency_Hz" : 5.0,
            "priority" : 890
        },
    
        // BLACKBORDER CONFIG
        "blackborderdetector" :
        {
            "enable" : true,
            "threshold" : 0.01,
            "unknownFrameCnt" : 600,
            "borderFrameCnt" : 50,
            "maxInconsistentCnt" : 10,
            "blurRemoveCnt" : 1,
            "mode" : "default"
        },
    
        // KODI CHECK CONFIG
        "xbmcVideoChecker" :
        {
            "xbmcAddress" : "127.0.0.1",
            "xbmcTcpPort" : 9090,
            "grabVideo" : true,
            "grabPictures" : false,
            "grabAudio" : false,
            "grabMenu" : false,
            "grabPause" : true,
            "grabScreensaver" : false,
            "enable3DDetection" : false
        },
    
        // BOOTEFFECT CONFIG
        "bootsequence" :
        {
            "color" : [0,0,0],
            "effect" : "Rainbow swirl fast",
            "duration_ms" : 3000,
            "priority" : 700
        },
    
        // JSON SERVER CONFIG
        "jsonServer" :
        {
            "port" : 19444
        },
    
        // PROTO SERVER CONFIG
        "protoServer" :
        {
            "port" : 19445
        },
    
        // EFFECT PATH
        "effects" :
        {
            "paths" :
            [
                "/storage/hyperion/effects"
            ]
        },
    
        // NO BOBLIGHT SERVER CONFIG
        // NO JSON/PROTO FORWARD CONFIG
    
        // LED CONFIGURATION
        "leds" :
        [
            {
                "index" : 0,
                "hscan" : { "minimum" : 0.4000, "maximum" : 0.6000 },
                "vscan" : { "minimum" : 0.4000, "maximum" : 0.6000 }
            },
            {
                "index" : 1,
                "hscan" : { "minimum" : 0.4000, "maximum" : 0.6000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.3000 }
            }
        ],
    
        "endOfJson" : "endOfJson"
    }
    
     
    Last edited: 2 March 2017
  2. kokan

    kokan New Member

    Messages:
    5
    Hardware:
    RPi3, +PhilipsHue
    So, no takers? I still haven't managed to figure it out entirely... I switched some values on the blackborder detection and it managed to work for a bit longer, but I am not sure if that was even related...
     
  3. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    918
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    i think it is more a problem with the hue-device which have some problems...but non of our devs have a hue-system...
     
  4. kokan

    kokan New Member

    Messages:
    5
    Hardware:
    RPi3, +PhilipsHue
    It could be, but I noticed that when the movies don't have blackborders, the system tends to work well. But when they are there, he starts giving me these errors.

    I tried disabling the blackborder detection by setting it to false, but the logs still mention the "border switch required" event. I even removed that entire function, but he still does it.

    Any ideas?

    PS: I also noticed that my Plex Server has the same IP (127.0.0.1) as the XBMC address that I use on my conf file. Could this cause issues?
     
  5. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    918
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    border switch required is not an error message...

    127.0.0.1 is localhost

    to be sure: use the same config with another device eg with ws2801(only in the config to see), and see if hyperion crashes too, if no it is a hue error, if it crashes too then we now that we have to look at the blackbar detection
     
  6. kokan

    kokan New Member

    Messages:
    5
    Hardware:
    RPi3, +PhilipsHue

    So, I changed the device type to the ws2801 to try out like you suggested, and all I get is KODICHECK ERROR: Kodi Connection error (0).
     
  7. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    918
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    but it didnt crash, right?
     
  8. kokan

    kokan New Member

    Messages:
    5
    Hardware:
    RPi3, +PhilipsHue
    It didn't give me the out of range error no.

    Do you have any suggestions on what it could be? I will keep trying in the meantime.

    Also, is there a way to use hyperion to control the lights for content that is not coming from the RasPi? Say, to control the lights based on content being streamed from my Plex server on my PC to my Xbox for example?
     
  9. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    918
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    ok then the problem is caused by the hue-devices implementation... non of our devs has a hue system, so we have to wait till anyone with a hue system and coding-skill will help us...

    you could grab the screen from your pc too and send those infos to a rpi