-
Notifications
You must be signed in to change notification settings - Fork 379
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
Assesrtion error hit in zeroconf #641
Comments
zeroconf asserts that the loop is running, so if we call this function without the loop running, it will hit the assert. Closes home-assistant-libs#641.
zeroconf asserts that the loop is running, so if we call this function without the loop running, it will hit the assert. Closes home-assistant-libs#641.
This is a bug in catt-qt. You need to have a running loop to resolve a service and it needs to run inside the event loop. |
Thanks for the quick reply. Can you elaborate about how to do this? By event loop, do you mean Qt's event loop or something else? Any pointers to the code would be appreciated. |
if I use
it waits the full timeout of 3 seconds and says index out of range for |
Turns out I just needed to wrap the relevant setup code with these calls to run in the main event loop.
Thanks for your help. |
I hit this assertion from my program which causes an infinite rapid connection loop. This is the repeated backtrace:
This happens when I run catt-qt here, and subsequently power cycle a chromecast, but strangely does not happen when I try to add a connection listener to this example. This patch fixes it. This is with Zeroconf version: 0.38.7
The text was updated successfully, but these errors were encountered: