-
Notifications
You must be signed in to change notification settings - Fork 744
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
Is there really Linux/Mono support ? Beacon/Bus demo crashes #553
Comments
It should work, try to specify the interface IP of the beacon.
|
Giving the beacon an address changes nothing. Today, I upgtaded from my 4.0.4 version and got mono 4.2.3 and I got the same error message. Then I went to a non-development machine [same Debian Jessie, 8.4, mono 4.2.3] Unhandled Exception: Note, that "GetNetmask" is not present in Net/Windows. A similar thing is the actor example. Runs fine on windows - never terminates on mono, looks like a threading problem. |
Yes I remember something like this, so I guess Beacon is not supported on Linux |
I'm doing a crossplatform test with Ubuntu 16.04/Mono and Windows 10. The Beacon demo is almost working except that I don't receive beacons in Linux. The Windows 10 side sees the beacons from Linux and does its thing. Looking at wireshark everything seems to be correct. In Linux/Mono, if you bind the socket to the local IP address you will not receive any broadcasts. However, if you bind to the broadcast address you will get broadcasts, but you will need to use the Socket.SendTo method in order to send messages without throwing an exception. In this case, the SendTo is already used. In: NetMQBeacon.cs from commit: 4d6b5b5 I think if Line 112: was changed to: The demo might start working. |
Can you make a Pull Request? Will it work on both windows and linux? On Jul 23, 2016 01:29, "jaebird" notifications@github.com wrote:
|
If you implement the beacon demo and run on windows its fine, multiple instances say hello/welcome to each other. Is there something different that needs to be done to get the demo working on linux ? |
This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions. |
Hi !
I am not sure, if zeromq should run on linux/mono, but as beeing native net, it should.
After I made the beacon/bus sample running, I tried it on mono [4.0.4/debian 8.4]
but got the following error message:
`
Bus subscriber is bound to tcp://0.0.0.0:51764
Beacon is being configured to UDP port 9999
Beacon is publishing the Bus subscriber port 51764
Beacon is subscribing to all beacons on UDP port 9999
Unhandled Exception:
System.ArgumentNullException: Argument cannot be null.
Parameter name: remote_end
at System.Net.Sockets.Socket.SendTo (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags, System.Net.EndPoint remote_end) [0x00000] in :0
at NetMQ.NetMQBeacon+Shim.SendUdpFrame (NetMQ.NetMQFrame frame) [0x00000] in :0
at NetMQ.NetMQBeacon+Shim.OnPipeReady (System.Object sender, NetMQ.NetMQSocketEventArgs e) [0x00000] in :0
at NetMQ.NetMQSocket.InvokeEvents (System.Object sender, PollEvents events) [0x00000] in :0
at NetMQ.NetMQPoller.Run () [0x00000] in :0
at NetMQ.NetMQBeacon+Shim.Run (NetMQ.Sockets.PairSocket shim) [0x00000] in :0
at NetMQ.NetMQActor.RunShim () [0x00000] in :0
at System.Threading.Thread.StartInternal () [0x00000] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Argument cannot be null.
Parameter name: remote_end
at System.Net.Sockets.Socket.SendTo (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags, System.Net.EndPoint remote_end) [0x00000] in :0
at NetMQ.NetMQBeacon+Shim.SendUdpFrame (NetMQ.NetMQFrame frame) [0x00000] in :0
at NetMQ.NetMQBeacon+Shim.OnPipeReady (System.Object sender, NetMQ.NetMQSocketEventArgs e) [0x00000] in :0
at NetMQ.NetMQSocket.InvokeEvents (System.Object sender, PollEvents events) [0x00000] in :0
at NetMQ.NetMQPoller.Run () [0x00000] in :0
at NetMQ.NetMQBeacon+Shim.Run (NetMQ.Sockets.PairSocket shim) [0x00000] in :0
at NetMQ.NetMQActor.RunShim () [0x00000] in :0
at System.Threading.Thread.StartInternal () [0x00000] in :0
`
This was with --debug, but was not compiled on linux, so linenumbers are absent.
In reality, something like this happens all the time to me, if I start using
networking and use more then open/close something ...
Tips and hints are really welcome!
Thanks anyway,
Manfred
The text was updated successfully, but these errors were encountered: