Regression: Crash when pressing tie key in real-time mode with MIDI input/Piano keyboard

• Apr 8, 2017 - 22:26
Reported version
2.2
Type
Functional
Severity
S2 - Critical
Status
closed
Project

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?

Title Crash when pressing tie key in real-time mode Crash when pressing tie key in real-time mode with MIDI input

Indeed it only happens with MIDI input. Both PortAudio and JACK exhibit the same behaviour.

Title Crash when pressing tie key in real-time mode with MIDI input Regression: Crash when pressing tie key in real-time mode with MIDI input

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.

Title Regression: Crash when pressing tie key in real-time mode with MIDI input Regression: Crash when pressing tie key in real-time mode with MIDI input/Piano keyboard

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.