Skip to content

QT 6.11 Archlinux crash #33015

@ptr1337

Description

@ptr1337

Issue type

Crash or freeze

Description with steps to reproduce

  1. Install archlinux
  2. Install musescore from archlinux repository
  3. Start musescore

Supporting files, videos and screenshots

gdb trace:

(gdb) bt
#0  0x00007fffbc504a26 in QQuickScrollBarPrivate::setPosition
    (this=0x55555d0014a0, newPosition=0.5, notifyVisualChange=notifyVisualChange@entry=true)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/quicktemplates/qquickscrollbar.cpp:479
#1  0x00007fffbc50a190 in QQuickScrollBar::setPosition
    (this=0x55555d0013c0, position=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/quicktemplates/qquickscrollbar.cpp:457
#2  QQuickScrollBarAttachedPrivate::initVertical (this=this@entry=0x55555cffb850)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/quicktemplates/qquickscrollbar.cpp:1025
#3  0x00007fffbc50a7ef in QQuickScrollBarAttached::setVertical
    (this=0x55555cfe9f50, vertical=0x55555d0013c0)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/quicktemplates/qquickscrollbar.cpp:1318
#4  0x00007ffff5a6d08b in QQmlPropertyData::writeProperty
    (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlpropertydata_p.h:429
#5  0x00007ffff5a85335 in QObjectPointerBinding::compareAndSet<QObjectPointerBinding::write(QV4::Value const&, bool, QFlags<QQmlPropertyData::WriteFlag>)::{lambda()#1}>(QQmlMetaObject const&, QObject*, QQmlPropertyData const*, QFlags<QQmlPropertyData::WriteFlag>, QObjectPointerBinding::write(QV4::Value const&, bool, QFlags<QQmlPropertyData::WriteFlag>)::{lambda()#1} const&)
    (this=<optimized out>, resultMo=<optimized out>, resultObject=<optimized out>, pd=<optimized out>, flags=..., slowWrite=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:856
--Type <RET> for more, q to quit, c to continue without paging--
#6  QObjectPointerBinding::write
    (this=0x55555cffbea0, result=..., isUndefined=<optimized out>, flags=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:834
#7  0x00007ffff5a87e05 in QQmlBinding::doUpdate
    (this=0x55555cffbea0, watcher=..., flags=..., scope=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:716
#8  0x00007ffff5a86c6d in QQmlBinding::update (this=0x55555cffbea0, flags=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:166
#9  0x00007ffff5b2fe58 in QQmlObjectCreator::finalize (this=0x55555c7d0dc0, interrupt=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1551
#10 0x00007ffff5af298f in QQmlIncubatorPrivate::incubate
    (this=this@entry=0x55555cfe5400, i=...) at /usr/include/qt6/QtCore/qscopedpointer.h:91
#11 0x00007ffff5af3498 in QQmlEnginePrivate::incubate
    (this=0x555559b2b0f0, i=<optimized out>, forContext=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlincubator.cpp:56
#12 0x00007ffff5aab86f in QQmlComponent::create
    (this=<optimized out>, incubator=..., context=<optimized out>,
    context@entry=0x55555cfe4cf0, forContext=forContext@entry=0x0)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:1585
#13 0x00007ffff69a99f0 in QQuickLoaderPrivate::_q_sourceLoaded (this=0x55555c17a0f0)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickloader.cpp:729
#14 0x00007ffff5b30384 in QQmlObjectCreator::finalize (this=0x5555598fc480, interrupt=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1616
--Type <RET> for more, q to quit, c to continue without paging--
#15 0x00007ffff5aa0a65 in QQmlComponentPrivate::complete
    (enginePriv=0x555559b2b0f0, state=state@entry=0x55555bb427b0)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/ftw/qbipointer_p.h:134
#16 0x00007ffff5aa320c in QQmlComponentPrivate::completeCreate (this=0x55555bb42730)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:1345
#17 0x00007ffff5aa48d5 in QQmlComponent::completeCreate (this=0x55555bb438a0)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:1307
#18 QQmlComponentPrivate::createWithProperties
    (this=0x55555bb42730, parent=<optimized out>, properties=..., context=<optimized out>, behavior=QQmlComponentPrivate::CreateDefault, createFromQml=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:999
#19 0x00007ffff5a85cfb in QQmlComponent::create (this=0x55555bb438a0, context=0x0)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:939
#20 QQmlApplicationEnginePrivate::finishLoad (this=0x555559b2b0f0, c=0x55555bb438a0)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlapplicationengine.cpp:159
#21 0x00007ffff5a85f9c in QQmlApplicationEnginePrivate::ensureLoadingFinishes
    (this=<optimized out>, c=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlapplicationengine.cpp:186
#22 0x00007ffff5a8603b in QQmlApplicationEnginePrivate::startLoad
    (this=<optimized out>, url=<optimized out>, data=..., dataFlag=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlapplicationengine.cpp:113
#23 0x00007ffff5a860aa in QQmlApplicationEngine::load
    (this=this@entry=0x555559d393f0, url=...)
--Type <RET> for more, q to quit, c to continue without paging--
    at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlapplicationengine.cpp:372
#24 0x0000555555fb2ee4 in mu::app::GuiApp::perform (this=<optimized out>)
    at /usr/src/debug/musescore/musescore/src/app/internal/guiapp.cpp:277
#25 0x0000555555a66af1 in main (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/debug/musescore/musescore/src/app/main.cpp:217

In which versions of MuseScore Studio is this issue present?

4.6.5

Regression

I was unable to check

Operating system

Arch Linux / CachyOS

Additional context

Patch, for qt6-declerative which fixes the crash:

diff --git a/src/quicktemplates/qquickscrollbar.cpp b/src/quicktemplates/qquickscrollbar.cpp
index f7d0600ed2..70c3b6983d 100644
--- a/src/quicktemplates/qquickscrollbar.cpp
+++ b/src/quicktemplates/qquickscrollbar.cpp
@@ -474,10 +474,10 @@ void QQuickScrollBarPrivate::setPosition(qreal newPosition, bool notifyVisualCha
 #if QT_CONFIG(accessibility)
     if (QAccessible::isActive()) {
         if (QAccessibleInterface *accessible = QAccessible::queryAccessibleInterface(q)) {
-            QAccessibleValueInterface *valueInterface = accessible->valueInterface();
-            Q_ASSERT(valueInterface);
-            QAccessibleValueChangeEvent event(q, valueInterface->currentValue());
-            QAccessible::updateAccessibility(&event);
+            if (QAccessibleValueInterface *valueInterface = accessible->valueInterface()) {
+                QAccessibleValueChangeEvent event(q, valueInterface->currentValue());
+                QAccessible::updateAccessibility(&event);
+            }
         }
     }
 #endif

Did not check to make a patch for mscore directly

Checklist

  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible

Metadata

Metadata

Assignees

Labels

Qt-nextEither broken or fixed by (updating to) newer Qt versions than we currently usecrashIssues involving a crash of MuseScoreneeds reviewThe issue needs review to set priority, fix version or change status etc.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions