Crash when using 'Image capture'
OS: Windows 7 SP 1 (6.1), Arch.: x86_64, MuseScore version (64-bit): 3.5.0, revision: b2c71cd
- Open any score
- Click on the foto camera icon in the tool bar
-> Crash
Stack trace:
1 Ms::ScoreView::updateGrips editelement.cpp 64 0x6981ca
2 Ms::ScoreView::startEdit editelement.cpp 152 0x698837
3 Ms::ScoreView::startFotomode fotomode.cpp 94 0x6722e5
4 Ms::ScoreView::changeState events.cpp 1161 0x60ac67
5 Ms::ScoreView::::operator()(Ms::ScoreView *, const QByteArray &) const scoreview.cpp 1933 0x5d79e4
6 std::_Function_handler>::_M_invoke(const std::_Any_data &, Ms::ScoreView *&&, const QByteArray &) std_function.h 316 0x5f1c65
7 std::function::operator()(Ms::ScoreView *, QByteArray const&) const std_function.h 706 0x100fbbd
8 Ms::ScoreView::cmd scoreview.cpp 2568 0x5df011
9 Ms::ScoreView::cmd scoreview.cpp 1834 0x5d745b
10 Ms::MuseScore::cmd musescore.cpp 6498 0x431d8e
11 Ms::MuseScore::cmd musescore.cpp 5936 0x42e841
12 Ms::MuseScore::qt_static_metacall moc_musescore.cpp 513 0x593421
13 QMetaObject::activate(QObject *, int, int, void * *) 0x68a947c8
14 QActionGroup::hovered(QAction *) 0x2a754db2
15 QActionGroup::qt_static_metacall(QObject *, QMetaObject::Call, int, void * *) 0x2a75573c
16 QMetaObject::activate(QObject *, int, int, void * *) 0x68a947c8
17 QAction::activate(QAction::ActionEvent) 0x2a753e0e
18 QAbstractButton::setIconSize(QSize const&) 0x2a82f53d
19 QAbstractButton::mouseReleaseEvent(QMouseEvent *) 0x2a82f775
20 QToolButton::mouseReleaseEvent(QMouseEvent *) 0x2a902d3e
...
Comments
The line it crashes on had been added in 4c5e9ed273
See https://github.com/musescore/MuseScore/pull/5979
Still crashes though when dragging the slecteion a 2nd time, due to a failed assertion, in a Debug build:
Fatal: ASSERT: "!isLocked()" in file ...\libmscore\select.cpp, line 327
which got introduced in 69df3f965
PR #5980.
(This is an alternative solution that fixes the underlying logical error rather than correcting it with a
nullptr
check afterwards.)For what it's worth, but unless I'm mistaken, this commit https://github.com/musescore/musescore/commit/69df3f965 was merged almost a month ago. And yet, all is well a few days ago with the image capture tool with this nightly (April 15th): b30f199
On the other hand, there is a crash with this one from April 20th: b2c71cd
I can't be more precise, Windows nightlies were broken during this period.
Fixed in branch master, commit dcaf9e34b6
Fix #304238: Prevent crash when using 'Image capture'
Fixed in branch master, commit 5c86d4fd20
_Merge pull request #5979 from Jojo-Schmitz/fotomode
Fix #304238: Prevent crash when using 'Image capture'_
Automatically closed -- issue fixed for 2 weeks with no activity.