Cut text within staff text hangs program; copy/paste doesn't work
Reported version
3.0
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project
OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.0.0., revision: 3543170
Repro steps:
- Add a staff text with CTRLT
- Enter some text.
- Select the entered text with CTRLA
- Copy with CTRLC
- Add second staff text with CTRLT
- Paste with CTRLV
Expected: The text get copied into the second staff text.
Actual: The second text remains empty.
Comments
Note you don't even need to create the second staff text - copy/paste doesn't work within a single staff text, either. Nor does it work for other text elements I tried, except for frame text.
Copy merely doesn't work. "Cut" hangs the program, and hard - I can't even "X" out of it, need to close from task manager :-(
For paste operation see https://github.com/musescore/MuseScore/pull/4305.
Concerning hanging, could you please describe the steps to reproduce it? For me no hanging occurs on cutting text.
For me, the following hangs:
1) default empty score
2) click first empty measure, Ctrl+T
3) type "staff text"
4) hit shift+left four times to select the word "text"
5) Ctrl+X
It's a really hard hang; it also renders the debugger (QtCreator) inoperative, and it often takes multiple attempts to kill in task manager (Windows 10). I'd think it was a tight loop somewhere but CPU activity isn't actually spiking at all; seems to be waiting on something.
Well, for me the same operations really cut the text with no hanging. I cannot paste it though without the above fix but no hang occurs.
Shoot. I'll try single stepping and see what I can find out.
In reply to For me, the following hangs:… by Marc Sabatella
@Marc, interesting. I see you're using Windows. It doesn't happen to me using OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.0.0.4042, revision: af128b5 perhaps something broke this after I last downloaded a nightly?
It seems to only hang when using my own self-built executable (and only when actually running it under the debugger). When I single-step through the code, I see it hangs in a Qt function. I'm using a slightly older version of Qt than the official builds, so at this point, I think it's a non-issue.
Fixed in branch master, commit 1d1ccff2e9
fix #279009: fix text pasting
Fixed in branch master, commit d897411401
Merge pull request #4305 from dmitrio95/279009-paste-text
fix #279009: fix text pasting
Automatically closed -- issue fixed for 2 weeks with no activity.