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

Windows: Panic in example multicast_udp.zig #91

Open
RcCreeperTech opened this issue Aug 30, 2024 · 0 comments
Open

Windows: Panic in example multicast_udp.zig #91

RcCreeperTech opened this issue Aug 30, 2024 · 0 comments

Comments

@RcCreeperTech
Copy link

When attempting to run the UDP multicast example the program reports a failure to bind to the multicast address.
Also in a seperate program that I tested where I try to bind to network.Address.IPv4.any and then join the multicast group the programs still panics with error.SocketNotBound

.\zig-out\bin\udp.exe
failed to bind to 224.0.0.1:9999:error.AddressNotAvailable
Failed to join mcast group network.Socket.MulticastGroup{ .interface = 0.0.0.0, .group = 224.0.0.1 }:error.SocketNotBound
Waiting for UDP messages from socket error.SocketNotBound
thread 9504 panic: reached unreachable code
C:\Users\Devin\Dev\zig\zig-network\network.zig:1493:35: 0xdc5103 in recvfrom (udp.exe.obj)
                    .WSAEINVAL => unreachable,
                                  ^
C:\Users\Devin\Dev\zig\zig-network\network.zig:689:31: 0xdc2af9 in receive (udp.exe.obj)
        return try recvfrom_fn(self.internal, data, flags, null, null);
                              ^
C:\Users\Devin\Dev\zig\zig-network\examples\multicast_udp.zig:50:37: 0xdc2011 in main (udp.exe.obj)
        const bytes = try r.read(msg[0..buflen]);
                                    ^
C:\tools\zigup\zig\0.14.0-dev.1038+87ec4e11c\files\lib\std\start.zig:442:53: 0xdc2e17 in WinStartup (udp.exe.obj)
    std.os.windows.ntdll.RtlExitUserProcess(callMain());
                                                    ^
???:?:?: 0x7ffaa7497343 in ??? (KERNEL32.DLL)
???:?:?: 0x7ffaa93026b0 in ??? (ntdll.dll)
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

No branches or pull requests

1 participant