Bug #356

Unable to run locally compiled version on Windows 10

Added by Albert Liu over 2 years ago. Updated about 2 years ago.

Status:NewStart date:04/04/2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Mitsuba exits with

HEAP[mitsuba.exe]: Invalid address specified to RtlFreeHeap( 00720000, 00D16848 )

Stack trace:

     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]    

Call site:

    // 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.

History

#1 Updated by Albert Liu over 2 years ago

Got the same problem on another computer with Visual Studio 2013, but it seems to work with Visual Studio 2010. Are you aware of any extra steps that need to be done before compiling with Visual Studio 2013?

#2 Updated by Wenzel Jakob about 2 years ago

Hi Albert,

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).

Wenzel

#3 Updated by Albert Liu about 2 years ago

Thanks for letting me know. We should be able to manage for now.

Also available in: Atom PDF