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

Exception: Cannot access a disposed object #500

Open
NikitaEgorov opened this issue May 10, 2024 · 0 comments
Open

Exception: Cannot access a disposed object #500

NikitaEgorov opened this issue May 10, 2024 · 0 comments
Labels

Comments

@NikitaEgorov
Copy link

Hi everyone, I'm sorry that I can't give you the details, but I've already spent 8 hours trying to get at least some details and all without success.

After updating to version 2.12.0, these errors began to appear randomly when debugging tests. And I don't understand the reason for their occurrence at all.

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Threading.ThreadLocal`1[[System.Collections.Concurrent.ConcurrentBag`1+WorkStealingQueue[[MonoMod.Core.Platforms.Memory.PagedMemoryAllocator+Page, 0Harmony, Version=2.3.3.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Concurrent, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]'.
   at System.Threading.ThreadLocal`1.GetValueSlow()
   at System.Collections.Concurrent.ConcurrentBag`1.Add(T item)
   at MonoMod.Core.Platforms.Memory.PagedMemoryAllocator.RegisterForCleanup(Page page) in /_/src/MonoMod.Core/Platforms/Memory/PagedMemoryAllocator.cs:line 375
   at MonoMod.Core.Platforms.Memory.PagedMemoryAllocator.Page.FreeMem(UInt32 offset, UInt32 size) in /_/src/MonoMod.Core/Platforms/Memory/PagedMemoryAllocator.cs:line 240
   at MonoMod.Core.Platforms.Memory.PagedMemoryAllocator.PageAllocation.Dispose(Boolean disposing) in /_/src/MonoMod.Core/Platforms/Memory/PagedMemoryAllocator.cs:line 56
   at MonoMod.Core.Platforms.Memory.PagedMemoryAllocator.PageAllocation.Finalize() in /_/src/MonoMod.Core/Platforms/Memory/PagedMemoryAllocator.cs:line 66

When I roll back to 2.11, everything becomes normal

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

No branches or pull requests

2 participants