-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Lv2 worker - Segmentation fault #6946
Comments
Confirming your observation. Error introduced in last rework of Lv2Worker, in 583e3ac . |
Analysis: const auto iface = static_cast<const LV2_Worker_Interface*>(
lilv_instance_get_extension_data(m_instance, LV2_WORKER__interface)); The mentioned commit now calls this in m_instance = lilv_plugin_instantiate(m_plugin,
Engine::audioEngine()->processingSampleRate(),
m_features.featurePointers()); in |
JohannesLorenz
added a commit
to JohannesLorenz/lmms
that referenced
this issue
Oct 22, 2023
JohannesLorenz
added a commit
to JohannesLorenz/lmms
that referenced
this issue
Oct 22, 2023
#6947 seem to have fixed it. All the plugins mentioned above now loads. I'll test it properly tomorrow. |
messmerd
added a commit
that referenced
this issue
Oct 27, 2023
* Lv2Proc: Delay worker iface (Fixes #6946) (#6947) This delays passing the `LV2_Worker_Interface` to the `Lv2Worker` class, because prior to the patch, the instance, which provides the interface, has not been initialized yet, which resulted in a segfault. * Update src/core/lv2/Lv2Worker.cpp Co-authored-by: Dalton Messmer <33463986+messmerd@users.noreply.github.com> * setIface -> setInterface * `if(` -> `if (` * Update src/core/lv2/Lv2Proc.cpp Co-authored-by: saker <sakertooth@gmail.com> * Rework, editorial, from @sakertooth * Fixup: `interface` is reserved on MSVC https://stackoverflow.com/a/25234279 * Apply suggestions from code review Co-authored-by: saker <sakertooth@gmail.com> * Initialize handle/interface as nullptr --------- Co-authored-by: Dalton Messmer <33463986+messmerd@users.noreply.github.com> Co-authored-by: saker <sakertooth@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These plugins were tested and known to work during the work with Lv2-worker but prior to merge the commits were cleaned up and this may have been when something broke and they will no longer load.
amsynth
Black Pearl Drumkit
Red Zeppelin Drumkit
setBfree DSP Tonewheel Organ
The backtraces are pretty much identical. Included is the one for amsynth
Thread 38 "lmms::Instrumen" received signal SIGSEGV, Segmentation fault.
Click to expand
The text was updated successfully, but these errors were encountered: