dotnet / dotnet/orleans

exception: Activation access violation. A non-activation thread attempted to access activation services

Open
#8,567 1 comment 1 reaction 0 assignees View on GitHub
Needs: triage :mag:
Dominant language
C#
Stars
10.9k
Forks
2.1k
Avg merge
14h 42m
Merged PRs (30d)
354

Description

My grain sometimes displays an error like this

System.InvalidOperationException
HResult=0x80131509
Message=Activation access violation. A non-activation thread attempted to access activation services.
Source=Orleans.Runtime

StackTrace:
at Orleans.Runtime.GrainRuntime.g__ThrowMissingContext|20_0()
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context)
at Orleans.Core.StateStorageBridge`1.get_State()
at Orleans.Runtime.PersistentStateFactory.PersistentStateBridge`1.get_State()

Any thoughts? Thank you in advance.

Contributor guide

Open the contributing guide

Research direction

Start with the stack trace at Orleans.Runtime.GrainRuntime.CheckRuntimeContext, then follow StateStorageBridge.State and PersistentStateFactory.PersistentStateBridge.State. Reproduce the intermittent grain error and determine which non-activation-thread access triggers it; done means the cause and a verified fix or clear usage guidance are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.