Does it always happen? And if so, at the same point? If yes, comment out the drawing code that creates the path and see what happens. Then figure out what’s special about the path that makes it go into an endless memory allocation loop.
I wonder if this is actually AddressSanitizer logging so much stuff that it’s running out of memory.
Anyway it might be useful to load your plug-in into a DAW like REAPER or AudioPluginHost and attach Xcode’s Instruments and see if there are any memory leaks.
there’s no memory leaks in the code - without adress sanitizer on, it holds a steady 1.2 through hours of runtime. i’ve turned the sanitizer off again now to see how long it runs for.