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

ObjectDisposedException at Orleans.Runtime.Messaging.MessageCenter.ReceiveMessage #8963

Open
alrz opened this issue Apr 30, 2024 · 3 comments
Assignees

Comments

@alrz
Copy link
Member

alrz commented Apr 30, 2024

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Orleans.Runtime.InsideRuntimeClient.get_GrainLocator() in /_/src/Orleans.Runtime/Core/InsideRuntimeClient.cs:line 99
at Orleans.Runtime.InsideRuntimeClient.ReceiveResponse(Message message) in /_/src/Orleans.Runtime/Core/InsideRuntimeClient.cs:line 394
at Orleans.Runtime.Messaging.MessageCenter.ReceiveMessage(Message msg) in /_/src/Orleans.Runtime/Messaging/MessageCenter.cs:line 514
@ReubenBond ReubenBond self-assigned this May 15, 2024
@ReubenBond
Copy link
Member

I'm not sure exactly what the source of this is - is there any more stack?

I've opened a swath of PRs to improve hygiene around disposal. There are other places to improve (eg you opened an issue about disposal of failed activations).

@alrz
Copy link
Member Author

alrz commented May 20, 2024

is there any more stack?

Not at the moment, but I will file a new issue if more of these are observed.

eg you opened an issue about disposal of failed activations

At first I thought that's related to the dashboard. I will close that out and file again if it came up (could not transfer it here)

@alrz
Copy link
Member Author

alrz commented May 20, 2024

I'm not sure exactly what the source of this is

Just one more piece of info I initially missed when openning the issue

Unrecoverable Rejection (info: Message was queued for sending after outbound queue was stopped) Response [S10.42.189.128:11111:75129430 sys.svc.load-publisher/10.42.189.128:11111@75129430]->[S10.42.89.234:11111:75196315 sys.svc.load-publisher/10.42.89.234:11111@75196315] Orleans.Runtime.RejectionResponse #32

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

2 participants