Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Event loop is closed #171

Closed
pattyland opened this issue Apr 28, 2019 · 4 comments · Fixed by #218
Closed

RuntimeError: Event loop is closed #171

pattyland opened this issue Apr 28, 2019 · 4 comments · Fixed by #218

Comments

@pattyland
Copy link

Since updating to HA 0.92.1 my instance stopped working which this error:

2019-04-28 21:18:25 ERROR (SyncWorker_1) [concurrent.futures] exception calling callback for <Future at 0x7f4cadf18080 state=finished raised RuntimeError>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/alexa_media/__init__.py", line 550, in setup_alexa
    update_devices()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 224, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 224, in wrapper
    result = method(*args, **kwargs)
  File "/config/custom_components/alexa_media/__init__.py", line 340, in update_devices
    config)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 130, in load_platform
    hass_config))
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 246, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "uvloop/loop.pyx", line 1261, in uvloop.loop.Loop.call_soon_threadsafe
  File "uvloop/loop.pyx", line 604, in uvloop.loop.Loop._call_soon
  File "uvloop/loop.pyx", line 608, in uvloop.loop.Loop._call_soon_handle
  File "uvloop/loop.pyx", line 637, in uvloop.loop.Loop._check_closed
RuntimeError: Event loop is closed
@alandtse
Copy link
Owner

Does a reboot change anything?

@pattyland
Copy link
Author

Unfortunately not, that was the second thing I tried after a restart of HA did not help.

@alandtse
Copy link
Owner

alandtse commented May 1, 2019

@keatontaylor can you take a look at this please? I think I broke something with when I split your async function into helper functions.

@alandtse
Copy link
Owner

alandtse commented May 1, 2019

Potentially more info from #162

@alandtse alandtse mentioned this issue May 10, 2019
alandtse added a commit that referenced this issue Jun 19, 2019
Remove references to async
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants