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

FIXED Unable to initialize ws281x library.

Discussion in 'Bug Reports' started by Seeder98, 17 July 2016.

  1. Seeder98

    Seeder98 New Member

    Messages:
    9
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Hello,

    I installed hyperion about a week ago. Everything was working just fine until today. Today I made a reinstall of OSMC on my RaspberryPi 3 Model B. After that I installed hyperion, everything still working. But then I realized I need that SD card (32GB) for other device. So, I installed OSMC and Hyperion on another SD card (8GB).

    But this time I can not get hyperion working with my LED strip. I am using "WS281X (RPi1, RPI2, RPi3)" setting in the HyperCon. And this is the only option, which is not working now. The hyperion service will successfully start with any LED Type except this one.

    Code:
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: Hyperion Ambilight Deamon (447)
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: Version   : V1.03.0 (GitHub-b8f7642/c5d5f2d-1465599599
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: Build Time: Jun 11 2016 01:39:39
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: HYPERION INFO: ColorTransform 'default' => [0; 45]
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: HYPERION INFO: ColorCorrection 'default' => [0; 45]
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: HYPERION INFO: ColorAdjustment 'default' => [0; 45]
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: LEDDEVICE INFO: configuration:
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: {
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: "colorOrder" : "rgb",
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: "leds" : 24,
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: "name" : "MyHyperionConfig",
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: "type" : "ws281x"
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: }
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: whiteAlgorithm ::
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: Unable to initialize ws281x library.
    ssh in:     Jul 17 00:58:35 osmc hyperiond[447]: terminate called after throwing an instance of 'int'
    ssh in:     Jul 17 00:58:35 osmc systemd[1]: hyperion.service: main process exited, code=killed, status=6/ABRT
    ssh in:     Jul 17 00:58:35 osmc systemd[1]: Unit hyperion.service entered failed state.
    ssh in:     Jul 17 00:58:35 osmc systemd[1]: hyperion.service start request repeated too quickly, refusing to start.
    ssh in:     Jul 17 00:58:35 osmc systemd[1]: Failed to start Hyperion Systemd service.
    ssh in:     Jul 17 00:58:35 osmc systemd[1]: Unit hyperion.service entered failed state.
    I did everything just the same way as before. I have no idea what could possibly change.
    I even tried installing the system back on the 32GB SD card, no luck.

    As this error occurs while installing Hyperion by your offical guide, I am reporting it as a bug.

    Any help will be appreciated.

    Thank you :)


    EDIT:

    It is still working on RPi 1 Model B+.
    Is there any log or so, where I can get deeper information about why it is Unable to init a library ? Thanks
     
    Last edited: 17 July 2016
  2. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Can you get me a copy of your /proc/cpuinfo please

    Where did you install Hyperion from ? How old is it ?
     
  3. Seeder98

    Seeder98 New Member

    Messages:
    9
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Sure, here is the copy.

    I tried installing hyperion directly by using install button in HyperCon as well as manualy using:
    Code:
    sudo apt-get update
    
    sudo apt-get install libqtcore4 libqtgui4 libqt4-network libusb-1.0-0 ca-certificates
    
    wget -N https://raw.github.com/tvdzwan/hyperion/master/bin/install_hyperion.sh
    
    sudo sh ./install_hyperion.sh
    Hyperion version: V1.03.0
    Build Time: Jun 11 2016
     
    Last edited: 17 July 2016
  4. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Where the hardware revision info at the end of cpuinfo - that's the bit I need
     
  5. Seeder98

    Seeder98 New Member

    Messages:
    9
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Sorry for that. I added those informations to the file on dropbox now. You can open it again.
     
  6. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    It looks like you've set the warranty void bit and that is causing the platform detection code give up.

    This is already fixed in Hyperion-Ng which uses a later commit of the underlying rpi_281x library.

    I've opened an issue against the old code base - https://github.com/hyperion-project/hyperion/issues/711
     
  7. Seeder98

    Seeder98 New Member

    Messages:
    9
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Yeah, I've probably set the warranty bit. I just haven't thought it can be related.
    Is there any next-gen release already or it needs to be compiled ? install_hyperion.sh from ng rep obviously does install the same non-ng hyperion.

    Thank you !
     
  8. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    @Brindosch is planning another release of the old Hyperion and should be updating the library.

    Hyperion-Ng is build from source at the moment because of the rate of change.
    It works well tho !
     
  9. Brindosch

    Brindosch Active Member

    Messages:
    658
    Hardware:
    RPi1/Zero, RPi2, RPi3, +nodeMCU/ESP8266
    Do we need updated subproject ids?
     
  10. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Yes - for the very latest updated device ids
     
  11. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    We've merged the updates - just waiting on brindosch to built test and release the newer build
     
  12. Seeder98

    Seeder98 New Member

    Messages:
    9
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    It's working now. Thank you for a quick fix ;)