netmq icon indicating copy to clipboard operation
netmq copied to clipboard

Simple request/response sample crashes on Android 9 devices (Works great on Android 6)

Open timothyparez opened this issue 4 years ago • 1 comments

Environment

NetMQ Version:    NetMQ.4.0.0.207
Operating System: Android 6
.NET Version:     Mono 6.6.0.166

Expected behaviour

A very simple ResponseSocket:

responseSocket = new ResponseSocket();
responseSocket.Bind("tcp://*:32700");     

while(true)
{
    var data = responseSocket.ReceiveFrameBytes();
    responseSocket.SendFrame(data);            
}

And a RequestSocket:

var requestSocket = new RequestSocket()
requestSocket.Connect("tcp://127.0.0.1:32700");
requestSocket.SendFrame(new byte[]{0x01, 0x02, 0x03, 0x04, 0x05, 0x06});
var response = requestSocket.ReceiveFrameBytes()

When executing this on Android 6 devices this works great.
(Same results with .SendFrame("somestring") and .ReceiveFrameString())

Actual behaviour

On Android 9 devices (and I think it really starts on Android 7 but cannot confirm) I can create the sockets and bind/connect them but as soon as the ResponseSocket receives any data the application crashes immediately. There is nothing in logcat or the mono logs that indicates what is going on.

Steps to reproduce the behaviour

I can reproduce this on custom Rockchip SoC's as well as Android phones.

I know this is very little to go on... Perhaps the question is: Has anybody ever used NetMQ on Android 9?

timothyparez avatar Aug 28 '20 08:08 timothyparez

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.

stale[bot] avatar Apr 17 '22 04:04 stale[bot]