Crash pasting an image
Figured I'd mention quickly that I copied an image from an image editor, switched over to MuseScore, [ctrl+v]'d without thinking, and got a crash.
I think I had a [title text] within a [vertical frame] selected. As much as that isn't advisable behavior, it obviously shouldn't crash the program. Probably something to do with measure bases versus measures or something while getting the parent.
Comments
Hi, i got a crash when pasting an image to a key signature.
All ok when i paste an image to the title frame.
MuseScore 3.6.2 AppImage on Linux Mint 20.1
In reply to Hi, i got a crash when… by Pentatonus
Attaching an image to a key signature is not even possible. So that can't really be what caused the crash
In reply to Attaching an image to a key… by Jojo-Schmitz
Sure it can. I click on the key signature and press STRG+V to insert an image from clipboard. Crash! Every - single - time.
If it is not possible to attach an image to a key signature, MuseScore should better do nothing than crash.
In reply to Sure it can. I click on the… by Pentatonus
I tried that, nothing happend
In reply to Sure it can. I click on the… by Pentatonus
Hmm, now can...
Please report in the issue tracker
In Debug mode it dies on a failed assertion, trying to convert the image to a keysig?
Fatal: ASSERT: "e == 0 || e->isKeySig()" in file ...\libmscore\scoreElement.h, line 520
Doing the same thing onto a title text gives another failed assertion:
Fatal: ASSERT: "ted" in file ...\libmscore\textbase.cpp, line 3052
Fir for the latter is quite simple:
In reply to Hmm, nowI can... Please… by Jojo-Schmitz
See https://github.com/musescore/MuseScore/pull/7699 (and https://github.com/musescore/MuseScore/pull/7698)
In reply to Sure it can. I click on the… by Pentatonus
Thanks for #318388: Crash when trying to attach an image to key signature
Guess we may need another one for the crash on pasting an image onto a title text (or any text I guess)