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

Null Reference exception at Akka.Remote.RemoteActorRefProvider.Transport #483

Open
Degot opened this issue Aug 9, 2024 · 0 comments
Open

Comments

@Degot
Copy link

Degot commented Aug 9, 2024

Version Information
Akka.Hosting.LoggingDemo
Akka.NET 1.5.27.1
Akka.Remoting 1.5.27.1

Describe the bug
Object reference not set to an instance of an object.
Akka.Remote.dll!Akka.Remote.RemoteActorRefProvider.Transport.get() Line 172
Akka.Remote.dll!Akka.Remote.RemoteActorRefProvider.DefaultAddress.get() Line 192
Akka.dll!Akka.Event.LogSource.FromActorRef(Akka.Actor.IActorRef a, Akka.Actor.ActorSystem system) Line 117
Akka.dll!Akka.Event.LogSource.FromActor(Akka.Actor.IActorContext actor, Akka.Actor.ActorSystem system) Line 110
Akka.dll!Akka.Event.LogSource.Create(object o, Akka.Actor.ActorSystem system) Line 62
Akka.dll!Akka.Event.Logging.GetLogger(Akka.Actor.IActorContext context, Akka.Event.ILogMessageFormatter logMessageFormatter) Line 236
Akka.dll!Akka.Event.Logging.GetLoggerStartup(Akka.Actor.IActorContext context, Akka.Event.ILogMessageFormatter logMessageFormatter) Line 219
Akka.dll!Akka.Actor.FSM<Akka.Remote.RemoteActorRefProvider.TerminatorState, Akka.Remote.RemoteActorRefProvider.Internals>.FSM() Line 687
Akka.Remote.dll!Akka.Remote.RemoteActorRefProvider.RemotingTerminator.RemotingTerminator(Akka.Actor.IActorRef systemGuardian) Line 70
[Native to Managed Transition]
[Managed to Native Transition]
System.Private.CoreLib.dll!System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(object obj, System.Span copyOfArgs, System.Reflection.BindingFlags invokeAttr) Line 178
System.Private.CoreLib.dll!System.Reflection.MethodBaseInvoker.InvokeWithOneArg(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture) Line 104
System.Private.CoreLib.dll!System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture) Line 3834
Akka.dll!Akka.Actor.Props.ActivatorProducer.Produce() Line 690
Akka.dll!Akka.Actor.Props.NewActor() Line 562

To Reproduce
Run Akka.Hosting.LoggingDemo with Akka.NET updated 1.5.27.1

Expected behavior
No exceptions

Environment
Windows 10 , .NET 8.0

Additional context
Maybe related to akkadotnet/akka.net#7305 (remoting logging DefaultAddress race condition)

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

No branches or pull requests

1 participant