-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python crashes when loading VST3 plugins with pedalboard version 0.9.7 or higher. #365
Comments
Hi @anvuew! Which platform and plugins are you experiencing these crashes with? The only possible change I see that could impact v0.9.7+ is the switch to NumPy 2, which is supposed to be backwards compatible (and indeed works just fine in all tests and local development). Can you confirm which NumPy version you have installed? |
windows, fabfilter and valhalla
Just silently terminate the process.
I originally had NumPy version 1.26.4 installed. When I created new Python environments with Miniconda and installed pedalboard, it installed NumPy version 2.0.1 |
|
Something weird happens on Windows 10 (64 bit) when upgrading to pedalboard v0.9.7+, when an app/script uses some other C-based libraries as well. |
Thanks @Gdalik and @anvuew for the report - I've tried to reproduce this segfault on Windows 10 with Python 3.12, but I'm unable to reproduce the same crash with either NumPy 2+ or NumPy 1:
Gdaliy, I see you import a number of other native dependencies in EarQuiz - any chance you can reproduce this on your end by importing each of those in the same process? Also interesting: the native stack trace posted by @anvuew above doesn't seem to make sense (although thank you for it); certain stack frames are listed back-to-back despite those functions having no relationship with each other, which would imply some sort of memory corruption or an invalid pointer somewhere. |
@psobot I have the same issue with the new version branch (with Python 3.10 and Python 3.11), which uses fewer dependencies. The only C/C++-based libraries here are pedalboard, NumPy and PyQt6. The other ones are written in Python... |
I have just tested it with Python 3.12. The same issue... |
Thanks @Gdalik! When you say:
Just to confirm, you mean just importing all three of these native dependencies ( |
Yes, I also imported the rest Python-based libraries. And I also wrote some lines of code, calling each of these libraries. |
After testing in a freshly installed Windows 10 VM, I found that the issue is related to Miniconda, Specifically |
I tested Python versions 3.9, 3.10, and 3.11, along with various VST3 plugins.
Python crashes when executing
pedalboard.load_plugin()
with pedalboard versions 0.9.7 or higher.pedalboard.load_plugin()
functions correctly with pedalboard versions lower than 0.9.7.The text was updated successfully, but these errors were encountered: