-
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
crash connecting to LAN game, "Unknown socket family when converting sockaddr to host" #145
Comments
Thanks for the report. I could technically remove this debug throw message, and return a failure to android #include <iostream>
int shim::getnameinfo(const bionic::sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen,
char *serv, socklen_t servlen, bionic::nameinfo_flags flags) {
try {
detail::sockaddr_in haddr (addr, addrlen);
return ::getnameinfo(haddr.ptr(), haddr.len, host, hostlen, serv, servlen,
bionic::to_host_nameinfo_flags(flags));
} catch (std::runtime_error& error) {
std::cerr << "Failed getnameinfo: " << error.what() << ", addr->family=" << addr->family << "\n";
return 5 /*EAI_FAMILY*/;
}
} and upload the log even if it doesn't crash?, I won't push changes, I cannot verify. Also there is more missing for abi compatibility /* Android ABI error: POSIX getnameinfo(3) uses socklen_t rather than size_t. */
int getnameinfo(const struct sockaddr* __sa, socklen_t __sa_length, char* __host, size_t __host_length, char* __service, size_t __service_length, int __flags); Bionic has different error values of getnameinfo. |
I'm having some issues with the commands at the link you provided.
I have to run
At this point I get the error
|
If |
Do you have an amd cpu? Is something special with your network? My testing environment is limited, it even can be a memory corruption. |
Intel CPU, NVIDIA graphics. I will try disabling IPv6 when I get a chance today. |
Well I disabled IPv6. Before that, I noticed that sometimes the XBox could connect to a game running on my machine, but sometimes it would crash. After disabling IPv6 I haven't seen any crashes in that direction, but I also haven't been able to see the XBox game show up (no friends show up so I can't join anything). |
Well |
Is it fixed with 1.16.100 and latest flatpak now? |
@ChristopherHX I downloaded the 0.617 release and updated Minecraft to 1.16.101.01 and now I'm able to connect. |
I think we can close this |
Did older Launcher Versions work on this PC?
Yes. I'm trying to connect to my daughter's game running on our XBox One on the LAN via the "Friends" tab. This worked with launcher version 64.0.0.510 when used with Minecraft v 1.16.10.02, however this no longer works because the XBox One version updated to Minecraft v 1.16.40.02 and I'm not able to join if I don't have the same version running on my client.
I have tried 64.0.0.540, 580, 585, 590, and 592. Some of the earlier versions don't even support 1.16.40.02 while some of the in between ones seem to crash before I get to the point of trying to connect to a friend's game.
The text was updated successfully, but these errors were encountered: