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

RPi + Other Software Hyperion crashes during startup

Discussion in 'Software Support' started by wolpers0815, 10 June 2019.

  1. wolpers0815

    wolpers0815 New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    Hi all,

    unfortunately I have a problem with the Hyperion startup. My system is a Raspberry Pi Zero with a WS2812b at GPIO18 which works fine when I run the following python code for example:
    Code:
    import board
    import neopixel
    pixels = neopixel.NeoPixel(board.D18, 299)
    pixels.fill((40, 15, 0))
    
    When I try to run Hyperion it gives me the following log output:
    Code:
    Jun 10 14:31:46 ambilightpi systemd[1]: Started Hyperion Systemd service.
    Jun 10 14:31:47 ambilightpi hyperiond[612]: Hyperion Ambilight Deamon (612)
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011Version   : V1.03.4 (brindosch-c750c41/dc6a602-1522918225
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011Build Time: Apr  5 2018 01:57:25
    Jun 10 14:31:47 ambilightpi hyperiond[612]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    Jun 10 14:31:47 ambilightpi hyperiond[612]: HYPERION INFO: ColorTransform 'default' => [0; 298]
    Jun 10 14:31:47 ambilightpi hyperiond[612]: HYPERION INFO: ColorCorrection 'default' => [0; 298]
    Jun 10 14:31:47 ambilightpi hyperiond[612]: HYPERION INFO: ColorAdjustment 'default' => [0; 298]
    Jun 10 14:31:47 ambilightpi hyperiond[612]: LEDDEVICE INFO: configuration:
    Jun 10 14:31:47 ambilightpi hyperiond[612]: {
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011"colorOrder" : "grb",
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011"dmanum" : 5,
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011"freq" : 800000,
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011"gpio" : 18,
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011"leds" : 299,
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011"name" : "MyZF9Ambilight",
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011"pwmchannel" : 0,
    Jun 10 14:31:47 ambilightpi hyperiond[612]: #011"type" : "ws281x"
    Jun 10 14:31:47 ambilightpi hyperiond[612]: }
    Jun 10 14:31:47 ambilightpi hyperiond[612]: whiteAlgorithm ::
    Jun 10 14:31:47 ambilightpi hyperiond[612]: HYPERION INFO: Not creating any smoothing
    Jun 10 14:31:47 ambilightpi hyperiond[612]: EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    Jun 10 14:31:47 ambilightpi hyperiond[612]: EFFECTENGINE INFO: Initializing Python interpreter
    Jun 10 14:31:47 ambilightpi systemd[1]: hyperion.service: Main process exited, code=killed, status=11/SEGV
    Jun 10 14:31:47 ambilightpi systemd[1]: hyperion.service: Unit entered failed state.
    Jun 10 14:31:47 ambilightpi systemd[1]: hyperion.service: Failed with result 'signal'.
    Jun 10 14:31:47 ambilightpi systemd[1]: hyperion.service: Service hold-off time over, scheduling restart.
    Jun 10 14:31:47 ambilightpi systemd[1]: Stopped Hyperion Systemd service.
    Jun 10 14:31:47 ambilightpi systemd[1]: hyperion.service: Start request repeated too quickly.
    Jun 10 14:31:47 ambilightpi systemd[1]: Failed to start Hyperion Systemd service.
    Jun 10 14:31:47 ambilightpi systemd[1]: hyperion.service: Unit entered failed state.
    Jun 10 14:31:47 ambilightpi systemd[1]: hyperion.service: Failed with result 'signal'.
    
    I both installed Hyperion via Hypercon and via command line without luck. I changed the HDMI and audio settings in the boot config.txt but still without success. Now I'm running out of ideas and thus I need your help and advice.

    Thanks in advance and best regards!
     

    Attached Files:

  2. Akriss

    Akriss Active Member

    Messages:
    510
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Hi,
    Hyperion uses an external library to drive ws281* addressable leds. The github page for the library is located https://github.com/jgarff/rpi_ws281x .

    On that page there is additional tips on potential problem solving that should help.

    I have found the SPI driver set works best in most cases.

    I hope its of help.
     
  3. wolpers0815

    wolpers0815 New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    Unfortunately Hyperion still doesn't work although I built the rpi_ws281x library with "scons deb". Its test program is working fine again. But no luck with Hyperion. What am I missing?
     
  4. Akriss

    Akriss Active Member

    Messages:
    510
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    And what have you tried?

    Tip: "dmanum 5" will crash your Rpi. as per the page I pointed to.
     
  5. wolpers0815

    wolpers0815 New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    Yes I changed the DMA to 10, but still the same problem/crash. Do I have to build the rpi_ws281x library in another way instead of "scons deb"? What and where is the built output? Where do I have to copy it? How does Hyperion know to use it?
     
  6. Akriss

    Akriss Active Member

    Messages:
    510
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    What else have you tried from that page?

    No need to build the library. Hyperion has it built in.

    Again its built in. No need to bother.

    The important part on that page is in this section ( https://github.com/jgarff/rpi_ws281x#limitations )
    Try the suggestions in that section.

    Try these steps, as it uses the SPI portion of the driver instead of the PWM portion. https://hyperion-project.org/threads/error-while-reading-data-from-host.3187/#post-12230
     
    Last edited: 12 June 2019
    • Like Like x 1