-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fix issue #1084 crash when trying delete complicated track #1085
base: master
Are you sure you want to change the base?
Conversation
@terminator356 , could you review this commit, please? Thanks to this one, this program is more stable. It prevents of crashes, when object won't found in list. |
Hi, thanks for the patch. We really need to know who is attempting to execute the operation with an invalid iterator, Question: The song causing the problem: Is it an old song made before 2020? Thanks. |
This song was created in summer 2022. |
|
I tested another solution:
Too runs. I thought about submit but I don't know if _imcv can be on another place of _mcvl. |
Which better way to check if item is valid do you propose. In my humble opinion, direct erasing shouldn't be leave, because original solution is not as safe. |
I found a problematic block. Inside original song, trying to remove crashes program, but this block imported to new files, crashes after moving. |
@terminator356 I removed loop and used method |
f92e6b6
to
3805414
Compare
I think yet about reimplement the method erase inside MidiCtrlValue. It would be as override. |
@terminator356 I found yet another solution. I reverted |
@terminator356 So I removed the commit with searching loop and replaced erase. Could you review the code after changes, please? If do you want to leave erase method in operations.cpp, maybe better enable debug methods as default in midictrl? |
b65d1d3
to
bbbf95e
Compare
@terminator356 Well, what you think about latest commit: Use another method to erase item? Now it is good to merge? |
Hi, sorry for the delay, I am studying the matter and should have an answer this weekend. |
@terminator356 Sorry if I'm asking here. Do contributors use any platform like Discord or IRC? I know that comments below issues or pull requests are not good place for such discussions. A very good example is Developer group chat in MuseScore project. |
Hi @donarturo11 |
75bf5af
to
bbbf95e
Compare
Any progress here ? |
Excuse me for intruding, but the problem with donarturo11's test1.mpt is that it contains (multiple) identical simultaneous events. Removing the duplicates with If I create a part with a single cc event, and duplicate that event in the .mpt file, like So the problem is not the complicated track, but duplicate events. |
Fixes issue #1084 .