I’m trying to use this for the first time, and encountering a crash. I want to debug my plugin in the AudioPluginHost. I’m assuming that the APH must be rebuilt with AS on, as do each project in the solution (the shared library, the plugin VST and VST3 etc.)?
Anyway, I tried rebuilding the APH with AS enabled (Properties > C++/General) AS on.
When I launch just the APH, I get this crash. I also get a crash like this trying to run my plugin compiled with AS (with an APH that has it off):
PS. is there a setting for this in the Projucer that must be enabled?
So I disabled the 0xC0000005 exception as the doc you linked explained.
I am testing this first on a JUCE Gui App.
The first thing that hits now is an Exception Unhandled: use of out-of-scope stack memory, on a juce library function, apparently when trying to load the JUCE splash screen. Does this make any sense?
I’m not sure exactly what’s going on here. I can reproduce the issue, but only on MSVC, so I think there’s a chance this is a false positive. Asan is experimental on MSVC at the moment, after all.
I found that I could work around this issue by modifying character pointers in-place, so I’ve made that change on the develop branch now: