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

Include and ThenInclude sub properties causes System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct #12926

Closed
RussKeldorph opened this issue Aug 7, 2018 · 3 comments

Comments

@RussKeldorph
Copy link

From @harsha89vyas on July 19, 2018 15:54

The following include sequence causes the System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.C)
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.D)
.ThenInclude(x => x.E)
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.D)
.ThenInclude(a => a.F)
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.D)
.ThenInclude(a => a.G)
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.D)
.ThenInclude(a => a.C)
.ThenInclude(a => a.H)

This happens due to the fix dotnet/coreclr#16991 applied due to issue https://github.com/dotnet/corefx/issues/28123

Copied from original issue: dotnet/coreclr#19027

@RussKeldorph
Copy link
Author

From @benaadams on July 19, 2018 16:55

Added an issue to corefx so its easier to find information about this exception in search dotnet/corefx#31186

@ajcvickers
Copy link
Contributor

@harsha89vyas This issue is lacking enough information for us to effectively reproduce. Please post a runnable project/solution or complete code listing that demonstrates the behavior you are seeing. Also, please post the full stack trace from the exception.

@ajcvickers
Copy link
Contributor

EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.

BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
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