Musescore closes without warning
this is so confusing! whenever i paste something into a measure, i press 6 on my keyboard, then 7 and then it closes without warning! if i haven't saved in a while then i would have to redo everything!
other information that might not be necessary:
i use the most latest version of musescore 4.4.4
i notice this happening when i'm editing the guitar in my score
picture isn't related to the problem lol
Attachment | Size |
---|---|
Screenshot 2025-02-15 113034.png | 10.6 KB |
Comments
"picture isn't related to the problem lol"
So please attach the score (.mscz file) so we can investigate and help you.
In reply to "picture isn't related to… by cadiz1
idk if that's necessary since this has been happening on multiple scores but here. also it only works when you paste a whole measure of notes into an empty measure then you press 6 and 7 separately
In reply to idk if that's necessary… by subaccomg
Confirmed.
This scenario is enough: test.mscz
... Crash
Out of curiosity, what is your purpose in typing the 6 and 7 keys, which are used to determine the choice of duration before (generally) inputting notes.
In reply to Confirmed. This scenario is… by cadiz1
I think it's that sometimes I want a whole note, but I accidentally press both at the same time.
In reply to I think it's that sometimes… by subaccomg
For the record, copy-paste is not even necessary.
On the same test file attached above.
... crash
NB: does not occur with version 3
In reply to For the record, copy and… by cadiz1
This is a 4.4.0 regression (4.3.2 doesn't crash there)
Latest development version crashes too
Needs to get reported on GitHub
In reply to For the record, copy and… by cadiz1
Stack trace:
MuseScore4.exe!std::vector>::size() Line 1873 C++
> MuseScore4.exe!mu::engraving::Segment::element(unsigned __int64 track) Line 615 C++
MuseScore4.exe!mu::engraving::findLinkedChord(mu::engraving::Chord * c, mu::engraving::Staff * nstaff) Line 5530 C++
MuseScore4.exe!mu::engraving::Score::undoAddElement(mu::engraving::EngravingItem * element, bool addToLinkedStaves, bool ctrlModifier, mu::engraving::EngravingItem * elementToRelink) Line 6495 C++
MuseScore4.exe!mu::engraving::Score::addChord(const mu::engraving::Fraction & tick, mu::engraving::TDuration d, mu::engraving::Chord * oc, bool genTie, mu::engraving::Tuplet * tuplet) Line 406 C++
MuseScore4.exe!mu::engraving::Score::changeCRlen(mu::engraving::ChordRest * cr, const mu::engraving::Fraction & dstF, bool fillWithRest) Line 1767 C++
MuseScore4.exe!mu::engraving::Score::changeCRlen(mu::engraving::ChordRest * cr, const mu::engraving::TDuration & d) Line 1639 C++
MuseScore4.exe!mu::engraving::Score::padToggle(mu::engraving::Pad p, bool toggleForSelectionOnly) Line 3327 C++
MuseScore4.exe!mu::notation::NotationNoteInput::padNote(const mu::engraving::Pad & pad) Line 459 C++
MuseScore4.exe!mu::notation::NotationActionController::padNote(const mu::engraving::Pad & pad) Line 832 C++
MuseScore4.exe!mu::notation::NotationActionController::registerPadNoteAction::__l2::::operator()() Line 2338 C++
[External Code]
MuseScore4.exe!muse::actions::IActionsDispatcher::reg::__l2::::operator()(const std::string & __formal, const muse::actions::ActionData & __formal) Line 56 C++
[External Code]
MuseScore4.exe!muse::actions::ActionsDispatcher::doDispatch(const std::map,std::less,std::allocator>>>,std::less,std::allocator,std::less,std::allocator>>>>>> & clients, const std::string & actionCode, const muse::actions::ActionData & data) Line 118 C++
MuseScore4.exe!muse::actions::ActionsDispatcher::dispatch(const std::string & actionCode, const muse::actions::ActionData & data) Line 68 C++
MuseScore4.exe!muse::actions::ActionsDispatcher::dispatch(const std::string & actionCode) Line 46 C++
MuseScore4.exe!muse::shortcuts::ShortcutsController::activate(const std::string & sequence) Line 44 C++
MuseScore4.exe!muse::shortcuts::ShortcutsInstanceModel::doActivate(const QString & seq) Line 89 C++
MuseScore4.exe!muse::shortcuts::ShortcutsInstanceModel::activate(const QString & seq) Line 58 C++
MuseScore4.exe!muse::shortcuts::ShortcutsInstanceModel::qt_static_metacall(QObject * _o, QMetaObject::Call _c, int _id, void * * _a) Line 93 C++
MuseScore4.exe!muse::shortcuts::ShortcutsInstanceModel::qt_metacall(QMetaObject::Call _c, int _id, void * * _a) Line 170 C++
[External Code]
MuseScore4.exe!main(int argc, char * * argv) Line 206 C++
[External Code]
In reply to For the record, copy and… by cadiz1
First obvious fix is
But that may not be enough or too late.
Next it fails at an assertion, which means only in Debug mode
In reply to First fix is diff --git a… by Jojo-Schmitz
That indeed works, no crash (in non-Debug builds)
Please report on GitHub, so I have something to link that proposed fix against
In reply to That indeed works, no crash … by Jojo-Schmitz
Well, report it yourself.
In reply to Well, report it yourself. by cadiz1
No
In reply to Well, report it yourself. by cadiz1
https://github.com/musescore/MuseScore/issues/26525
In reply to https://github.com/musescore… by mercuree
Thanks. See https://github.com/musescore/MuseScore/pull/26526
There may be something else going on, also.
In the three measure score by cadiz1, select the 2nd measure instead. Now hit "6". On my system the first quarter note is changed into a half note. The other notes are pushed one beat to the right. There is now a note on beat one of measure three. I would have expected two half notes to appear in measure two. So a result, I'm not surprised there is a crash when you try to make that measure (2) a whole note, by pushing 7. What about the extra note in the next measure?
And why press 6 first anyway? Even if by mistake. I might press a note instead of a measure.