-
-
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
File load causes SIGSEGV in ControllerView #2318
Comments
I have encountered this one as well. The offending line is (ControllerView.cpp:64): QLabel *label = new QLabel( "<b>" + _model->displayName() + "</b>", this); And it can occur when Anyway, if anyone can reproduce the error under Valgrind, that ought to reveal a bit more about what's happening. |
@Wallacoloo I think the crash is caused in
So let's see what happens here:
The main problem here is that some code has been added to the core class |
@michaelgregorius I definitely agree with your last sentiment. And coincidentally, the bit of code you pasted above was the same use-after-free I was thinking of. |
Frankly, I'm scratching at the I'd avoid re-adding the controller by doing something like this for now and shooting for purity in
|
@softrabbit Yes, that Where would you add the code snippet you have provided? In |
That code was totally wrong after my half-assed copy & paste-work, so I updated the earlier comment to something closer to what I intended. I was thinking those lines would replace the 2 odd lines in But now that I look again at what's going on, I realize Looking at the methods involved (https://github.com/LMMS/lmms/blob/master/src/core/Song.cpp#L1395) I don't see why the Peak Controller wouldn't be added. And after commenting out that aforementioned line I can save a project using the Peak Controller and load it just fine (i.e. it controls the knob it's supposed to). Funny, the source of that odd logic is pull #225 that was meant to fix a bug with a pretty similar description... |
@softrabbit Thanks. Are you comfortable enough with that statement to submit a patch? |
Song::restoreControllerStates, Song::addController handles double adds. Fixes LMMS#2318
Song: Don't remove controller just to be sure before adding it in Song::restoreControllerStates, Song::addController handles double adds. Fixes #2318.
When loading some of my older save files, they cause a crash as described in the following backtrace.
I uploaded an example of one of the files that crash at http://groboclown.net/music/lmms/controllerview-crash.mmpz
The text was updated successfully, but these errors were encountered: