Crash on copy/paste triplet notes

Project:MuseScore
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

On r2148:
1. Create a blank score
2. Create a triplet
3. Insert chords into the first two slots in the triplet, and leave a rest in the last one (single notes don't make it crash, only chords)
4. Select all of the notes in either slot and copy them
5. Select the final slot (which should be a rest), and paste the chord
6. Musescore crashes

#1
Priority:normal» critical

Confirmed using r.2179 nightly and 0.9.5 stable (Windows XP)

#2

Doesn't crash in r.2597 but it creates a corrupt measure (not enough beats in the measure).

#3

I check Sibelius and when you try to copy something starting in a tuplet, you have a very nice dialog saying "You can't copy this passage as it intersects a tuplet". I guess we could do something like this?

While checking this, I tried something else

  1. Create new score in 4/4
  2. In first measure, create an half note and 4 8th rests
  3. In second measure, create a tuplet of 3 quarters
  4. Select the first half note and copy it
  5. Select the last 8th rests and paste
  6. The result looks "good" but if you right click on the new 8th note, you have access to a tuplet menu
  7. If you select remove tuplet from the menu, you destroy the timing

Attached is a file to reproduce the problem. Please note that there is no tuplet menu element in this file, since save or load removed it.

For the record, Sibelius allows such a manipulation. The tuplet is not removed and contains a dotted quarter notes + a 8th rest + quarter. So once the previous measure is full (with an 8th), the remaining duration (the dotted quarter) is included in the tuplet by reducing its size by 1/3.

AttachmentSize
tuplet_paste.mscz 1.8 KB
#4

The tuplet menu that Lasconic reports in comment #3 above goes away after a reload. Apart from the tuplet menu, the current behavior seems fine to me. Sibelius' behavior is fine too.

#5

Pasting a tuplet accross a barline is not easy and lead to weird behavior and possible time corrupition.
Sibelius displays a message "You can't paste here as one of the tuplet would cross a barline"

#6
Priority:critical» normal

Latest revisions do not crash or corrupt the score so i changed status to "normal". The behaviour should be enhanced by showing a dialog explaining the user what did not work.

#7

Copying a 3 quarter tuplets on the last quarter of the same tuplets corrupts the score in r2923.
See http://screenr.com/IdM

#8
Priority:normal» critical

I can reproduce #3 as well. See http://screenr.com/HxM
I put it back to critical. We can decide to postpone it if neceassary.

#9

You are right. It does not work for copied ranges. I tested with copying only the half note which is a simpler case which works. The current "paste" code for selected ranges cannot be fixed easily so it may be better to postphone the fix.

#10
Status:active» postponed
#11
Status:postponed» active

Reactivating this critical bug report to see whether it still applies to the trunk.

Syndicate content