musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.08k stars 2.61k forks source link

Adding tremolo crashes Musescore #22796

Closed krtschil closed 4 months ago

krtschil commented 4 months ago

Issue type

Crash or freeze

Bug description

When trying to add a tremolo to a mandolin score Musescore crashes with this error message:

/tmp/.mount_musescjxZdZh/AppRun: Zeile 26: 15839 Gleitkomma-Ausnahme "${APPDIR}/bin/mscore4portable" "$@"

Steps to reproduce

Screenshots/Screen recordings

Kill.zip

MuseScore Version

OS: TUXEDO OS 2, Arch.: x86_64, MuseScore Studio version (64-bit): 4.3.0-241231431, revision: github-musescore-musescore-5f36e74

Regression

I don't know

Operating system

Linux

Additional context

Error message in console: /tmp/.mount_musescjxZdZh/AppRun: Zeile 26: 15839 Gleitkomma-Ausnahme "${APPDIR}/bin/mscore4portable" "$@"

krtschil commented 4 months ago
zacjansheski commented 4 months ago

Regression occurred between 4.1.1 and 4.2

cbjeukendrup commented 4 months ago

I'll create a PR to fix this soon. Stack trace:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   mscore                                 0x1009306b2 mu::engraving::CompatMidiRender::renderTremolo(mu::engraving::Chord*, std::__1::vector<mu::engraving::NoteEventList, std::__1::allocator<mu::engraving::NoteEventList>>&, int&, double) + 1170
1   mscore                                 0x10092f739 mu::engraving::CompatMidiRender::renderChord(mu::engraving::Chord*, mu::engraving::Chord*, int, int, int) + 345
2   mscore                                 0x10092e0ec mu::engraving::CompatMidiRender::createPlayEvents(mu::engraving::Score const*, mu::engraving::Chord*, mu::engraving::Chord*, mu::engraving::Chord*) + 348
3   mscore                                 0x1006f83f4 mu::engraving::Score::addElement(mu::engraving::EngravingItem*) + 356
4   mscore                                 0x100803a28 mu::engraving::AddElement::redo(mu::engraving::EditData*) + 40
5   mscore                                 0x10057582f mu::engraving::Score::undoAddElement(mu::engraving::EngravingItem*, bool, bool, mu::engraving::EngravingItem*) + 10239
6   mscore                                 0x10050e129 mu::engraving::Chord::drop(mu::engraving::EditData&) + 777
7   mscore                                 0x10069742b mu::engraving::Note::drop(mu::engraving::EditData&) + 1243
8   mscore                                 0x100fc63f3 mu::notation::NotationInteraction::applyDropPaletteElement(mu::engraving::Score*, mu::engraving::EngravingItem*, mu::engraving::EngravingItem*, QFlags<Qt::KeyboardModifier>, mu::PointX<double>, bool) + 675
9   mscore                                 0x100fc50e6 mu::notation::NotationInteraction::applyPaletteElement(mu::engraving::EngravingItem*, QFlags<Qt::KeyboardModifier>) + 2726
10  mscore                                 0x1011a4fa9 mu::palette::UserPaletteController::applyPaletteElement(QModelIndex const&, QFlags<Qt::KeyboardModifier>) + 201
11  mscore                                 0x1011f10b4 0x10032c000 + 15487156
12  mscore                                 0x1011f122b mu::palette::AbstractPaletteController::qt_metacall(QMetaObject::Call, int, void**) + 123
13  QtQml                                  0x11130b689 0x11120c000 + 1046153
14  QtQml                                  0x111307967 0x11120c000 + 1030503
15  QtQml                                  0x111307459 QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const + 2009
16  QtQml                                  0x111321af9 0x11120c000 + 1137401
17  QtQml                                  0x111320847 0x11120c000 + 1132615
18  QtQml                                  0x1112c6be4 QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) + 324
19  QtQml                                  0x111451275 QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) + 613
20  QtQml                                  0x11140ca14 QQmlBoundSignalExpression::evaluate(void**) + 1028
21  QtQml                                  0x11140d190 0x11120c000 + 2101648
22  QtQml                                  0x1114387e9 QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) + 617
23  QtCore                                 0x11590699b 0x115705000 + 2103707
24  QtQml                                  0x1113e63c4 QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) + 548
25  QtQml                                  0x11130b689 0x11120c000 + 1046153
26  QtQml                                  0x111307967 0x11120c000 + 1030503
27  QtQml                                  0x111307459 QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const + 2009
28  QtQml                                  0x111321af9 0x11120c000 + 1137401
29  QtQml                                  0x111320847 0x11120c000 + 1132615
30  QtQml                                  0x1112c6be4 QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) + 324
31  QtQml                                  0x111451275 QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) + 613
32  QtQml                                  0x11140ca14 QQmlBoundSignalExpression::evaluate(void**) + 1028
33  QtQml                                  0x11140d190 0x11120c000 + 2101648
34  QtQml                                  0x1114387e9 QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) + 617
35  QtCore                                 0x11590699b 0x115705000 + 2103707
36  QtQuick                                0x1108e01c7 QQuickMouseArea::setPressed(Qt::MouseButton, bool, Qt::MouseEventSource) + 775
37  QtQuick                                0x1108e0c81 QQuickMouseArea::mouseReleaseEvent(QMouseEvent*) + 177
38  QtQuick                                0x11087147e QQuickItem::event(QEvent*) + 142
39  QtWidgets                              0x112e7ee36 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
40  QtWidgets                              0x112e80260 QApplication::notify(QObject*, QEvent*) + 480
41  QtCore                                 0x1158d87e6 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 166
42  QtQuick                                0x11088bf02 QQuickWindowPrivate::deliverMouseEvent(QQuickPointerMouseEvent*) + 594
43  QtQuick                                0x11088d979 QQuickWindowPrivate::deliverPointerEvent(QQuickPointerEvent*) + 89
44  QtQuick                                0x11088e483 QQuickWindowPrivate::handleMouseEvent(QMouseEvent*) + 819
45  QtGui                                  0x11484d0e5 QWindow::event(QEvent*) + 133
46  QtQuick                                0x110889711 QQuickWindow::event(QEvent*) + 241
47  QtWidgets                              0x112e7ee36 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
48  QtWidgets                              0x112e80260 QApplication::notify(QObject*, QEvent*) + 480
49  QtCore                                 0x1158d87e6 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 166
50  QtGui                                  0x11483e144 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3156
51  QtGui                                  0x114824b1b QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 219
52  libqcocoa.dylib                        0x11236d048 0x11232d000 + 262216
53  CoreFoundation                      0x7ff8033d1226 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
54  CoreFoundation                      0x7ff8033d11c9 __CFRunLoopDoSource0 + 157
55  CoreFoundation                      0x7ff8033d0f98 __CFRunLoopDoSources0 + 215
56  CoreFoundation                      0x7ff8033cfc08 __CFRunLoopRun + 919
57  CoreFoundation                      0x7ff8033cf2a9 CFRunLoopRunSpecific + 557
58  HIToolbox                           0x7ff80e2ba829 RunCurrentEventLoopInMode + 292
59  HIToolbox                           0x7ff80e2ba466 ReceiveNextEventCommon + 201
60  HIToolbox                           0x7ff80e2ba381 _BlockUntilNextEventMatchingListInModeWithFilter + 66
61  AppKit                              0x7ff806998be5 _DPSNextEvent + 880
62  AppKit                              0x7ff8072a8fe9 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1273
63  AppKit                              0x7ff80698a005 -[NSApplication run] + 603
64  libqcocoa.dylib                        0x11236bc9c 0x11232d000 + 257180
65  QtCore                                 0x1158d5306 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 502
66  QtCore                                 0x1158d8d82 QCoreApplication::exec() + 130
67  mscore                                 0x10034aa01 mu::app::App::run(int, char**) + 6337
68  mscore                                 0x10033734d main + 2333
69  dyld                                   0x203ccd366 start + 1942