Search Issue Tracker
Fixed in 2022.2.0b2
Fixed in 2022.2.X, 2023.1.X, 2023.1.0a1
Votes
0
Found in
2022.2.0a17
2023.1.0a1
Issue ID
UUM-2578
Regression
No
IL2CPP player crashes when managed debugger is attached
IL2CPP player crashes when a managed debugger is attached with following stacktrace (on windows):
\[Inline Frame] UnityPlayer.dll\!MemoryManager::VirtualAllocator::GetMemoryBlockOwnerAndOffset(int) Line 660 C++
UnityPlayer.dll\!MemoryManager::VirtualAllocator::GetBlockInfoFromPointer(const void * ptr) Line 785 C++
UnityPlayer.dll\!DualThreadAllocator<DynamicHeapAllocator>::Contains(const void * p) Line 305 C++
UnityPlayer.dll\!MemoryManager::Deallocate(void * ptr, const MemLabelId & label, const char * file, int line) Line 2094 C++
UnityPlayer.dll\!free_alloc_internal(void * ptr, const MemLabelId & label, const char * file, int line) Line 458 C++
UnityPlayer.dll\!Il2cppMemoryWrapper::Deallocate(void * memory) Line 124 C++
> GameAssembly.dll\!vm_commands(int command, int id, unsigned char * p, unsigned char * end, Buffer * buf) Line 7922 C
GameAssembly.dll\!debugger_thread(void * arg) Line 11349 C
GameAssembly.dll\!il2cpp::os::Thread::RunWrapper(void * arg) Line 202 C++
GameAssembly.dll\!il2cpp::os::ThreadStartWrapper(void * arg) Line 28 C++
kernel32.dll\!00007ff9e0837034() Unknown
ntdll.dll\!00007ff9e0b02651() Unknown
This is caused by recent changes to memory overrides in Unity.
In il2cpp memory is sometimes allocated using functions that call malloc() internally and freed using mono g_free() which work because without overrides they both call into libc malloc and free. When using an override in Unity g_free uses a custom memory manager.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment