I apologize for picking Package Manager as an area for the topic, but there is no com-unity-collections are which the issue belongs to.
I getting the following exception each time entering Play mode or finishing recompilation with the debugger attached to the Editor:
System.ObjectDisposedException: The UNKNOWN_OBJECT_TYPE has been deallocated, it is not allowed to access it
at (wrapper managed-to-native) Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckDeallocateAndThrow_Injected(Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle&)
at Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckDeallocateAndThrow (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle)
The exception doesn’t show up anywhere if the debugging is disabled, but with the debugger it pops up in infinite cycle inside of IDE (I click Resume => pops up again… infinitely). If I stop the debugger, the Editor continues correctly and nothing is shown in Console.
The calling point of that function is a 3rd party asset which I using in my scene (Obi Rope), but the issue has nothing to do with this asset, it happens inside the Collections package.
#if ENABLE_UNITY_COLLECTIONS_CHECKS
// dispose of atomic safety handle:
AtomicSafetyHandle.CheckDeallocateAndThrow(m_SafetyHandle); // <- here the exception pops
AtomicSafetyHandle.Release(m_SafetyHandle);
#endif