neo-node icon indicating copy to clipboard operation
neo-node copied to clipboard

neo-cli has a memory leak

Open jens-j opened this issue 4 years ago • 6 comments

I recenty upgraded from version 2.10.0 to 2.12.1. I noticed that this new version of neo-cli slowly fills up my memory until it crashes.

jens-j avatar Dec 17 '20 15:12 jens-j

Could you provide the error log?

Qiao-Jin avatar Dec 18 '20 02:12 Qiao-Jin

Sure, I just have to wait for it to happen before I can post it,

jens-j avatar Dec 19 '20 16:12 jens-j

Hi @jens-j , plz use v2.12.2 https://github.com/neo-project/neo-node/releases/tag/v2.12.2, it's a stable version.

Tommo-L avatar Dec 23 '20 02:12 Tommo-L

So I finally got the error message from the crash. As you can see it's an out of memory exception. Cause by the program itself taking up all the ram. This is with the version 2.12.1 however, so I will upgrade and try if it still occurs.

[ERROR][1/3/21 9:56:32 PM][Thread 0056][akka://NeoSystem/user/$b] Error while creating actor instance of type Neo.Network.P2P.LocalNode with 1 args: (Neo.NeoSystem)
Cause: [akka://NeoSystem/user/$b#172808320]: Akka.Actor.PostRestartException: Exception post restart (System.OutOfMemoryException) ---> System.TypeLoadException: Error while creating actor instance of type Neo.Network.P2P.LocalNode with 1 args: (Neo.NeoSystem) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Neo.Network.P2P.LocalNode..ctor(NeoSystem system)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at Akka.Actor.Props.ActivatorProducer.Produce()
   at Akka.Actor.Props.NewActor()
   --- End of inner exception stack trace ---
   at Akka.Actor.Props.NewActor()
   at Akka.Actor.ActorCell.CreateNewActorInstance()
   at Akka.Actor.ActorCell.<>c__DisplayClass109_0.<NewActor>b__0()
   at Akka.Actor.ActorCell.UseThreadContext(Action action)
   at Akka.Actor.ActorCell.NewActor()
   at Akka.Actor.ActorCell.FinishRecreate(Exception cause, ActorBase failedActor)
   --- End of inner exception stack trace ---
[ERROR][1/3/21 9:56:34 PM][Thread 0011][akka://NeoSystem/system/IO-TCP/$4E] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
Cause: Akka.Actor.DeathPactException: Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorBase.Unhandled(Object message)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)
   at Akka.Actor.ActorCell.AutoReceiveMessage(Envelope envelope)
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)
[ERROR][1/3/21 9:56:34 PM][Thread 0011][akka://NeoSystem/system/IO-TCP/$eF] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
Cause: Akka.Actor.DeathPactException: Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorBase.Unhandled(Object message)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)
   at Akka.Actor.ActorCell.AutoReceiveMessage(Envelope envelope)
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)
[ERROR][1/3/21 9:56:35 PM][Thread 0011][akka://NeoSystem/system/IO-TCP/$UE] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
Cause: Akka.Actor.DeathPactException: Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorBase.Unhandled(Object message)
[ERROR][1/3/21 9:56:35 PM][Thread 0011][akka://NeoSystem/system/IO-TCP/$WE] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
Cause: Akka.Actor.DeathPactException: Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorBase.Unhandled(Object message)pe envelope)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)system/IO-TCP/$6E] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorCell.AutoReceiveMessage(Envelope envelope)eoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)
[ERROR][1/3/21 9:56:35 PM][Thread 0011][akka://NeoSystem/system/IO-TCP/$RE] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
Cause: Akka.Actor.DeathPactException: Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorBase.Unhandled(Object message)pe envelope)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)system/IO-TCP/$YE] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorCell.AutoReceiveMessage(Envelope envelope)eoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)
[ERROR][1/3/21 9:56:35 PM][Thread 0011][akka://NeoSystem/system/IO-TCP/$SE] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
Cause: Akka.Actor.DeathPactException: Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorBase.Unhandled(Object message)pe envelope)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)system/IO-TCP/$EE] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorCell.AutoReceiveMessage(Envelope envelope)eoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)
[ERROR][1/3/21 9:56:35 PM][Thread 0011][akka://NeoSystem/system/IO-TCP/$LE] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
Cause: Akka.Actor.DeathPactException: Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorBase.Unhandled(Object message)pe envelope)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)system/IO-TCP/$IE] Monitored actor [[akka://NeoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorCell.AutoReceiveMessage(Envelope envelope)eoSystem/user/$b#172808320]] terminated
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)

jens-j avatar Jan 05 '21 17:01 jens-j

Hi, could you resolved the problem?

logan059 avatar Aug 21 '21 06:08 logan059

No I never did. Try the newest version. If the problem still exists, only the devs can solve it.

jens-j avatar Aug 21 '21 09:08 jens-j

Old, if remains, please re-open

shargon avatar Dec 05 '23 13:12 shargon