Unable to run locally compiled version on Windows 10
Mitsuba exits with
HEAP[mitsuba.exe]: Invalid address specified to RtlFreeHeap( 00720000, 00D16848 )
ntdll.dll!773e9795() Unknown [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] [External Code] > libmitsuba-core.dll!mitsuba::FileResolver::FileResolver() Line 81 C++ libmitsuba-core.dll!mitsuba::Thread::staticInitialization() Line 426 C++ mitsuba.exe!mts_main(int argc, char * * argv) Line 406 C++ mitsuba.exe!wmain(int argc, wchar_t * * wargv, wchar_t * * envp) Line 107 C++ [External Code]
// There is an error if and only if the function returns 0 if (nSize != 0) basePath = fs::path(lpFilename).parent_path(); else Log(EError, "Could not detect the executable path! (%s)", lastErrorText().c_str());
I am using Visual Studio 2013. This happens regardless of debug/release or Win 32/x64 settings.
#2 Updated by Wenzel Jakob about 2 years ago
sorry for the big delay. I suspect this is some weird inconsistency that occurs when using different versions of the C/C++ library in a single binary. (e.g. memory is allocated with malloc() or operator new() by MSVC 2010 and then freed by MSVC 2013). We are now working on a new version of Mitsuba which automatically compiles all dependencies in a unified project. However, it might still take a couple of months until that becomes usable (so you might want to stick with the old version of Visual Studio or recompile the all dependencies - likely that is going to be a lot of work though).