Work around editor opening bug in Ardour 6.3

This commit is contained in:
Robbert van der Helm
2020-11-13 17:08:41 +01:00
parent b93f0ddb8b
commit ff021d0581
2 changed files with 17 additions and 0 deletions
+2
View File
@@ -10,6 +10,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
### Fixed
- Added a workaround for a bug in Ardour 6.3 which would cause several plugins
to crash when opening the editor.
- Fixed linking error in debug build related to the parallel STL.
## [2.0.1] - 2020-11-08
+15
View File
@@ -298,6 +298,21 @@ void Vst2Bridge::handle_dispatch() {
plugin,
[&](AEffect* plugin, int opcode, int index, intptr_t value,
void* data, float option) -> intptr_t {
// HACK: Ardour 6.3 will call `effEditIdle` before
// `effEditOpen`, which causes some plugins to
// crash. This should be reported to Ardour's
// issue tracker.
if (opcode == effEditIdle && !editor) {
std::cerr << "WARNING: The host is calling "
"`effEditIdle()` while the "
"plugin's editor is closed, "
"filtering the request (is "
"this Ardour?). This bug should "
"be reported to the host."
<< std::endl;
return 0;
}
// Certain functions will most definitely involve the
// GUI or the Win32 message loop. These functions have
// to be performed on the thread that is running the IO