RudjiGames / MTuner

MTuner is a C/C++ memory profiler and memory leak finder for Windows, PlayStation 4 and 3, Android and other platforms
BSD 2-Clause "Simplified" License
2.63k stars 145 forks source link

Sometimes crash #80

Closed chena1982 closed 1 year ago

chena1982 commented 2 years ago

I compile use qt 6.4.0, lua 5.15, vs2019, os is win10. when write alloc info to buffer

MemoryHook::writeToBuffer
{
    m_mutexInternalBufferPtrs.lock();
}

mutex.lock sometimes will alloc memory, so it casue a endless loop, finally the stack overflow.

but if i just compile MTunerDLL64.dll and copy it to your relase, it don't crash.

milostosic commented 1 year ago

Code was written to accommodate for that case (recursive alloc) and will ignore the internal ones. That being said, your description is not sufficient to guess why this could be occurring for you locally.

milostosic commented 1 year ago

Closing - inactive and not enough info