Open PanieriLorenzo opened 3 years ago
One idea is to build the library with Address Sanitizer. You can create a file under the project repo, ".cargo/config.toml", with contents:
[build]
rustflags = ["-Z", "sanitizer=address"] # custom flags to pass to all compiler invocations
Unfortunately rustc doesn't support sanitizers on Windows, despite LLVM and Clang supporting-ish ASAN on Windows (with MSVC ABI, idk about MinGW). Perhaps someone else can test on Linux?
Description
When adding a new instance of a VST plugin to a DAW, occasionally this causes the DAW to crash on a SEGFAULT, this was narrowed down to happen somewhere within baseview, or one of the dependencies of baseview (possibly glowcoil/raw-gl-context). Notably this seems only to happen after some (or all) instances of the plugin have been closed, and the plugin is added again.
Debugging with gdb revealed the following stacktrace:
Context
release
ordebug
profile.How to Reproduce