-
Notifications
You must be signed in to change notification settings - Fork 21
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
Segmentation fault #31
Comments
There's no method called Below is the output when browsing for services with >1 replies: macOS:
Raspbian Stretch:
|
Whoops - "stopBrowsing()" is my pass though method for it. I intended to write the method "stop("). Here is the output from dns-sd on Ubuntu Mate seeing a service on a server instance running in the simulator:
Should there be more than one reply? Should I be guarding against a second delegate call causing trouble? Let me put such a guard in place and see if it addresses the issue, and otherwise will produce a simplified Linux-based browsing project I can share, and see if I can reproduce the issue in that context. Thank you. |
It was indeed the fact that the same service, search for using |
I don't know why Avahi resolves the service twice. Maybe once over IPv4 and once over IPv6, and doesn't include logic to deduplicate. This library just passes along what it receives from the resolver; so no duplication will be done there either. |
I'm getting a seg fault and it's occurring in difficult-to-track ways, suggestive a background process getting into trouble.
Sometimes I get all the way through my browsing and connection process, and exchange data over TCP, but then the seg fault occurs. Other times it seems to occur around the time I call
stopBrowsing
. Another time, it occurred right after the browser found the same service twice and started to resolve.My guess is that the last case where the same service was found twice may be the best clue.
The text was updated successfully, but these errors were encountered: