zeromq / netmq

A 100% native C# implementation of ZeroMQ for .NET
Other
2.95k stars 744 forks source link

Getting object reference exception when we are starting NetMqPoller #973

Open kumarsathishD opened 3 years ago

kumarsathishD commented 3 years ago

Environment

NetMQ Version:    4.0.0.1
Operating System:  Windows 10 
.NET Version: 4.7.2    

Expected behaviour

Should not throw an exception

Actual behaviour

CallStack:

at NetMQ.Core.SocketBase.ProcessCommands(System.Int32 timeout,System.Boolean throttle) [IL: 0x71][Native: 0xBD]

at NetMQ.Core.SocketBase.GetSocketOption(NetMQ.Core.ZmqSocketOption option) [IL: 0x1C][Native: 0x53]

at NetMQ.NetMQSelector.Select(NetMQ.NetMQSelector+Item[] items,System.Int32 itemsCount,System.Int64 timeout) [IL: 0x14F][Native: 0x2DD]

at NetMQ.NetMQPoller.Run() [IL: 0x149][Native: 0x1ED]

at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x79][Native: 0x162]

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x0][Native: 0x13]

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state) [IL: 0x2B][Native: 0x51]

at System.Threading.ThreadHelper.ThreadStart() [IL: 0x8][Native: 0x51]

Steps to reproduce the behaviour

when we are doing a reliability run on the application, that's when we are getting this exception on starting of the poller