ahodges9 / LedFx

LedFx is a network based LED effect controller with support for advanced real-time audio effects! LedFx can control multiple devices and works great with cheap ESP8266 nodes allowing for cost effectvice syncronized effects across your entire house!
MIT License
386 stars 90 forks source link

ERROR:ledfx.core:Exception in core event loop: Task exception was never retrieved #93

Closed jpunsal closed 4 years ago

jpunsal commented 4 years ago

Hi,

Last month I had everything working great. I went to boot it up today and kept getting the following error:

(ledfx) C:\Users\admin>ledfx --open-ui Loading configuration file from C:\Users\admin\AppData\Roaming\.ledfx Started webinterface at http://192.168.1.216:8888 [2020-04-06 19:29:09] ERROR:ledfx.core:Exception in core event loop: Task exception was never retrieved Traceback (most recent call last): File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\core.py", line 97, in async_start self.devices.create_from_config(self.config['devices']) File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 182, in create_from_config self._ledfx.devices.get_device(device['id']).set_effect(effect) File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 52, in set_effect self.activate() File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\udp.py", line 23, in activate super().activate() File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 126, in activate self.thread_function() File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 91, in thread_function self.process_active_effect() File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 77, in process_active_effect self.flush(assembled_frame) File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\udp.py", line 55, in flush self._sock.sendto(bytes(udpData), (self._config['ip_address'], self._config['port'])) socket.gaierror: [Errno 11001] getaddrinfo failed [2020-04-06 19:29:09] ERROR:ledfx.core:Exception in core event loop: Exception in callback Device.thread_function() Traceback (most recent call last): File "c:\anaconda3\envs\ledfx\lib\asyncio\events.py", line 145, in _run self._callback(*self._args) File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 91, in thread_function self.process_active_effect() File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 77, in process_active_effect self.flush(assembled_frame) File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\udp.py", line 55, in flush self._sock.sendto(bytes(udpData), (self._config['ip_address'], self._config['port'])) socket.gaierror: [Errno 11001] getaddrinfo failed [2020-04-06 19:29:09] ERROR:ledfx.core:Exception in core event loop: Exception in callback Device.thread_function() Traceback (most recent call last): File "c:\anaconda3\envs\ledfx\lib\asyncio\events.py", line 145, in _run self._callback(*self._args) File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 91, in thread_function self.process_active_effect() File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 77, in process_active_effect self.flush(assembled_frame) File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\udp.py", line 55, in flush self._sock.sendto(bytes(udpData), (self._config['ip_address'], self._config['port']))

Then it just repeats: socket.gaierror: [Errno 11001] getaddrinfo failed [2020-04-06 19:29:09] ERROR:ledfx.core:Exception in core event loop: Exception in callback Device.thread_function() Traceback (most recent call last): File "c:\anaconda3\envs\ledfx\lib\asyncio\events.py", line 145, in _run self._callback(*self._args) File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 91, in thread_function self.process_active_effect() File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\__init__.py", line 77, in process_active_effect self.flush(assembled_frame) File "c:\anaconda3\envs\ledfx\lib\site-packages\ledfx\devices\udp.py", line 55, in flush self._sock.sendto(bytes(udpData), (self._config['ip_address'], self._config['port'])) socket.gaierror: [Errno 11001] getaddrinfo failed

I tried to remove the environment from Anaconda then start from scratch since it seems similar to this issue but got the same result. What is really wired is that it was working and I can't think of anything that I changed.

Any help would be much appreciated!

Thanks!

jpunsal commented 4 years ago

Here's some troubleshooting I just went through.

Uninstall Anaconda.

Another thing I tried is instead of running the Anaconda3 environment to start with was I followed the same steps with the base (root) environment. Seems like I got the same result. I also updated anaconda using "conda update -n base -c defaults conda", restarted anaconda, and ran the same steps after deleting the ledfx environments.

I know I've also had problems with anaconda recognizing pyaudio in the past. The work around I figured out was to use "pip install PyAudio".

If anyone wants any more information please let me know.

jpunsal commented 4 years ago

I removed windows and installed linux. I'm getting another error now but won't be working on this in windows anymore so I'm closing the issue.