question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sACN RGBW Overflow error

See original GitHub issue
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/led-control/.eggs/sacn-1.8.1-py3.9.egg/sacn/receiving/receiver_socket_udp.py", line 57, in receive_loop
    self._listener.on_data(raw_data, time.time())
  File "/home/pi/led-control/.eggs/sacn-1.8.1-py3.9.egg/sacn/receiving/receiver_handler.py", line 59, in on_data
    self.fire_callbacks_universe(tmp_packet)
  File "/home/pi/led-control/.eggs/sacn-1.8.1-py3.9.egg/sacn/receiving/receiver_handler.py", line 143, in fire_callbacks_universe
    self._listener.on_dmx_data_change(packet)
  File "/home/pi/led-control/.eggs/sacn-1.8.1-py3.9.egg/sacn/receiver.py", line 45, in on_dmx_data_change
    callback(packet)
  File "/home/pi/led-control/ledcontrol/animationcontroller.py", line 106, in _sacn_callback
    self.led_controller.set_all_pixels_rgb_float(
  File "/home/pi/led-control/ledcontrol/ledcontroller.py", line 93, in set_all_pixels_rgb_float
    driver.ws2811_rgb_render_array_float(self._leds, self._channel, pixels, len(pixels),
OverflowError: in method 'ws2811_rgb_render_array_float', argument 4 of type 'int'

image

When I try and turn sACN on on the web interface (with 300 rgbw leds) I get this overflow error which I believe makes the sACN server unable to receive any input, so the lights don’t change when LedFx sends them a command

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jackw01commented, Jan 5, 2022

This is intentional because LEDFx and similar programs do not support RGBW (four-channel DMX) control. LEDControl only takes RGB input over sACN and the ws2811_rgb_render_array_float function automatically handles converting between color spaces if RGBW LEDs are being used.

This error message indicates some issue with the data being sent over sACN that is causing an integer overflow. What are you using to send sACN input?

Can you add print(pixels) as the first line of the function def set_all_pixels_rgb_float(self, pixels, correction, saturation, brightness, gamma): in ledcontroller.py to see what the actual pixel data being sent to the rendering code is?

0reactions
jrparadiscommented, Feb 23, 2022

I’m having the same issue, going below 170 LEDs works, but above that, sacn doesn’t work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring and Programming a Raspberry Pi to control an ...
I found an article on stackoverflow that talked about how to do this without installing additional software or writing your own code.
Read more >
BRv - River Thames Conditions - Environment Agency - GOV.UK
Nuts shop design, Macross frontier sheryl zerochan, Configure error apr not ... Papanni, Deljenje binarnih brojeva, Calcium heart scan, Fmp200jr-52-1r5.
Read more >
Profile-specific objects (0x6000-0xFFFF) - Beckhoff infosys
This object contains the InfoData on the (n+1) th found CANopen slave, if the Scan Boxes command has been executed following switching to...
Read more >
Untitled
Mentally challenged boy scores basket, Futurelight eye-7 rgbw moving head beam, ... Hp m177fw error 22, Light hearted humorous books, Thermageddon.
Read more >
Arduino - LEDStrip effects for NeoPixel and FastLED
Media error: Format(s) not supported or source(s) not found ... NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found