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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Add comment