Regression: Crash when pressing tie key in real-time mode with MIDI input/Piano keyboard
Steps to reproduce:
1. Enter a note in real-time mode (manual or automatic)
2. Press the Tie key (+)
Crash. (version 2.1.0-RC on Windows 10)
(Expected: last entered note is extended by the currently selected duration.)
Note that the crash does not occur if the user presses Left before tying, i.e. to select the last entered note.
Comments
For you does it crash only when using MIDI input? I don't have a MIDI device connected, but tried and failed to reproduce using keyboard input. I did the following:
1) Untitled score (formerly "My First Score")
2) Press arrow next to Note Input button on toolbar
3) Select Real-time (automatic)
4) Type "C" to enter a C
5) Press "+" to enter another C tied to first
Result: as expected, a second C is entered, tied to the first, no crash
Is there something else I need to do to reproduce a crash?
Indeed it only happens with MIDI input. Both PortAudio and JACK exhibit the same behaviour.
This issue seems to be forgotten in the MuseScore 2.1 Hit List.
A particular reason?
Forgotten is a reason :-)
Crashes if using the Piano Keyboard window as well, so I can debug this.
I still don't really understand how the real time modes are supposed to work. I am trying the following:
1) new score
2) click measure one
3) enable note input / real-time (manual)
4) display piano keybaord window
5) press a key
At that point, a rest is entered into my score, not a note. Is this normal? This seems to be what triggers the crash for me - the tie is looking for a note to connect to and not finding one. Apparently the real-time MIDI facility uses a linked staff and there is a note present there but not in the "real" staff? Anyhow too much about how this is supposed to work for me to know what to do, I'm afraid, so I'll let someone else look.
To reproduce a crash with the Piano keyboard displayed.
1) "Untitled" score
2) Select Real-time (manual)
3) Press "P"
4) Press a key for entering a note
5) Press "+" for tie
Result: crash
What happens
1/ When we press a key and don't release it, MuseScore will create tied note and select the last one
2/ When we release the key, MuseScore will delete the note and the tie but it will not select the last one
3/ When we press +, the note we take into account is the one we just deleted.
Fixed in branch 2.1, commit 6a232dd3ee
fix #186666: Regression: Crash when pressing tie key in real-time mode with MIDI input/Piano keyboard
Fixed in branch master, commit 0d8e5a74da
fix #186666: Regression: Crash when pressing tie key in real-time mode with MIDI input/Piano keyboard
Automatically closed -- issue fixed for 2 weeks with no activity.