copy/paste of unstyled text crashes

• May 17, 2013 - 18:49
Type
Functional
Severity
S2 - Critical
Status
closed
Project

WIndows 7, found on self-built 92852b7 but verified using older nightly build (from 4/22).

Steps to reproduce:

1) click any note in demo score
2) ctrl-T, type some text
3) right click, text properties, make unstyled, OK
4) ctrl-C
5) click another note
6) ctrl-V

Result: crash. No stack trace, but single stepping shows it in ChordRest::drop, apparently trying to copy text style but checking only for INVALID style type and not UNSTYLED.


Comments

Great!

As an aside, is the lack of stack trace upon abort normal? Or was it something unique about this bug that caused this to happen? It was disconcerting not having any idea where to begin tracking it down. And (of course?), I discovered this because it also affects chord symbols, so I assumed at first it was my code. On the positive side, it gave me an opportunity to learn about the basic code flow of MuseScore for executing commands.

EDIT: never mind, I found the relevant section in the developers handbook. What a crazy implementation of abort()! You go to the trouble of testing for an error condition, and are rewarded by having it harder to debug than just letting it crash!