planetarium / libplanet

Blockchain in C#/.NET for on-chain, decentralized gaming
https://docs.libplanet.io/
GNU Lesser General Public License v2.1
506 stars 142 forks source link

Swarm terminated with an exception: NetMQ.NetMQException: Exception of type 'NetMQ.NetMQException' was thrown. #489

Closed moreal closed 4 years ago

moreal commented 4 years ago
Swarm terminated with an exception: NetMQ.NetMQException: Exception of type 'NetMQ.NetMQException' was thrown.
  at NetMQ.Core.Ctx.CreateSocket (NetMQ.ZmqSocketType type) [0x0015c] in <21696b85a92a4a0eb8332ff57aebfd69>:0
  at NetMQ.NetMQSocket..ctor (NetMQ.ZmqSocketType socketType, System.String connectionString, NetMQ.NetMQSocket+DefaultAction defaultAction) [0x0000c] in <21696b85a92a4a0eb8332ff57aebfd69>:0
  at NetMQ.Sockets.RouterSocket..ctor (System.String connectionString) [0x00000] in <21696b85a92a4a0eb8332ff57aebfd69>:0
  at Libplanet.Net.Swarm`1+<StartAsync>d__73[T].MoveNext () [0x00047] in <2695129d9ac147efb77d276ae19f66d4>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at Libplanet.Net.Swarm`1+<StartAsync>d__72[T].MoveNext () [0x00074] in <2695129d9ac147efb77d276ae19f66d4>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at Nekoyume.BlockChain.Agent+<>c__DisplayClass42_0+<<CoSwarmRunner>b__4>d.MoveNext () [0x00041] in C:\Users\lime_\Documents\planetarium\nekoyume-unity\nekoyume\Assets\_Scripts\BlockChain\Agent.cs:218
moreal commented 4 years ago

If the trace wasn't wrong, it could be occured in this line.

if (this.m_emptySlots.Count == 0)
          throw NetMQException.Create(ErrorCode.TooManyOpenSockets);

But It isn't clear why the m_emptySlots: Stack<int> is drained, yet.

limebell commented 4 years ago

It seems #493 closes this issue...