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

ActorCell.DeathWatch InvalidOperationException during AddressTerminated #1011

Closed
Aaronontheweb opened this issue May 26, 2015 · 0 comments
Closed
Assignees

Comments

@Aaronontheweb
Copy link
Member

Had the following exception occur here: https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka/Actor/ActorCell.DeathWatch.cs#L213

Exception:

System.InvalidOperationException occurred
_HResult=-2146233079
_message=Collection was modified; enumeration operation may not execute.
HResult=-2146233079
IsTransient=false
Message=Collection was modified; enumeration operation may not execute.
Source=System.Core
StackTrace:
at System.Collections.Generic.HashSet`1.Enumerator.MoveNext()
InnerException:

Looks like loop modifies _state.GetWatchedBy()'s underlying collection while it iterates.

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

No branches or pull requests

2 participants