-
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
MusE crash when drawing/moving a part #887
Comments
Running with "muse3 -D". Letting the song run when editing parts: unknown kbAccel 0x1000021 |
Getting crashes everytime I select parts and move them in the Arranger: unknown kbAccel 0x1000021 |
Tried my AppImage from 2020-10-17 and it also crashes at these occasions. |
I compiled and tested with the 3.1.1 release and the problem persists. I have no idea why. I know I have updated Debian 10 since then... |
I will try and remove plugins and see if that solves it... Removed all plugins. Still same behaviour. Updated Debian 10 Stable. Tried to old 3.1.1. Deleted config-folder. Still crashes when moving parts. Tried it on another computer with Debian 10.4 (we are now on 10.6). Still crashes. Beginning to think there is something wrong in the .med-file. Attached. |
So, this only happens in this song? |
Another thing to try is to temporarily move away the .config/MusE folder, in case something in the configuration is busted |
Tried it now with a fresh build of muse, nothing bad happens :/ |
Another way forward is to build MusE with -DCMAKE_BUILD_TYPE=debug. Argument is for cmake. With this version of MusE start it with: When MusE is fully started, provoke the nasty problem and see if the debugger catches it. In which case you can type It is also possible that a debug built MusE does not exhibit the same problem... which is problematic but it is good to know this too. |
This is strange. I crashes every version I have with MusE, even on different computers (running Debian 10.4 and 10.6 Stable). I "solved" it by exporting the note data in a MIDI file, created a new MusE song, and imported the MIDI. Now it works. So it must be something in the song file, I guess. Compiling a debug version of MusE right now, will report back. Thanks for the help and instructions! |
OK, this is the result when running with gdb:
I did it once more, but before I moved the parts I deleted the Fluidsynth synth. I still got the same warning about "fluidsynth: warning: No preset found on channel 9"... |
And here is the backtrace:
|
Crash observed! Thanks very much for the test file. |
Found the problem. Working on the solution... In the meantime, to move forward without errors, please open your project(s) and remove This is a bug (oversight) because duplicate controller events must not be allowed. |
Thanks for finding the culprit! Hehe, selected all Sustain events and pressed Delete. Muse crashed! :) But I can select one at a time, that works. And then I can move the parts w/o problems. Great! As it worked when I exported a MIDI file and imported it, duplicate controllers on the same event time are probably filtered at import time? |
Observed. Try deleting one at a time, seems to work here. |
No hurry, the song is intact now! :) Those sustains are from the pedal connected to my Alesis QS8 synth. Wonderful keys! |
Is that one fixed? I think I saw some new code from Tim related to this... |
Er, well, yes. I now prevent anyone from entering duplicate controller events at the same time value in the list editor. Hm, I'd leave this open for now until I can truly say it's been taken care of. |
I have a similar problem, when I'm trying to delete track consisting non-conntinuous blocks. I have double free or corruption (fasttop). |
I forgot about this bug. Although, new projects should never allow it to happen now, so I left it alone. |
@terminator356 Oh sorry... rush is the bad (while reading too). But I'll try to test this issue. |
Aaand... the ball comes back here from the Pull Request page ;-) Thank you very much for the file @donarturo11 Corresponding offending location in your song file, line 13308: There are many such offending locations in your song file :-( So... What caused it? It appears that the values may have been part of a line drawing inside the controller lane editor. Please wait. I'll try to test both of those operations to see if I missed something in there... |
Yes. Is imported from MIDI file created on MuseScore.
Program not should be more resistant of similar cases? My last contribution uses method implemented in midictrl.cpp:676. Described implementation is a very good example of error resistant code. |
Wow. That is strange. So the file is basically an untouched import from muse score? Thanks. Now I can also check our midi import code. Would it be possible to share that muse score file with me? |
I shared on Dropbox directory. |
In my humble opinion, ideal program should be too idiots resistant, so the best is choose solution, which file won't cause crash program. I resigned from algorithm checking if item is in list, but I used method from class defined inside this program. While developers won't resign from ifdef condition in methods, better use more complicated method from midictrl.cpp, like in my latest commit. |
This issue is stale because it has been inactive for two years. Remove Stale label or write a comment, otherwise it will be closed in 30 days. |
Issue has been closed automatically after two years of inactivity. Feel free to reopen if the issue is still relevant for current MusE version. |
Issue has been closed automatically after two years of inactivity. Feel free to reopen if the issue is still relevant for current MusE version. |
Trying to bug hunt, as I have experienced some crashes in master (from 2 days ago):
Have worked on a song for one hour, nothing fancy. Last thing I did was drawing a part in the Arranger.
Last lines from terminal:
QItemSelectionModel: Selecting when no model has been set will result in a no-op.
QItemSelectionModel: Selecting when no model has been set will result in a no-op.
QItemSelectionModel: Selecting when no model has been set will result in a no-op.
free(): double free detected in tcache 2
Aborted
Is MusE writing a log somewhere I can attach next time? Always run muse3 -D?
Muse version:
MusE 3.1.1, (git: master - 8e3d4326 - 2020-10-28 14:35:14 +0100)
The text was updated successfully, but these errors were encountered: