changing a (staff/part/system) bracket's column (via Inspector) causes crash
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S1 - Blocker
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
new score, grand staff template
select bracket
change column twice
--> crash
change once
reset
--> crash
None of these operations really make sense, but the same happens if you add another bracket first, then try to change columns.
Comments
Stack trace:
1 Ms::ScoreElement::score scoreElement.h 187 0xfae7ec
2 Ms::InspectorBase::valueChanged inspectorBase.cpp 387 0x66d909
3 Ms::InspectorBase::valueChanged inspectorBase.cpp 586 0x670098
4 Ms::InspectorBase::::operator()(void) const inspectorBase.cpp 549 0x66e44a
5 QtPrivate::FunctorCall, QtPrivate::List<>, void, Ms::InspectorBase::mapSignals(const std::vector&, const std::vector&)::>::call(Ms::InspectorBase:: &, void * *) qobjectdefs_impl.h 146 0x673c78
6 QtPrivate::Functor&, const std::vector&)::, 0>::call, void>(Ms::InspectorBase:: &, void *, void * *) qobjectdefs_impl.h 256 0x673955
7 QtPrivate::QFunctorSlotObject&, const std::vector&)::, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void * *, bool *) qobjectdefs_impl.h 439 0x67315e
8 QMetaObject::activate(QObject *, int, int, void * *) 0x68a92afd
9 QSpinBox::fixup(QString&) const 0x25396daf
10 QAbstractSpinBox::initStyleOption(QStyleOptionSpinBox *) const 0x25393eb1
11 QAbstractSpinBox::stepBy(int) 0x25394fd0
12 QAbstractSpinBox::contextMenuEvent(QContextMenuEvent *) 0x25393340
13 QAbstractSpinBox::mousePressEvent(QMouseEvent *) 0x253936b5
14 QWidget::event(QEvent *) 0x25266622
15 QAbstractSpinBox::event(QEvent *) 0x2539627c
16 QApplicationPrivate::notify_helper(QObject *, QEvent *) 0x25227c0c
17 QApplication::notify(QObject *, QEvent *) 0x2522fd3a
18 QCoreApplication::sendSpontaneousEvent(QObject *, QEvent *) 0x68a67698
19 QApplicationPrivate::sendMouseEvent(QWidget *, QMouseEvent *, QWidget *, QWidget *, QWidget * *, QPointer&, bool, bool) 0x2522e138
20 QDesktopWidget::qt_metacall(QMetaObject::Call, int, void * *) 0x2527a9d8
...
A similar issue (which was probably fixed at some point): #277030: Crash on changing a property of bracket in a part in Inspector.
see #277030: Crash on changing a property of bracket in a part in Inspector
So possibly fixed and broke again
Or different, as here it crashes even without creating parts
This PR fixes the crash but makes Inspector be reset after each bracket column change. So some sort of replacing destroyed brackets in selection may also be required.
https://github.com/musescore/MuseScore/pull/4461
Fixed in branch master, commit e39e2834cd
fix #280347: reset inspector if property change leads to selection change
Fixed in branch master, commit bb6ac1bb22
Merge pull request #4461 from dmitrio95/280347-inspector-bracket-crash
fix #280347: reset inspector if property change leads to selection change
Automatically closed -- issue fixed for 2 weeks with no activity.