Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnhandledMessageForwarder crashes and restarted every time the app is starting #3267

Closed
vasily-kirichenko opened this issue Jan 12, 2018 · 5 comments · Fixed by #3461
Closed
Assignees
Milestone

Comments

@vasily-kirichenko
Copy link
Contributor

...
[DEBUG][01/12/2018 07:45:23][Thread 0007][akka://host-states-system/user/app-restarter] Started (Akkling.Actors+FunActor`1[System.Object])
[ERROR][01/12/2018 07:45:23][Thread 0009][akka://host-states-system/system/UnhandledMessageForwarder] Object reference not set to an instance of an object.
Cause: System.NullReferenceException: Object reference not set to an instance of an object.
   at Akka.Event.LoggingBus.UnhandledMessageForwarder.ToDebug(UnhandledMessage message)
   at Akka.Event.LoggingBus.UnhandledMessageForwarder.Receive(Object message)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)
[DEBUG][01/12/2018 07:45:23][Thread 0007][akka://host-states-system/system/UnhandledMessageForwarder] Restarting
[DEBUG][01/12/2018 07:45:23][Thread 0007][akka://host-states-system/system/UnhandledMessageForwarder] Restarted (Akka.Event.LoggingBus+UnhandledMessageForwarder)
@marcpiechura
Copy link
Contributor

@vasily-kirichenko is this still an issue?

@vasily-kirichenko
Copy link
Contributor Author

@marcpiechura yes :)

@Aaronontheweb
Copy link
Member

Same issue reported by @object in Gitter today. Reproduction sample: https://github.com/pmbanka/akkling-lifecycle-repro

I'm on the case.

@Aaronontheweb Aaronontheweb self-assigned this May 22, 2018
@Aaronontheweb
Copy link
Member

Aaronontheweb commented May 22, 2018

Only occurs when the following setting is active:

akka.actor.debug.unhandled = on

@Aaronontheweb
Copy link
Member

Issue is that we don't treat ActorRefs.NoSender / null properly when we're printing out debug messages for UnhandledMessage - I'm going to apply the same fixes we use for DeadLetter logging to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants