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

AccessViolationException when receiving a PermissionDenied error #3292

Closed
nirinchev opened this issue Apr 18, 2023 · 0 comments
Closed

AccessViolationException when receiving a PermissionDenied error #3292

nirinchev opened this issue Apr 18, 2023 · 0 comments
Assignees

Comments

@nirinchev
Copy link
Member

#3259 introduced a bug in the way we deserialize the userInfo that results in the following crash:

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.String.GetNonRandomizedHashCode()
   at System.Collections.Generic.Dictionary`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TryInsert(System.__Canon, System.__Canon, System.Collections.Generic.InsertionBehavior)
   at System.Linq.Enumerable.ToDictionary[[Realms.Sync.Native.StringStringPair, Realm, Version=10.21.0.0, Culture=neutral, PublicKeyToken=null],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<Realms.Sync.Native.StringStringPair>, System.Func`2<Realms.Sync.Native.StringStringPair,System.__Canon>, System.Func`2<Realms.Sync.Native.StringStringPair,System.__Canon>, System.Collections.Generic.IEqualityComparer`1<System.__Canon>)
   at System.Linq.Enumerable.ToDictionary[[Realms.Sync.Native.StringStringPair, Realm, Version=10.21.0.0, Culture=neutral, PublicKeyToken=null],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<Realms.Sync.Native.StringStringPair>, System.Func`2<Realms.Sync.Native.StringStringPair,System.__Canon>, System.Func`2<Realms.Sync.Native.StringStringPair,System.__Canon>)
   at Realms.Sync.SessionHandle.HandleSessionError(IntPtr, Realms.Native.SyncError, IntPtr)

We should backport this and release 10.21.1.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant