Open bepitulaz opened 7 months ago
Okay. I managed to learn about attaching the debugger to VS Code. And, it throws this error. A progress, I got a meaningful error.
Warning: dsp_memory_manager::destroy: Potential memory leak.
Set a breakpoint to debug.
Rack(3277,0x1e2a7dc40) malloc: *** error for object 0x120800150: pointer being freed was not allocated
Rack(3277,0x1e2a7dc40) malloc: *** set a breakpoint in malloc_error_break to debug
Another update for this issue. If I generate the same code from Faust directly to VCV Rack without erbb
, then it will work perfectly.
Hi @bepitulaz
Sorry for the late reply, we are quite busy here.
Did you try to set a breakpoint on malloc_error_break
? This should lead to where the error occurs, at least to know if it's somewhere into Faust code or actually unrelated.
Here's my Faust program
And, this is the erbui file:
When I load the module, then VCV will crash. I tried removing the quantizer like this below, then it will work. The problem is I need to use the quantizer library.
Here's the full report when it crashes hope it helps. I'm not good to debug C++ code, maybe you can guide me how to debug it to get better hint about the issue. Thanks.