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

The `exit` command will throw exception

Open Tommo-L opened this issue 6 years ago • 3 comments

Summary

It will throw a akka exception, when enter the exit command in neo-cli.

This error occurs in NeoSystem.Dispose.

public void Dispose()
        {
            RpcServer?.Dispose();
            EnsureStoped(LocalNode);
            // Dispose will call ActorSystem.Terminate()
            ActorSystem.Dispose(); // <----- here
            ActorSystem.WhenTerminated.Wait();
        }

After investigation, the problem may be in the release of LocalNode's network resources, but I still don't know how to fix it.

Screenshots

0e89ca992728519257f6ec509913178

Platform:

  • OS: Centos 7.0
  • Version neo-cli 3.0.0 preview

Tommo-L avatar Sep 26 '19 12:09 Tommo-L

@Tommo-L, I was checking this yesterday as well. There are other 2-3 actors, do you think that they may also need EnsureStoped();?

vncoelho avatar Sep 26 '19 12:09 vncoelho

Is solved?

shargon avatar Sep 29 '19 10:09 shargon

Hi @Tommo-L, #327 only fixes the "control-c" issue, I prefer to have this issue open to deal with the exception messages, ok? Thanks

lock9 avatar Oct 01 '19 21:10 lock9

Old, if remains, please re-open

shargon avatar Dec 05 '23 13:12 shargon