-
Notifications
You must be signed in to change notification settings - Fork 145
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
Plugin version 0.7.12 causes Nembrini Nexus host to crash (exit unexpectedly). And proposed solution inside. #541
Comments
Thanks @synchu for the very nicely-written bug and proposed solution. I don't have Nexus but based on a very quick skim your suggestions sound reasonable. I'm crunched for time but will come back to this if no one raises their hand to PR first. It should be able to be in 0.7.13. |
…n host(s) to crash and/or exit unexpectedly
Reproduced this on macOS 15.1 using NA Nexus (not sure which version; just downloaded it now). Will try #543 now to confirm the fix |
@sdatkinson - the fix deals with the crash and I am pretty sure it will do for most of the host platforms (tested also with Mixcraft 10.5 on Windows 11) where this crash is reported to happen, however, redraw in Nexus is generally an issue with a number of plugins under Windows (read - the full UA Native suite for example :) and some more, they are either partially redrawn or not scaled correctly), so I would not focus too much on this particular part with Nexus specifically. |
Yeah, the implementation of But it should still be redrawn after the new parameter is provided. So I'll tweak the PR and we'll be good! (Checked locally as well) |
* Fixing issue #541 where NeuralAmpModelerPlugin causes plugin host(s) to crash and/or exit unexpectedly * Update NeuralAmpModelerControls.h SetDirty(false); --------- Co-authored-by: Nikola Nyagolov <[email protected]> Co-authored-by: Steven Atkinson <[email protected]>
Once the plugin (0.7.12) is added and you try to open it, Nexus crashes and exits unexpectedly.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Plugin GUI opens.
Screenshots
N/A
Computer & other info
(please provide the following information):
Additional context
The bug is caused potentially by Nexus handling of plugin UI refresh, caused by "endless" loop (initially caused by calling OnTextEntryCompletion, see the Call Stack dump attached - SetParamNormalized <-> performEdit loop):
NeuralAmpModelerControls.h
void SetValueFromDelegate(double normalizedValue, int valIdx) override
{
IControl::SetValueFromDelegate(normalizedValue, valIdx);
const std::string s = ConvertToString(normalizedValue);
-->>> OnTextEntryCompletion(s.c_str(), valIdx); <<<---
};
if this is changed to (which seems to make more sense):
void SetValueFromDelegate(double normalizedValue, int valIdx) override
{
IControl::SetValueFromDelegate(normalizedValue, valIdx);
const std::string s = ConvertToString(normalizedValue);
SetStr(s.c_str());
};
The problem is solved.
The text was updated successfully, but these errors were encountered: