Getting Crash in HISE Debug but not Release
-
Hi There,
I am trying to debug a custom C++ node that I created. When I open the custom node in the Release build of HISE by using HardcodedMasterFX it opens, but when I try to debug by building from XCode with the HISE Debug as an executable, I get the following error when I try to open the custom effect:
Looks like a double-free, but I'm not sure why this would happen in Debug and not Release. Any thoughts @Christoph-Hart ?
@Casey-Kolb for reference
-
Hey @Christoph-Hart checking again to see if you have any thoughts here about where this might be coming from. Gonna go digging in a moment.
-
Update: this is happening for ANY compiled DLL that I load in HardcodedMasterFX while in DEBUG mode, seemingly when trying to initialize the parameter list
-
the crux of the issue seems to be that the array of parameters is cleared here before any elements of that array are actually assigned. I think.
-
Should add that these are coming from the XCode output
-
@langermarc19 Nah, that's just a false positive, the reason for this is some memory corruption at another place.
Have you exported the DLL also in Debug mode? You need to compile both Debug and Release dlls if you want to load it in both Configurations and a mismatch might lead to these kind of vague errors.
-
@Christoph-Hart To test this I just deleted all of the compiled DLLs, re-exported from HISE debug, compiled and built in XCode in the debug configuration, then loaded HISE Debug as an executable and got the double-free in the same location.
Not sure where the memory corruption could be happening here but still hunting
-
@langermarc19 said in Getting Crash in HISE Debug but not Release:
I just deleted all of the compiled DLLs
There was more than one?
-
@d-healey There was a Debug one and a Release one